Re: drawing 1 bit images, and image resolution

2012-02-10 Thread Graham Cox
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

Re: drawing 1 bit images, and image resolution

2012-02-10 Thread Chris Paveglio
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

Re: drawing 1 bit images, and image resolution

2012-02-10 Thread Chris Paveglio
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

Re: drawing 1 bit images, and image resolution

2012-02-10 Thread Alex Zavatone
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.

Re: drawing 1 bit images, and image resolution

2012-02-10 Thread Chris Paveglio
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

Re: drawing 1 bit images, and image resolution

2012-02-09 Thread Graham Cox
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

Re: drawing 1 bit images, and image resolution

2012-02-09 Thread Chris Paveglio
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?

Re: drawing 1 bit images, and image resolution

2012-02-08 Thread zav
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 Sender: cocoa-dev-bounces+zav=mac.com@lists.apple.comDate: Wed, 08 Feb 2