Re: [gtk-list] Problems manipulating GdkImage objects
- From: Arthur Jerijian <lightmanaj earthlink net>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Problems manipulating GdkImage objects
- Date: Fri, 26 Nov 1999 08:36:12 -0800
You can take a look at the source code to the GdkMagick library
(http://home.earthlink.net/~lightmanaj/GdkMagick). You will find some pixel
manipulation mathematics in the gdk_magick_private.h header file and their
usage in the gdkmagick_render.c file. I cover all six visual types in my code.
Thanks,
--Arthur
On Fri, 26 Nov 1999, AVILA BERMEJO, FRANCISCO JOSE wrote:
> Hi, I am making a program for image manipulation, and
> I need to manipulate the image data. I know the functions
> "gdk_image_set_pixel" and "gdk_image_get_pixel", but
> I can get the real range of the image. I need the three RGB
> components of each pixel, but I don“t know how I can do it.
> I suppouse that if the images is grey scale and a pixel has the
> values of 250, the RGB components will be (250,250,250). Isn't it?
> But if a read a 250 value a get 65535. A little sample code will
> be fine or simply the steps.
>
> Thanks.
>
> --
> ---------------------------------------------------------------------
> E.T.S.I. INFORMATICA Linux Booting ....
>
> Software is like sex, the best is free." --Linux Torvalds
>
> Nuevo E-mail: x2042949@fedro.ugr.es
> Nueva Web: ****
>
> --------------------------------------------------------------------
>
>
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]