A tool to convert an image to Imlib RGB data.
- From: John Ellis <johne bellatlantic net>
- To: gnome-list gnome org
- Subject: A tool to convert an image to Imlib RGB data.
- Date: Fri, 18 Sep 1998 04:49:51 -0400
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]