compositeToPoint ignores DPI?
compositeToPoint ignores DPI?
- Subject: compositeToPoint ignores DPI?
- From: Ben Mackin <email@hidden>
- Date: Mon, 28 Oct 2002 12:45:10 -0800
I have a tiff file that has a dpi of 209. When I run it through the
following code, I would expect the resulting tiff file to be exactly the
same. However, it makes it 72 dpi, and the quality looks god awful. How do I
preserve the dpi on my tiff?
myImage = [[NSImage alloc] initByReferencingFile:@"/mytif.tif"];
mySize = [myImage size];
[myImageToSave lockFocus];
[myImage compositeToPoint:NSMakePoint(0,0) operation:NSCompositeCopy];
[myImageToSave unlockFocus];
data = [myImageToSave TIFFRepresentation];
[data writeToFile:@"/mynewtif.tif" atomically:YES];
Thanks,
Ben
_______________________________________________
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.