• 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: Resizing an image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Resizing an image


  • Subject: Re: Resizing an image
  • From: Heinrich Giesen <email@hidden>
  • Date: Sun, 22 Jan 2006 15:55:35 +0100


On 22.01.2006, at 13:09, Robert Dell wrote:

NSBitmapImageRep *theRep = ...;

why dont people like to finish out a line? it's almost as if they are speaking off-the-cuff and have no idea if it will work.
at least that's the impression i get when somebody does that.

I was sure you know where your images comes from, is it like ?

NSImage *theImage = [[NSImage alloc] initWithContentsOfFile:fileName];
You may get the corresponding representation with:
NSBitmapImageRep *theRep = [NSImageRep imageRepWithContentsOfFile:fileName];
or
NSBitmapImageRep *theRep = [[theImage representations] objectAtIndex:0];
(there was a typo in my former mail).


it's almost as if they are speaking off-the-cuff and have no idea if it will work.
at least that's the impression i get when somebody does that.
I have some more ideas how to get images. (about 6 class methods
of NSImageRep and some other for NSBitmapImageRep).
And concerning the scaling: I wrote my own classes to scale images
without loss of information
(comments, EXIF data, icc profiles, thumbnail images, pixel structure, etc.)


Sorry I couldn't help you.

--
Heinrich Giesen
email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Resizing an image
      • From: Robert Dell <email@hidden>
References: 
 >Re: Resizing an image (From: Heinrich Giesen <email@hidden>)
 >Re: Resizing an image (From: Robert Dell <email@hidden>)

  • Prev by Date: Re: Reading a plain text file
  • Next by Date: Source location management (was: Subject: Re: Mixing C++ with Objective-C)
  • Previous by thread: Re: Resizing an image
  • Next by thread: Re: Resizing an image
  • Index(es):
    • Date
    • Thread