Re: resize image with cocoa
Re: resize image with cocoa
- Subject: Re: resize image with cocoa
- From: Francesca P <email@hidden>
- Date: Tue, 6 Dec 2005 10:46:51 +0100
It's incredible,
I'm trying differents codes, but I can't obtain a scaled images :-(
What is wrong in this code?
I've set setScalesWhenResized :-(
NSImage *sourceImage = [[NSImage alloc] initWithData: sourceData];
[sourceImage lockFocus];
[sourceImage setScalesWhenResized:YES];
[sourceImage setSize: NSMakeSize (100., 100.)];
[img setImage:sourceImage];
NSData *resizedData = [sourceImage TIFFRepresentation];
[sourceImage unlockFocus];
[resizedData writeToFile: pathanteprima2
atomically: YES];
[sourceImage release];
Please help me...
Thank you....
_______________________________________________
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