• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Image Interpolation: PDF vs TIFF
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: Wakeup/Sleep?
  • Next by Date: Re: Loading an bitmap from NSImage with alpha?
  • Previous by thread: Re: Wakeup/Sleep?
  • Next by thread: need help
  • Index(es):
    • Date
    • Thread