• 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: drawing 1 bit images, and image resolution
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: drawing 1 bit images, and image resolution


  • Subject: Re: drawing 1 bit images, and image resolution
  • From: Chris Paveglio <email@hidden>
  • Date: Thu, 09 Feb 2012 08:54:48 -0800 (PST)

Interesting idea, but I need to work (the file on disk) with it as soon as it's saved, so that might not be an option but I'll keep it as a last resort.
I got the image-size and saving worked out, still looking for a way to convert to 1-bit.


----- Original Message -----
From: "email@hidden" <email@hidden>
To: Chris Paveglio <email@hidden>; Cocoa Dev List <email@hidden>
Cc:
Sent: Wednesday, February 8, 2012 12:53 PM
Subject: Re: drawing 1 bit images, and image resolution

I know this is somewhat lame, but could you use sips from a shell call to convert your saved image to a tiff and delete the original?

Sent from my Verizon Wireless BlackBerry

-----Original Message-----
From: Chris Paveglio <email@hidden>
Sender: cocoa-dev-bounces+zav=email@hiddente: Wed, 08 Feb 2012 07:26:24
To: Cocoa Dev List<email@hidden>
Reply-to: Chris Paveglio <email@hidden>
Subject: drawing 1 bit images, and image resolution

I need to save an NSImage as a TIFF file, as a 1-bit (black and white) image, and at a specific resolution (dpi). I have my NSImage being created in RGB mode, and I can save it (as RGB).
I've been trying to read the other posts on 1-bit images, but I don't understand things like "you'll have to fill it yourself".

Does anyone have some code they could share to take an NSImage and then make it 1-bit?

_______________________________________________

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: drawing 1 bit images, and image resolution
      • From: Graham Cox <email@hidden>
References: 
 >drawing 1 bit images, and image resolution (From: Chris Paveglio <email@hidden>)
 >Re: drawing 1 bit images, and image resolution (From: email@hidden)

  • Prev by Date: How to cancel a loading document in NSDocument's readFromURL:ofType:error method ?
  • Next by Date: Re: How to cancel a loading document in NSDocument's readFromURL:ofType:error method ?
  • Previous by thread: Re: drawing 1 bit images, and image resolution
  • Next by thread: Re: drawing 1 bit images, and image resolution
  • Index(es):
    • Date
    • Thread