Re: Problem in the creation of Graphics context(NSGraphicsContext)
Re: Problem in the creation of Graphics context(NSGraphicsContext)
- Subject: Re: Problem in the creation of Graphics context(NSGraphicsContext)
- From: David Duncan via Cocoa-dev <email@hidden>
- Date: Wed, 04 Mar 2020 09:03:22 -0800
You’ll need to explain how you are creating the NSBitmapImageRep (what methods
your calling, what parameters your passing, etc) that you pass to this method
before anyone can explain why this might be going wrong for you.
> On Mar 3, 2020, at 10:19 PM, Sravan Kumar Lakkimsetti via Cocoa-dev
> <email@hidden> wrote:
>
> Hi,
>
>
>
> In our product we use
> https://developer.apple.com/documentation/appkit/nsgraphicscontext/1529827-graphicscontextwithbitmapimagere?language=objc
> to create Graphics Context for drawing on top of image.
>
>
>
> This particular API returns null in some cases. One particular case is
> troubling us. Would like to know why this happens and how to resolve
>
>
>
> Here is the problem.
>
> There are two monitors attached to Mac. Main display is retina display and
> secondary display is non-retina display. The application is moved from main
> display(retina display) to secondary display(non-retina display). In this
> case our application redraws the GUI(to use higher resolution images) In
> this process we are creating graphics context using the above api. This api
> returns null if the main display is retina and secondary display is
> non-retina.
>
>
>
> It would be helpful if anyone can suggest on how to identify why this api
> returns null
>
>
>
> Thanks
>
> Sravan
> _______________________________________________
>
> 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