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
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

drawing 1 bit images, and image resolution

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

iOS camera image resolution selection

2011-08-02 Thread Nathan Sims
When retrieving an image from the iPad's rear camera, I remember there being an API that would allow you to select from a number of resolutions, ranging from thumbnail up to native. Where would I find this information? I'm trying to find out, among other things, if the iPad can return a 640x480

Re: Image Resolution

2010-10-18 Thread Quincey Morris
On Oct 18, 2010, at 04:37, Amy Heavey wrote: > The source images are not generated by us, they are from a variety of surces, > and are generally 200pixels + on each side, however sometimes they are 72 > dpi, and sometimes they are 300dpi. Even if an aimage is 450pixels square, > when it is set

Image Resolution

2010-10-18 Thread Amy Heavey
Hi, I've got an app that generates composite images, so it places images onto a single canvas and saves that as a new image. It's working fine, but I'm struggling with the resolutions/representations issue. The source images are not generated by us, they are from a variety of surces, and

Re: How is image drawing rate effected by image resolution and size?

2008-08-05 Thread Jean-Daniel Dupas
Le 5 août 08 à 19:48, Frederick Bartram a écrit : I am having difficulty understanding the issues involved in image drawing speed. I have a large, ~10K x 10K image in a scrolling view. The image is loaded as a PNG file into an NSImageView from a nib. I am getting large differences in the

How is image drawing rate effected by image resolution and size?

2008-08-05 Thread Frederick Bartram
I am having difficulty understanding the issues involved in image drawing speed. I have a large, ~10K x 10K image in a scrolling view. The image is loaded as a PNG file into an NSImageView from a nib. I am getting large differences in the image drawing speed that I do not understand. The