Re: Resizing an image
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