Bitmap

Bitmap

Postby pawelu » Sun Feb 26, 2006 9:08 am

Antonio,

I create bitmap from resource like this:

Code: Select all  Expand view  RUN
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
pawelu
 
Posts: 126
Joined: Thu Oct 06, 2005 10:18 pm
Location: Poland

Postby Antonio Linares » 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:
Image

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

then it looks like this:
Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby pawelu » Sun Feb 26, 2006 11:38 am

Antonio,

thanks

Pawel
pawelu
 
Posts: 126
Joined: Thu Oct 06, 2005 10:18 pm
Location: Poland


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 6 guests