Re: Taking screen shots
Re: Taking screen shots
- Subject: Re: Taking screen shots
- From: Kevin Meaney <email@hidden>
- Date: Wed, 18 Jun 2014 17:25:14 +0100
SonOfGrab displays in the composited image window the correct image after following the same steps.
Kevin
On 18 Jun 2014, at 17:01, Kevin Meaney <email@hidden> wrote:
> On Jun 18, 2014, at 8:36 AM, Kevin Meaney <email@hidden> wrote:
>>>
>>> The sequence of events are:
>>>
>>> 1. Drag window so that it is partially offscreen.
>>> 2. Draw into the window where part of the drawing happens in the part of the window that is offscreen.
>>
>> Ok, what does this mean? In AppKit, you don’t draw into a window; the window asks you to draw. If you mean that you’re sending -drawRect: to the view yourself, that will never work.
>
> Drawing happens when I receive an xpc message containing a drawing command. To do the drawing I get the NSGraphicsContext from which I pull the graphicsPort which is a special kind of CGContext. I then use CoreGraphics commands to do the drawing.
>
> I looked at SonOfGrab when I first implemented this, so I'm looking at it again to see if it can provide some clues.
>
> Kevin
>
>> It’s also possible that CGWindowList doesn’t force a window to draw its entire area. Do you get the same results with the SonOfGrab sample project? <https://developer.apple.com/library/mac/samplecode/SonOfGrab/Listings/Controller_m.html#//apple_ref/doc/uid/DTS10004490-Controller_m-DontLinkElementID_4>
>>
>> --Kyle Sluder
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden