To get a NSBitmapImageRep from a NSImage, have a look at the Reducer sample
code at location :
http://developer.apple.com/samplecode/Reducer/listing16.html
file : ImageReducer.m
routine : BitmapImageRepFromNSImage
at the end of the file.
- Steve
>
>
>On 12.02.2009, at 17:14, Jean-Daniel Dup
On Feb 12, 2009, at 8:28 AM, Felix Franz wrote:
You can create a new NSBitmapImageRep using the TIFFRepresentation
and use representationUsingType:properties:
to get the PNG-data:
NSData* TIFFData = [img TIFFRepresentation];
NSBitmapImageRep* bitmapImageRep = [NSBitmapImageRep
imag
On 12.02.2009, at 17:14, Jean-Daniel Dupas wrote:
Unfortunately, I don't think you can save an NSImage as a PNG (it
only supports the TIFFRepresentation method).
You can create a new NSBitmapImageRep using the TIFFRepresentation and
use representationUsingType:properties:
to get the P
Le 12 févr. 09 à 16:31, Smith, Steven (MCP) a écrit :
Hi folks,
I'm relatively new to Cocoa and need some direction on creating .png
files.
I need to create 365 png files (one for each day of the year)
to be used as tags by other folks (eg "JAN01.png"
"JAN2.png"..."DEC31.png").
I think
Hi folks,
I'm relatively new to Cocoa and need some direction on creating .png files.
I need to create 365 png files (one for each day of the year)
to be used as tags by other folks (eg "JAN01.png" "JAN2.png"..."DEC31.png").
I think I understand the draw/graphics concept, but I've been unable to