Bitmaps and FillRect

  • 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 :

    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);