Image Interpolation: PDF vs TIFF
Image Interpolation: PDF vs TIFF
- Subject: Image Interpolation: PDF vs TIFF
- From: Ryan Bates <email@hidden>
- Date: Wed, 17 Mar 2004 13:11:27 -0800
Calling "setImageInterpolation:NSImageInterpolationHigh" seems to NOT
work correctly on NSImages sourced from a TIFF file, however, it works
correctly for images sourced from a PDF file. Has anyone else
experienced this issue? You can see that Apple's Preview application
takes about a second to display the anti-aliasing for TIFF images when
scaling, but for PDF images, it is instant. Do I need to use an
alternative method for scaling non-PDF sourced images? Here's what's in
my code:
smallImage = [[[NSImage alloc] initWithSize:NSMakeSize(64, 64)]
autorelease];
[smallImage lockFocus];
[[NSGraphicsContext currentContext]
setImageInterpolation:NSImageInterpolationHigh];
[[NSGraphicsContext currentContext] setShouldAntialias:YES];
[sourceImage setSize:NSMakeSize(64, 64)];
[sourceImage compositeToPoint:NSZeroPoint operation:NSCompositeCopy];
[smallImage unlockFocus];
Thanks,
Ryan
_______________________________________________
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.