Re: Newbie..2 bytes stored RGB images...



buka ikmultimedia com writes:
Hi there, i've just started using GTK/GDK to port an existing app to linux.

The app use RGB IMAGES (ex. 4x4 pixel area) stored in memory using
2 BYTES PER PIXEL:

[5 bits][5 bits][5 bits][1 unused bit]
   RED   GREEN    BLUE

or, if you prefer:

Byte0    Byte1
0123456701234567
rrrrrgggggbbbbb-


Is there an easy way to DISPLAY this kind of 'images' in GDK/GTK ?

Use GdkPixbuf, and convert to 8-8-8 RGB format.

Havoc



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