• 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: resize image with cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >resize image with cocoa (From: Francesca P <email@hidden>)
 >Re: resize image with cocoa (From: Alexey Zakhlestin <email@hidden>)
 >Re: resize image with cocoa (From: Francesca P <email@hidden>)
 >Re: resize image with cocoa (From: Alexey Zakhlestin <email@hidden>)
 >Re: resize image with cocoa (From: Francesca P <email@hidden>)
 >Re: resize image with cocoa (From: Bergmann Manfred <email@hidden>)
 >Re: resize image with cocoa (From: Francesca P <email@hidden>)
 >Re: resize image with cocoa (From: Francesca P <email@hidden>)

  • Prev by Date: Re: Thread safety of Cocoa Bindings
  • Next by Date: Re: Thread safety of Cocoa Bindings
  • Previous by thread: Re: resize image with cocoa
  • Next by thread: Re: resize image with cocoa
  • Index(es):
    • Date
    • Thread