FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC Bitmap
Posts: 126
Joined: Thu Oct 06, 2005 10:18 PM
Bitmap
Posted: Sun Feb 26, 2006 09:08 AM
Antonio,

I create bitmap from resource like this:

Function TestBmp ()

   Local oWnd := Nil

   Define Window oWnd
   @ 78, 20 BitMap oBmp Resource 'Info' Size 130, 78 Pixel
   Activate Window oWnd

Return .T.


Bitmap is not properly displayed. Bitmap size is about 10kB. I send for You original bitmap file and screen from PocketPC.

Regards
Pawel
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Bitmap
Posted: Sun Feb 26, 2006 11:18 AM
Pawel,

The bitmap color located at the pixel 0, 0 is used to select the transparent color. As you are using black at 0, 0 in your bitmap, then all black color is made transparent.

Change your bitmap color at 0, 0, in example, like this:


and if you use the clause NOBORDER also:
@ 78, 20 BitMap Resource 'Info' Size 130, 78 Pixel NOBORDER

then it looks like this:
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 126
Joined: Thu Oct 06, 2005 10:18 PM
Bitmap
Posted: Sun Feb 26, 2006 11:38 AM

Antonio,

thanks

Pawel

Continue the discussion