ok, i tried to look where i define the screen buffer & it's size, and i couldn't find it. i'll write the code i'm using to display my images, and maybe someone will show me my mistake, and what i left behind. This code show me the image in 4 bit color, but it erase the form objects (that are 1 bit color). -------------- UInt32 depth = 0x04; ScrDisplayMode (scrDisplayModeSet, 0, 0, &depth, 0); WinDrawBitmap (imagePtr, x, y); // imagePtr is the pointer to the bitmap -------------- i also tried to display it using Double-Buffering, but there was no change in the situation.
shay "Trevor Meyer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > The screen can only be in one bit depth at a time, so you would never set > multiple depths at once. It is either in 4, 2 or 1 (or 8 on the IIIc) bit > per pixel mode, not all three. > > It's hard to say exactly why your screen went blank. You were trying to draw > a large bitmap (4-bit mode = 120x160/2 = 9,600 bytes) into a small screen > buffer (1-bit mode = 120x160/8 = 2,400 bytes) so maybe some of your dynamic > heap got overwritten. > > Trevor > > ---------- > From: Shay [SMTP:[EMAIL PROTECTED] > Sent: Thursday, September 14, 2000 2:21 PM > To: Palm Developer Forum > Subject: Re: 4 bit error on palm v > > ok, now it's clear... > and if i want to SET 1+2+4 bits depths, can i just put 0x04 or do i > need to > specify in some way the all three of them ? > still - any clue WHY my screen went blank (all the form object > disappear) > when i did "WinDrawBitmap" and just the bitmap was shown ? > > shay > > > "Trevor Meyer" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > > The value that is returned is a bitmap indicating all the > supported > depths. > > The value you pass in to set a given mode is the number of > bits/pixel. So > > 0x08 indicates that 4-bit mode is supported, while 0x04 is used to > SET > > 4-bit/pixel mode. > > > > I agree that this is not especially intuitive. > > > > Trevor Meyer > > TRG Products > > [EMAIL PROTECTED] > > > > ---------- > > From: Shay [SMTP:[EMAIL PROTECTED] > > Sent: Thursday, September 14, 2000 1:28 PM > > To: Palm Developer Forum > > Subject: Re: 4 bit error on palm v > > > > according to the reference PDF of the palm - > > ScrDisplayMode - This function indicates support for 4-bit drawing > > by > > returning a > > value of 0x08, Support for bit depths of 2 and 1 is indicated by a > > return > > value of > > 0x03. > > > > so for some reason, when i type 4 (or 0x04) it's ok, but when i > type > > 0x08 > > it's not. > > and i need support for 1,2 and 4 bits. > > and when i draw my bitmap, the rest of the screen goes blank. > > any idea ? > > > > i'm creating the bitmap myself. > > > > shay > > > > > > /forums/ > > > > > > > > -- > For information on using the Palm Developer Forums, or to > unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/ > > -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
