• 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: - [NSBitmapImageRep tiffRepresentation] malloc error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: - [NSBitmapImageRep tiffRepresentation] malloc error


  • Subject: Re: - [NSBitmapImageRep tiffRepresentation] malloc error
  • From: David Duncan <email@hidden>
  • Date: Mon, 15 Dec 2008 09:39:30 -0800

On Dec 13, 2008, at 6:08 AM, Thomas Clement wrote:

Looks like this is what I need.

Now I also need to read pixel values from images on disk. For the same reason I'd like to avoid loading the entire image into memory.
Is it possible to access pixel values piece by piece? I can't find how to do that using data providers.


There isn't a direct way to do this unfortunately, as the only way to read from a data provider is to obtain the entire data block. Please file a bug requesting a solution for this.

The work around is to draw the part of the image you want to work with. You can do this with either AppKit or Core Graphics using NSBitmapImageRep or a bitmap context (created via CGBitmapContextCreate).
--
David Duncan
Apple DTS Animation and Printing


_______________________________________________

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: - [NSBitmapImageRep tiffRepresentation] malloc error
      • From: Thomas Clement <email@hidden>
References: 
 >- [NSBitmapImageRep tiffRepresentation] malloc error (From: Thomas Clement <email@hidden>)
 >Re: - [NSBitmapImageRep tiffRepresentation] malloc error (From: David Duncan <email@hidden>)
 >Re: - [NSBitmapImageRep tiffRepresentation] malloc error (From: Thomas Clement <email@hidden>)
 >Re: - [NSBitmapImageRep tiffRepresentation] malloc error (From: David Duncan <email@hidden>)
 >Re: - [NSBitmapImageRep tiffRepresentation] malloc error (From: Thomas Clement <email@hidden>)

  • Prev by Date: Re: Distributed Objects with Garbage Collection (on PPC)
  • Next by Date: Re: NSOutline resizing of rows
  • Previous by thread: Re: - [NSBitmapImageRep tiffRepresentation] malloc error
  • Next by thread: Re: - [NSBitmapImageRep tiffRepresentation] malloc error
  • Index(es):
    • Date
    • Thread