Re: I want ALL my tiff pixels
Re: I want ALL my tiff pixels
- Subject: Re: I want ALL my tiff pixels
- From: Stéphane Sudre <email@hidden>
- Date: Wed, 12 Mar 2003 17:37:32 +0100
On Wednesday, March 12, 2003, at 04:40 PM, robert l clair wrote:
#import "ExtendBitchingAboutUselesslySparseDocumentation.h"
I want *ALL* my pixels. I have (let's say) a 1200 pixel
square tiff created in Photoshop with a "resolution"
of 600 dpi. I read it into an NSImage using something like
NSImage* myImage = [[NSImage alloc] initWithContentsOfFile:
@"myfile.tiff"];
I then draw it in a view with:
NSRect myRect = NSZeroRect;
NSPoint myPoint = NSZeroPoint;
myRect.size = [myImage size];
[myImage drawAtPoint: myPoint fromRect: myRect
operation: NSCompositeSourceAtop fraction: 1.0];
What prevents you from using the pixelsHigh, pixelWide info to create
your NSRect?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.