On Tue, Oct 24, 2000 at 08:06:31PM -0400, Shekar Mantha wrote:
> Hi,
> 
> 
> I have created a bitmap using:
> 
>         bitmap = BmpCreate(width, height, 8, colorTable, &err);
>         ptr = BmpGetBits(bitmap);
>       for (i = 0, pbits = bits; i < h; i++) {
>         MemMove(ptr, pbits, bytes);
>         pbits += bitmap->rowBytes;
>         ptr += bitmap->rowBytes;
>       }
> 
>     WinSetDrawWindow(aWindow);
>     WinPaintBitmap(bitmap, 0, 0);

Do you have to do anything to say it is NOT a compressed bitmap?

Is the colorTable in the right format (IRGB, big/little endian, right format)?

Is bytes in MemMove set to rowBytes?

> pbits contains decoded gif information (8 bit pixel values) that index into
> the colorTable that I have passed to BmpCreate. All I get on
> the screen is a black rectangle (the size of the bitmap).

Assuming that the format of the data is correct.

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to