• 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
Re: NSImage scaling and data loss
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSImage scaling and data loss
      • From: Robert Miller <email@hidden>
References: 
 >NSImage scaling and data loss (From: Robert Miller <email@hidden>)

  • Prev by Date: Re: NSTask - grep
  • Next by Date: Security framework question
  • Previous by thread: NSImage scaling and data loss
  • Next by thread: Re: NSImage scaling and data loss
  • Index(es):
    • Date
    • Thread