Page 1 of 1

Access image pixels

Posted: 2007-01-31T09:10:07-07:00
by stikhs
I want to have indexed access to each line of pixels of my Image.More specifically I want to be capable of accesing a pixel in aspecific row every time.How is that possible via the attributes of Image class?

Thank you in advance,

Antonis

Posted: 2007-01-31T10:40:43-07:00
by magick
We assume you are using Magick++. If so use getConst() to return a particular pixel or pixels in your image.

Posted: 2007-01-31T11:58:57-07:00
by stikhs
Yes I use Magick++!What I want to do is to iteratively assign the image's pixel values to a TBitmap using ScanLine() .So is it possible to assign pixel values with getConst()?

Posted: 2007-01-31T12:10:52-07:00
by magick
Accessing pixels with getConst() is discussed here: http://www.imagemagick.org/Magick++/Pixels.html