• 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: How to render 8-bit bitmap image representation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to render 8-bit bitmap image representation?


  • Subject: Re: How to render 8-bit bitmap image representation?
  • From: David Duncan <email@hidden>
  • Date: Mon, 25 Jun 2007 10:38:49 -0700

On Jun 24, 2007, at 12:27 PM, Tron Thomas wrote:

How can I get a rendering for a bitmap image representation that has the 8-bit pixel format I want?

It sounds like you want a lot of control over your drawing, and it may be better for you to use Quartz 2D directly instead of NSImage and friends. In this case, you can use CGBitmapContextCreate() to create a grayscale bitmapped graphics context that renders to a block of memory crafted to your specifications. If you wish to draw via Cocoa, then you can create an NSGraphicsContext from the CGContextRef that you got using +graphicsContextWithGraphicsPort:flipped:.
--
David Duncan
Apple DTS Quartz and Printing
email@hidden



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >How to render 8-bit bitmap image representation? (From: Tron Thomas <email@hidden>)

  • Prev by Date: Re: Obtaining unpremultiplied bitmap from PNG file
  • Next by Date: Re: Plugins and shared code question.,
  • Previous by thread: How to render 8-bit bitmap image representation?
  • Next by thread: Re: How to render 8-bit bitmap image representation?
  • Index(es):
    • Date
    • Thread