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

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


--=-O27KUZPRsH/p+9W9m+Op
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

--=20
Brad Taylor
Genome Software LLC
http://www.getcoded.net

--=-O27KUZPRsH/p+9W9m+Op
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQBBLRzVWZT8MXyJ2AURAt9VAJ4ucEFqUhDLTMhswjBKJNrDWrtEgACfSwD/
bxgEtQv8s7gdQgTSg+dW61Q=
=G207
-----END PGP SIGNATURE-----

--=-O27KUZPRsH/p+9W9m+Op--