Re: NSImage and flipping
Re: NSImage and flipping
- Subject: Re: NSImage and flipping
- From: Björn Carlström <email@hidden>
- Date: Sat, 14 Feb 2004 23:37:31 +0100
2004-02-14 kl. 21.02 skrev Louis C. Sacha:
Hello...
For an NSImage, the "flipped" state refers to the destination view
where the image will be composited, not the source view. So, all you
probably have to do is not call setFlipped:YES...
Well that's just what I thaught. Unfortunately it doesn't work. In an
ordinary NSView toggeling the flipped state affects the order of
multiline text rendering. If its not flipped the text comes out like
this:
out like this
the text comes
Setting it to flipped makes Cocoas text rendering put the lines in the
correct order. When using the same code to draw text in an NSImage that
is not flipped. The text comes out the same way. That is:
out like this
the text comes
This is clearly not what I want. But if I set the the flipped state to
true in an NSImage I don't get the same result as in an NSView. Instead
the finished graphic (the pixels) comes out upside down. This is not
what I want either.
Thank you anyway. If you have any ideas please let me know.
Bjvrn
_______________________________________________
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.