Re: NSImage scaling and data loss
Re: NSImage scaling and data loss
- Subject: Re: NSImage scaling and data loss
- From: John Hörnkvist <email@hidden>
- Date: Tue, 10 Jul 2001 02:21:45 +0200
On Monday, July 9, 2001, at 09:04 PM, Robert Miller wrote:
typically C,D, or E sized (8800 x 6800 pixels) stored as Group4 Tiff and
using these images in an NSImage object. I am applying a scaling using
an NSAffineTransform so as to zoom in and out on the image. As the image
is zoomed out (shrunk in size) to show more of it within a view, there
is significant data loss and the image becomes indisguishable. The same
images do not produce this problem in a Carbon version using CopyBits.
Is there a way to be able to shrink a large image with scaling so that
there is a minimal loss of data and the reduced image still looks OK
using Cocoa ?? Any help would be greatly appreciated.
I think this is resolved if you tell the image to retain its initial
data;
[theImage setDataRetained:YES];
Regards,
John Hornkvist
--
ToastedMarshmallow, the perfect Cocoa companion
http://www.toastedmarshmallow.com