Marco,
There is no transparent-background, just a white color.
You must convert the BMP to a BMP with
AlphaChannelPixelformer is doing the Job for You.
1. Select < Import > from the Filemenue
2. Select < Properties > and change to
RGB-Color with Alpha-Channel3. The white Background is not transparent. Replace white with transparent.
4. Select < Export > from the Filemenue and save as
Premultiplied Alpha
You can use the magic-wall-tool, to select the white areas. Replace the white Color with transparent

If You like, You can clean the Picture-Border before saving.

Save as Premultipled Alpha-Bmp.

...
...
DEFINE WINDOW oWnd TITLE "TTitle Class Test" MDI
// Wrong
// @ 10,10 BITMAP oImage FILE "SM_1.BMP" OF oWnd:oWndClient noborder PIXEL
// oImage:lTransparent:=.t.
activate window oWnd;
ON INIT ( FOLDER(),
Show_Alpha(hDC) )
return nil
// -------
Function Show_Alpha(hDC)
LOCAL oBmp1, oBmp2, oBmp3
cALPHA1 := c_path + "\IMAGES\Image1.BMP"
cALPHA2 := c_path + "\IMAGES\Image2.BMP"
cALPHA3 := c_path + "\IMAGES\Image3.BMP"
// Left / Top
IF File( "&cALPHA1" )
DEFINE BITMAP oBmp1 FILENAME "&cALPHA1"
ABPaint( hDC, 760, 20, oBmp1:hBitmap, 220 )
oBmp1:End()
ENDIF
IF File( "&cALPHA2" )
DEFINE BITMAP oBmp2 FILENAME "&cALPHA2"
ABPaint( hDC, 780, 170, oBmp2:hBitmap, 220 )
oBmp2:End()
ENDIF
IF File( "&cALPHA3" )
DEFINE BITMAP oBmp3 FILENAME "&cALPHA3"
ABPaint( hDC, 780, 310, oBmp3:hBitmap, 220 )
oBmp3:End()
ENDIF
RETURN NIL
Best Regards
Uwe
