"Fackerz",

Writing bitmaps to the screen? That's got to be one of the easiest things to do on a Palm. When a bitmap is in a resource file (and you have to do those right, plus remember that there is a limit to resource bitmap size), you need to do this (freebie alert):


void UiPaintBitmapResource (WinHandle destWin, Coord x, Coord y, DmResID id)
{
MemHandle h;
BitmapType *bmP;
WinHandle oldWin;
h = DmGetResource (bitmapRsc, id);
if (h)
{
bmP = (BitmapType *) MemHandleLock (h);
if (bmP)
{
oldWin = WinSetDrawWindow (destWin);
WinPushDrawState ();
WinSetForeColor (ColorGetBlackIndex (FeaturesGetScreenDepth ()));
WinSetBackColor (ColorGetWhiteIndex (FeaturesGetScreenDepth ()));
WinPaintBitmap (bmP, x, y);
WinPopDrawState ();
WinSetDrawWindow (oldWin);
MemHandleUnlock(h);
}

DmReleaseResource(h);
}
}


Your problem is finding the information. There are tons of it, and most of it drenched in noise. The bible: Palm OS Programmer's Reference. Everything else qualifies as noisier though worth wading through when the former doesn't have it.

My rant: as for Palm Inc. (not PalmSource) and their PluggedIn program, I suspect that these guys (management team included BTW) are on crack. I have seen more simulator crashes in the last 2 weeks than I have seen pigeons in the skies of China (and yes, there are pigeons in China, even in the skies). And that hardware... I bought an E2 1 month ago. It can almost qualify it as a piece of crap. Slower than my and less stable than my previous T/E (now, that was a good design). These guys have cut so many corners that even the stylus-built-in reset pin is now made of cheap (read easily bendable) plastic. 

Plastic... what's the deal with that? If you're going to build a less stable device, rule #1 of good design is: make it so easy to reset, hell, better yet: make it pleasurable, so much so in fact that your users won't mind the crashing as much. There's a feature request for them: disguise the "Reset" alert as a screensaver. And give us a nice metallic reset pin like we used to have. That would help.

Rant aside, relax and just ask.

==
Alexandre Rousseau


the hell, it seems that whatever i do i can't display an image.
i've tried the bitmap drawing method in the help. btw i'm programming on 68K. it seems that whatever i do it cannot find the bitmap i created, although i have already set the damn thing on the resource editor and appresource.h. it always cannot find the bitmap so no image can possibly be displayed.

from the things the way are going i think that i like assembly now more than palm programming. the fucking unintuitive debugging, why the hell would i debug the fucking libraries. at this point now this is actaully a flame. die palm die! rot in hell. that is why you suck, you're not programmer friendly and is the thought of palm makes me sick. that is why power pc dominates now as it "takes care" of the programmers! again die palm die! don't fucking care if anybody ever replies as this is not my real e-mail and it will be too late before anybody can reply.



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

Reply via email to