Re: Programatically creating/saving an NSImage;
Re: Programatically creating/saving an NSImage;
- Subject: Re: Programatically creating/saving an NSImage;
- From: Shawn Erickson <email@hidden>
- Date: Mon, 21 Mar 2005 15:15:30 -0800
On Mar 21, 2005, at 2:51 PM, Matt Budd (Madentec) wrote:
If I don't create the NSBitmapImageRep, the NSImage only has 1
representation, a NSCachedImageRep, of which I can get its pixel info
(through a -bitmapData message or something similar). If I use
-bestRepresentationForDevice:, it returns the only representation,
that NSCachedImageRep.
Did you try setting any of the following in the dictionary you supply
to -bestRepresentationForDevice:?
APPKIT_EXTERN NSString *NSDeviceResolution; /* NSValue containing
NSSize, basically dpi */
APPKIT_EXTERN NSString *NSDeviceColorSpaceName; /* NSString */
APPKIT_EXTERN NSString *NSDeviceBitsPerSample; /* NSValue containing
int */
APPKIT_EXTERN NSString *NSDeviceIsScreen; /* "YES" or not there */
APPKIT_EXTERN NSString *NSDeviceIsPrinter; /* "YES" or not there */
APPKIT_EXTERN NSString *NSDeviceSize; /* NSValue containing NSSize */
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden