• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Rasterizing an NSString to a bitmap
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Rasterizing an NSString to a bitmap
      • From: John Stiles <email@hidden>
References: 
 >Rasterizing an NSString to a bitmap (From: John Stiles <email@hidden>)
 >Re: Rasterizing an NSString to a bitmap (From: Marcel Weiher <email@hidden>)
 >Re: Rasterizing an NSString to a bitmap (From: John Stiles <email@hidden>)
 >Re: Rasterizing an NSString to a bitmap (From: Marcel Weiher <email@hidden>)

  • Prev by Date: Re: Rasterizing an NSString to a bitmap
  • Next by Date: Setting Focus Programmatically
  • Previous by thread: Re: Rasterizing an NSString to a bitmap
  • Next by thread: Re: Rasterizing an NSString to a bitmap
  • Index(es):
    • Date
    • Thread