Re: drawing 1 bit images, and image resolution
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