Hello,
I'm desperatly looking for code samples on how to display bitmaps on TX.
I'm able to display a 24 color bitmap but the resolution is just bad.
I have several bitmaps I got from the web also 24 color and they display fine,
but the ones I create with photoshop do not display very good as the colors are
completly destroyed.
when I try to compare the structure of the bitmaps, there does not seem to be
any difference reported by photoshop but one displays fine and the other does
not.
So far I have had to settle for low res bitmap display but I would like to
update the application UI to use more modern bitmaps like the ones they use in
the home screen and really be able to use the TX's high resolution screen.
I'm using cw 9.3 and pilcr for development tools....
This is the code I'm using to display the bitmaps
void drawBitmap(UInt16 Bitmap, UInt16 X, UInt16 Y)
{
MemHandle h;
BitmapType* bmpP;
Coord width, height;
WinHandle winH = WinGetDrawWindow();
WinDrawOperation oldMode;
WinPushDrawState();
h = DmGet1Resource(bitmapRsc, Bitmap);
bmpP = (BitmapType*)MemHandleLock(h);
oldMode = WinSetDrawMode(winPaint);
WinPaintBitmap (bmpP, X, Y);
MemHandleUnlock(h);
DmReleaseResource(h);
WinSetDrawMode(oldMode);
WinPopDrawState();
}
and this is the resource code
BITMAP splashBM
BEGIN
BITMAP "screen_saver.bmp" BPP 8 DENSITY 2 COMPRESS TRANSPARENTINDEX 0
END
Same code is used to display the Palm images I got from the web and the images
I created with photoshop
Can anyone help help?
Thanks a bunch
Luis,
_________________________________________________________________
Windows Liveā¢: Keep your life in sync.
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1a_explore_042009
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/