Question: Displaying Images (TIM Files)




Ok, i've given up on trying to dig through the completly uncommented
gtksee code for the momment =P

I'm currently working on a program that needs to be able to display TIM
image files.

I've got the pixel information, so i was figuring the simplest way would
be to just do a for loop and do a whole lot of gdk_draw_points

What i would like to know is; is there anyway to just give the color
values straight to gdk_draw_point without having to go through the nine or
ten line process of allocating a GdkColor and a GdkGC each and every time?

This is mainly a concern for the 15 bit TIM files, for the 4 and 8 bit
clut TIM files i can just (duh) allcoate a palette.

And if there is a better way of doing this then what i'm thinking of
above, i would love to hear about it. =)

Thanks




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