Are you trying to directly modify the bitmap bits? Typically, one goes about this by creating an offscreen bitmap window and drawing there.
One error in your code is that you define tmp with 1000 elements, yet reference it as if it has 9600 elements. I would think this would give you an error on the Emulator debug ROM's, but perhaps not. --- Tim Kostka "S�bastien Bouvet" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > I used bmpcreate to print a bitmap on screen. > > BitmapPtr bufferB; > unsigned char tmp[1000]; > > > for(i=0; i < 9600; i++) > { > tmp[i] = i%255; > } > bufferB = BmpCreate(160, 120, 4, NULL, &error); > > > if(bufferB) > { > d = (unsigned char*) bufferB; > > for (i = 0; i < 9600; i++) > *(d + 16 +i) = 255 - tmp[i]; // PB here > > WinDrawBitmap (bufferB, 0, 16); > BmpDelete(bufferB); > } > > This sample works well on PalmOS 4 and under but not in PalmOS 5. > The problem is when I copy tmp in bitmap. > If someone can help me? > > thanks a lot > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
