Bitmap

Post Reply
pawelu
Posts: 126
Joined: Thu Oct 06, 2005 10:18 pm
Location: Poland
Contact:

Bitmap

Post by pawelu »

Antonio,

I create bitmap from resource like this:

Code: Select all

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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
pawelu
Posts: 126
Joined: Thu Oct 06, 2005 10:18 pm
Location: Poland
Contact:

Post by pawelu »

Antonio,

thanks

Pawel
Post Reply