[Gtk-sharp-list] Pixbuf -> Image?

Brad Taylor brad@getcoded.net
Wed, 25 Aug 2004 16:12:21 -0700

Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hey again,

I'm trying to figure out a way to be able to load up an image supplied
from a fileselection window and iterate through all the pixels, looking
for a red laser calibration mark.  I've tried loading up a Pixbuf,
rendering a pixmap and a bitmap then extracting the image from the
pixmap, but the call to RenderPixmapAndMask(Pixmap, Bitmap, int) needs a
non-null pixmap and bitmap, which, since pixmap doesn't have a 0
argument constructor, I cannot seem to do.  I'm figuring that there
_must_ be an easier way to load up a jpg and iterate over its pixels,
but it seems that Gdk.Image is the only one that can give me individual
pixels.  Does anyone have any advice? =20

Thanks in advance.


Brad Taylor
Genome Software LLC

Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

Version: GnuPG v1.2.5 (GNU/Linux)