Re: Rasterizing an NSString to a bitmap
Re: Rasterizing an NSString to a bitmap
- Subject: Re: Rasterizing an NSString to a bitmap
- From: John Stiles <email@hidden>
- Date: Mon, 7 Jun 2004 16:38:40 -0700
Or to get it to draw itself into a new NSBitmapImageRep of my
choosing?
I have no problem with convoluting the image to make it do what I
want, but since the destination format of initWithFocusedViewRect is
undocumented, it seems like I need to write a whole blitter library
to do the resample, or force my app to assume that whatever
initWithFocusedViewRect does now is what it will do indefinitely.
Actually, there are ways of querying this stuff. Check the docs.
I know that I can query it, but I need to be ready for a future system
version which might change the format of the bitmap returned by
initWithFocusedViewRect.
I actually found that I can get what I want with NSReadPixel. Is it
fast? No. But it works. There's probably a better answer, which
hopefully one day I will find.
Now, how can I ask an NSFont what its ascent and descent are?
_______________________________________________
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.