• 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
NSImageView save into Bmp File?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSImageView save into Bmp File?


  • Subject: NSImageView save into Bmp File?
  • From: "Emmanuel Verlynde" <email@hidden>
  • Date: Tue, 3 Feb 2004 18:13:39 +0100
  • Organization: Opendisc

How save NSImageView Content into a "Bmp" File ?

I have set image view with,

[img setImage:[[NSImage alloc]
initWithContentsOfFile:@"file1.bmp"]];

and try to save imageview to a file with,

NSBitmapImageRep * imgRep = (NSBitmapImageRep *)[[[img image]
representations] objectAtIndex: 0];
NSData * data = [imgRep bitmapData];
...
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSImageView save into Bmp File?
      • From: Florent Pillet <email@hidden>
  • Prev by Date: Re: TableViewSelectionDidChange and Drawer Problems
  • Next by Date: Re: Getting WebKit Form Values
  • Previous by thread: Re: TableViewSelectionDidChange and Drawer Problems
  • Next by thread: Re: NSImageView save into Bmp File?
  • Index(es):
    • Date
    • Thread