A tool to convert an image to Imlib RGB data.



I had some free time, and wasted it making a small tool to 
convert an image to Imlib native rgb data.

Example:
run 'convertrgb logo.png', and logo.c is created

use it like this:

-- code --
#include "logo.c"

GdkImlibImage *image;
image=gdk_imlib_create_image_from_data(logo_rgb, NULL,
                        logo_rgb_width, logo_rgb_height);
/* if transparency is needed */
gdk_imlib_set_image_shape(image,&logo_rgb_alpha);

----------

The source is attached (~2k)

John
--
John Ellis <johne@bellatlantic.net>
http://www.geocities.com/SiliconValley/Haven/5235/

convertrgb.src.tgz



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