FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Transparent Bitmap
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Transparent Bitmap
Posted: Thu Feb 02, 2006 09:30 PM

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

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Transparent Bitmap
Posted: Thu Feb 02, 2006 09:40 PM

Try using PalBmpDraw() function for screen.

EMG

Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Transparent Bitmap
Posted: Thu Feb 02, 2006 10:17 PM

Hello EMG,
"Try using PalBmpDraw() function for screen. "

There is an parameter ltransparent in this function, but no effect!?

MfG
Guenther

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Transparent Bitmap
Posted: Fri Feb 03, 2006 08:19 AM
This is a working sample:

#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

Continue the discussion