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: 8753
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 4 times
- Contact:
- Enrico Maria Giordano
- Posts: 8753
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 4 times
- Contact:
This is a working sample:
EMG
Code: Select all | Expand
#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
EMG