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

Re: NSImage information


  • Subject: Re: NSImage information
  • From: Scott Anguish <email@hidden>
  • Date: Fri, 21 Sep 2007 00:52:48 -0400


On Sep 21, 2007, at 12:42 AM, Development wrote:

I have never used NSImage very much, however I've spent the last hour or so going over the header and the info I could find on the developer site and I'm not seeing my answer, so I am hoping some one might know.
Using NSImage and NSImageRep it appears to be possible to import JPG,PNG and TIFF images (among many others.) Thats pretty clear and obvious. However I have been asked to create a program for a photographer that will take tiff files and allow her to resize them (also seems rather clear in the header.) then save them as maximum quality jpeg files. I did not see a Jpeg image rep header... I hope it wasn't staring me in the face. Do the Appkit NSImage and various image reps allow for the conversion from one format to the next or am I going to have to license a library from some where?



You need to manipulate the underlying NSBitmapImageRep (typically by asking the NSImage for the best representation)


	then use the method

- (NSData *)representationUsingType:(NSBitmapImageFileType)storageType properties:(NSDictionary *)properties

documented here

http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSBitmapImageRep_Class/index.html#/ /apple_ref/doc/uid/TP40004009
_______________________________________________


Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSImage information
      • From: Development <email@hidden>
References: 
 >NSImage information (From: Development <email@hidden>)

  • Prev by Date: NSImage information
  • Next by Date: Re: NSImage information
  • Previous by thread: NSImage information
  • Next by thread: Re: NSImage information
  • Index(es):
    • Date
    • Thread