• 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: Easiest way to convert an NSImage to a JPEG
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Easiest way to convert an NSImage to a JPEG


  • Subject: Re: Easiest way to convert an NSImage to a JPEG
  • From: Greg Hulands <email@hidden>
  • Date: Thu, 20 May 2004 12:37:38 +1000

Get the bitmaprep of the image and use NSBitmapImageReps representationUsingType:properties: method.

HTH,
Greg

On 20/05/2004, at 11:38 AM, John Stiles wrote:

What's the simplest way to go from an NSImage* (or NSImageRep*) to a JPEG file on my hard disk? i.e. something like:

[myImage createJPEGFile:@"/blat.jpg" withQuality:100.0f]; // this function is made up

I have some Carbon-based solutions already, but Cocoa always seems to make things easier :)
_______________________________________________
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.
_______________________________________________
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.


References: 
 >NSImage hue shifting? (From: "Jean-Olivier Lanctôt-D." <email@hidden>)
 >Re: NSImage hue shifting? (From: John Randolph <email@hidden>)
 >Re: NSImage hue shifting? (From: "Jean-Olivier Lanctôt-D." <email@hidden>)
 >Easiest way to convert an NSImage to a JPEG (From: John Stiles <email@hidden>)

  • Prev by Date: Re: window rotation
  • Next by Date: Re: Easiest way to convert an NSImage to a JPEG
  • Previous by thread: Easiest way to convert an NSImage to a JPEG
  • Next by thread: Re: Easiest way to convert an NSImage to a JPEG
  • Index(es):
    • Date
    • Thread