• 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
Thumbnail?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Thumbnail?


  • Subject: Thumbnail?
  • From: Lorenzo <email@hidden>
  • Date: Thu, 01 May 2003 00:06:36 +0200

Hi,
I have a large image jpg I display in a NSImageView.
I resize the NSImage then I store it to an NSDictionary, as NSData, but
later, when I recall it and display to to a NSImageView, it has the same
original dimensions. I guess I didn't scaled the image but only the way it
has been shown.

Instead I want to store only a small scaled image (Thumbnail) of the
original image. How can I do?

I did this:
NSImage *originalImage = [[NSImage alloc]
initWithContentsOfFile:theItem];
[originalImage setScalesWhenResized:YES];
[originalImage setSize:NSMakeSize(100.0, 75.0)];
[myDictionary setObject:[originalImage TIFFRepresentation]
forKey:@"theImage"];
[originalImage release];



Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
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: Objective-C++ template compile problem
  • Next by Date: Re: Disabling NSToolbar toggle via 'Pill' White Button??
  • Previous by thread: Objective-C++ template compile problem
  • Next by thread: Re: Disabling NSToolbar toggle via 'Pill' White Button??
  • Index(es):
    • Date
    • Thread