• 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: Quick question: easy way to draw bitmap?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quick question: easy way to draw bitmap?


  • Subject: Re: Quick question: easy way to draw bitmap?
  • From: "Jeff Bland" <email@hidden>
  • Date: Fri, 13 Jul 2007 15:53:23 +0900

Ah,

initWithBitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:

hasAlpha:isPlanar:colorSpaceName:bytesPerRow:bitsPerPixel:

looks like what I need. And it looks like it will point to my data (rather
than copying the bitmap data to its own buffer). My bitmp data however is
being constantly updated (animated), so how do I tell the
view/image/imagerep that the data has been updated and it needs to redraw?

Thanks,
- Jeff Bland

On 7/13/07, ∞ <email@hidden> wrote:


Il giorno 13/lug/07, alle ore 08:33, Jeff Bland ha scritto:

But an NSImage takes one or more

NSImageReps, so I subclassed that and instantiated one.


You probably just need to pass the data to NSBitmapImageRep. See its docs for details.

 - ∞

_______________________________________________

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


  • Follow-Ups:
    • Re: Quick question: easy way to draw bitmap?
      • From: Scott Anguish <email@hidden>
References: 
 >Quick question: easy way to draw bitmap? (From: "Jeff Bland" <email@hidden>)
 >Re: Quick question: easy way to draw bitmap? (From: ∞ <email@hidden>)

  • Prev by Date: Using proxy objects with NSMutableArray
  • Next by Date: shmget from a Cocoa application
  • Previous by thread: Re: Quick question: easy way to draw bitmap?
  • Next by thread: Re: Quick question: easy way to draw bitmap?
  • Index(es):
    • Date
    • Thread