DRAWTRANSBMP statement

Purpose: DRAWTRANSBMP draws a transparent bitmap on the window specified at the X, Y coordinates.


 Syntax:

 DRAWTRANSBMP(hWnd, _
               hBmp, _
           ColorRef, _
                 X%, _
                 Y%  _
        [, DrawHDC])

 Parameters:

  • hWnd The handle to the window on which the bitmap is to be drawn.
  • hBmp The handle to the bitmap which is to be drawn.
  • ColorRef ColorRef value is a 32-bit COLORREF value used to specify an RGB color. This value indicates which color in the bitmap is to be transparent.
  • Xpos% The horizontal position of the upper left corner where the bitmap is to be drawn.
  • Ypos% The vertical position of the upper left corner where the bitmap is to be drawn.
  • DrawHDC [OPTIONAL] HDC(Handle to Device Context) pointing to an already open HDC. This is useful if a device context is to be written to many times. In this case the programmer is responsible for closing the HDC at the appropriate time.