Hi
I still can't seem to render selfmade bitmaps to the emulator. I've looked
through the archives and tried the examples, but the image is still not
appearing. The display stays white in the emulator.
What's odd is that when I get to the memset below, I start to overwrite
memory. Doesn't BmpGetBits give me a pointer to the bitmap's data area that
I can then manipulate at will?
Here's what I am doing:
pBmp = BmpCreate(width,height,8,NULL,&error);
if (pBmp) {
win = WinCreateBitmapWindow(pBmp, &error);
}
ptr = (unsigned char *)BmpGetBits(pBmp);
for (i=0;i<height;i++) {
memset(ptr, i, width);
ptr += width;
}
WinSetDrawWindow(win);
WinPaintBitmap(pBmp,0,0);
BmpDelete(pBmp);
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/