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: "z...@mac.com" <z...@mac.com>
To: Chris Paveglio <chris_paveg...@yahoo.com>; Cocoa Dev List 
<Cocoa-dev@lists.apple.com>
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 <chris_paveg...@yahoo.com>
Sender: cocoa-dev-bounces+zav=mac.com@lists.apple.comDate: Wed, 08 Feb 2012 
07:26:24 
To: Cocoa Dev List<Cocoa-dev@lists.apple.com>
Reply-to: Chris Paveglio <chris_paveg...@yahoo.com>
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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to