pixbuf color count



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

Once I have loaded a pixbuf using

gdk_pixbuf_new_from_file(filename, &error);

Is there a way to get the number of unique colors in that pixbuf. I
looked at the docs for ColorMap and it says it only applies to pseudo
color images, but I'm not even sure how that would apply in this case.

Basically, I just want to know if the image has only a couple of colors
in it or more.

Thanks,

Kevin
- --
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFHASUC6w2kMH0L1dERAnRoAJ9FGPRTVadgRPV9nDHJTiod15F2ewCfTT4A
+sTtrk2JNK872WiACSOBuZw=
=X5iu
-----END PGP SIGNATURE-----



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]