Re: Offscreen drawing again ...
Re: Offscreen drawing again ...
- Subject: Re: Offscreen drawing again ...
- From: Manfred Lippert <email@hidden>
- Date: Sat, 09 Feb 2002 00:06:38 +0100
>
Well, you can do the same thing again: lock focus on your image, and
>
then make a bitmapImageRep from the focussed area.
Yeah! That does the trick! I got it working now.
I create an NSBitmapImageRep
I add it to an NSImage
I "lockFocus" the NSImage
I draw my NSAttributedString
I create another NSBitmapImageRep with initWithFocusedViewRect and so I get
the resulting bitmap!
I "unlockFocus"
The result is RGB not RGBA as I wanted it, but that is OK for me at this
point.
Thank you all! :-)
Mani
_______________________________________________
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.