Am attaching the code . Please go through it.

GcBitmapHandle gcBitmap;
GcHandle gc;

gcBitmap = FrmGetBitmapHandle(formP, myAppDB, bitmapRsc,
rscID, 0);
if (!gcBitmap)
return memErrNotEnoughSpace;
GcGetCurrentContext(gc);
if (gc) {
GcDrawBitmapAt(gc, gcBitmap, NULL, x, y);
GcReleaseContext(gc);

Here we need to know how we could give the FrmGetBitmapHandle parameter "myAppDB", which is the database name. Am developing my application in Protein sdk. Here i cant find a .pdb file. Please help..

Michal Seliga wrote:
if image data are 16bpp you may need to byteswap each pixel. it depends how you
draw it exactly (memmove to window bitmap? or create bitmap and use
WinDrawBitmap()?)

Anoop wrote:
  
Hi all,
        We read a bmp image from a file at a specified location and
tried displaying on screen. While trying it in device the image was
correctly loaded but was distorted. We specified the correct height,
width , depth and file size for reading from file. Also we noticed that
the image is inverted. The color combination is also not correct. if
anyone gone through this issue, please guide us.

Thanks,
Anoop

    

  


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

Reply via email to