Re: Problem in the creation of Graphics context(NSGraphicsContext)

2020-03-10 Thread Sravan Kumar Lakkimsetti via Cocoa-dev
Thank you for your suggestions. It turned out the problem is in the handling of transparency in the newly created imageRep. Now I removed special handling of transparency and relying on the cocoa directly. Thanks for your help - Sravan On Mon, Mar 9, 2020 at 7:21 PM Richard Charles wrote: > > I

Re: Problem in the creation of Graphics context(NSGraphicsContext)

2020-03-09 Thread Sravan Kumar Lakkimsetti via Cocoa-dev
drags a window from one display > to another or when a display is attached or removed.” > > This might not be true with an offscreen context which might remain valid > regardless of the display. > > --Richard Charles > > > > On Mar 3, 2020, at 11:19 PM, Sravan Kumar La

Problem in the creation of Graphics context(NSGraphicsContext)

2020-03-03 Thread Sravan Kumar Lakkimsetti via Cocoa-dev
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. Wou

Problem in the creation of Graphics context(NSGraphicsContext)

2020-03-03 Thread Sravan Kumar Lakkimsetti via Cocoa-dev
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 li