On 11/02/2012, at 7:46 AM, Chris Paveglio wrote:
> for (column = 0; column {
> //get pixel value from grey and put into 1bit
> [imgRep getPixel:&lePixel atX:row y:column];
> [newRep setPixel:&lePixel atX:row y:column];
> }
> //FYI this is not an all purpose solution, this will ONLY work with gre
els; row++)
for (column = 0; column
To: Chris Paveglio
Cc: Cocoa Dev List
Sent: Thursday, February 9, 2012 5:43 PM
Subject: Re: drawing 1 bit images, and image resolution
On 10/02/2012, at 3:54 AM, Chris Paveglio wrote:
still looking for a way to convert to 1-bit.
So what have you tried?
The
I have been able to change the library to output Greyscale images now. It
required less work than I had thought.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the mod
Let's work on this today and see what we get. I've got meetings for the next 3
hours, but am free to try and help after that.
Feel free to email me in 3 hours.
Cool?
- Alex Zavatone
On Feb 10, 2012, at 11:15 AM, Chris Paveglio wrote:
> What I'm working with is a library that makes a QR code.
st int rawDataSize = widthInPixels * heightInPixels;
unsigned char *rawData = (unsigned char*)malloc(rawDataSize);
NSUInteger lePixel;
for (row = 0; row < heightInPixels; row++)
for (column = 0; column
To: Chris Paveglio
Cc: Cocoa Dev List
Sent: Thursday, February 9, 2012 5:43 PM
Subject: Re: d
On 10/02/2012, at 3:54 AM, Chris Paveglio wrote:
> still looking for a way to convert to 1-bit.
So what have you tried?
There are a lot of different methods for deciding how to threshold an image -
in other words how to decide which colours end up as 1s and which as 0s. You
will probably fin
ot;z...@mac.com"
To: Chris Paveglio ; Cocoa Dev List
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?
2012
07:26:24
To: Cocoa Dev List
Reply-to: Chris Paveglio
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 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