• 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: NSImage Questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImage Questions


  • Subject: Re: NSImage Questions
  • From: email@hidden
  • Date: Wed, 20 Mar 2002 13:58:07 -0800

My program does some things (like scaling, rotation, etc) to images and then
exports them. Currently it only exports to TIFF Format, thusly:

[[change TIFFRepresentation] writeToFile:myString atomically:YES];

Change is an NSImage, and myString is the path. This works perfectly.

I find myself looking to export in other formats however. For example, JPEG.
Any clue how to export my finished image to JPEG format?

This is an FAQ, search the archives for information on representationUsingType:properties:. You might also look at Apple's on-line doc, at http://developer.apple.com/techpubs/macosx/Cocoa/Reference/ApplicationKit/
ObjC_classic/Classes/NSBitmapImageRep.html#//apple_ref/occ/instm/NSBitmapImageRep/
representationUsingType:properties:.
Good luck.

Ben Haller
Stick Software
_______________________________________________
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.

  • Prev by Date: Re: Getting info from outside drawRect
  • Next by Date: Re: Cocoa's Popularity
  • Previous by thread: NSImage Questions
  • Next by thread: Fw-Up: views removed from their superviews are automatically released?
  • Index(es):
    • Date
    • Thread