Can anybody suggest me how to paint a transparent bitmap on a bitmap
painted at a particular location of a non-brushed dialog ?
Code: Select all
// Text on a bitmap
#include "FiveWin.ch"
FUNC main()
local oWnd, oBmp, oBmp1
DEFINE WINDOW oWnd TITLE "Text on a bitmap"
@ 1, 1 BITMAP oBmp FILENAME "..\bitmaps\magic.bmp" OF oWnd
oBmp:bPainted = { || SetBkMode( oBmp:hDC, 1 ),;
SetTextColor( oBmp:hDC, CLR_YELLOW ),;
TextOut( oBmp:hDC, 5, 5, "Hello" ) }
@ 2, 1 BITMAP oBmp1 FILENAME "..\bitmaps\book.bmp" OF oBmp NO BORDER
ACTIVATE WINDOW oWnd
RETURN NIL
But I want the book's background should get merged with the image in the background of the lady in the picture.
Thanks
- Ramesh Babu P