Bitmaps and FillRect
5.3k Views
2 users
read 1 min
Hello,
I want to draw a transparent bitmap with Wpdf and i can't realize It.
I use the FillRect function to paint a background and I write text on it. Then, I try to merge a Bitmap with it and it is hidden by the Rect I draw.
when I don't use the FillRect there is no problem.
Is anybody can help me?
this is my code :
MyPDFPrinter->Canvas->Brush->Color = clRed;
MyPDFPrinter->Canvas->FillRect( x, y, w, h);
MyPDFPrinter->Canvas->TextOut( x+10, y+10, "Test");
MyPDFPrinter->Canvas->CopyMode = cmSrcAnd;
MyPDFPrinter->DrawBitmap( x, y, w, h, (UINT)Bmp->Handle);
#1
♥ 0