Re: NSImage and flipping
Re: NSImage and flipping
- Subject: Re: NSImage and flipping
- From: "Louis C. Sacha" <email@hidden>
- Date: Mon, 16 Feb 2004 14:43:16 -0800
Hello...
This doesn't actually work (the resulting image would be right side
up, but it would still have the text ordering problem that the
original poster is dealing with). See the previous posts in this
thread for more information (specifically that the NSImage instance
method setFlipped: only applies to how the image is displayed /
composited in the destination, not the coordinate system used when
the image is being drawn into...).
Louis
On 14. Feb 2004, at 10:08, Bjvrn Carlstrvm wrote:
I am trying to implement dragging from a custom view. The view is
flipped to make text-rendering work correctly. To drag a piece of
graphic from the view I create a NSImage. To get it to render the
text correctly I use SetFlipped:YES. Or so I thought... The image
comes out upside down!
> [...]
Could anybody tell me what I am missing here. And what is the solution?
You must setFlipped:NO before giving the image to drag:image:...
--
Private Mails To Allan At Top-House Dot DK
http://www.diku.dk/hjemmesider/studerende/duff/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.