Hello all,
is there an function to draw an transparent (0,0 pixel or an other is maskcolor) bitmap on screen and printer with resizable dimensions of the bitmap. The function "drawmasked" are not resizeable and on printer are not shown!
Many thanks
Guenther
Mail: office@byte-one.com
Transparent Bitmap
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: Transparent Bitmap
Try using PalBmpDraw() function for screen.
EMG
EMG
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
This is a working sample:
EMG
Code: Select all
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
LOCAL hBmp
DEFINE DIALOG oDlg
hBmp = READBITMAP( 0, "C:\FWHARBOUR\BITMAPS\OPEN.BMP" )
ACTIVATE DIALOG oDlg;
ON PAINT PALBMPDRAW( hDC, 10, 10, hBmp, , , , , .T., oDlg:nClrPane )
IF hBmp != 0; DELETEOBJECT( hBmp ); ENDIF
RETURN NIL