Creating pixmap

From: Adnan Khan (raoadnan@ecel.ufl.edu)
Date: Fri Jul 23 1999 - 22:40:21 MEST


Hi all!

I am using gGXW global pointer to call the methods of TGXW class in order
to draw some images. What I intend to do is to read the data (pixmap) for
buffer and display is in the TCanvas. I understand that all I have to do
is to call CreatePixmap(..) and CreatePictureFromData(..) methods, but
that seems not working out quite well.

Can any one tell me if there is another way more efficient than that?

Moreover, I am little bit confused about the use of CreatePixmap() and
CreatePictureFromData (), I mean there are certain parametrs of type:

Pixmap_t and PictureAttributes_t. Would one one guide me how to initialize
them?

Thanks a lot.

=====================================

Here is the form of data I am reading from the buffer:

static char hasmail_bmp_data[] = {
    0x42,0x4d,0xc2,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x42,0x00,0x00,0x00,
    0x28,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x01,0x00,
    0x04,0x00,0x00,0x00,0x00,0x00,0x80,0x04,0x00,0x00,0x6d,0x0b,0x00,0x00,
    0x6d,0x0b,0x00,0x00,0x03,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0xff,0xff,0xff,0x00,0x51,0x61,0x30,0x00,0x00,0x00,0x00,0x00  
};



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:36 MET