Unicode Controls & Classes for VB6 - Version 4

clsCommonWrapper.OverlapImageRect Method

Draws a picture on a specified Device Context; the picture can be also alpha with 32 bit

Syntax
Public Sub OverlapImageRect (ByVal lDestHDC As Long, _
ByRef r As RECT, _
ByVal bGrayed As Boolean, _
ByRef oPicImage As StdPicture, _
ByVal bUseTransp As Boolean, _
Optional ByVal iPicMaxWidth As Long = -1, _
Optional ByVal iPicMaxHeight As Long = -1, _
Optional ByVal XTransp As Long = 0, _
Optional ByVal YTransp As Long = 0, _
Optional ByVal lTranspColor As Long = -1&)
Parameters
Parameter Description
ByVal lDestHDC As Long The destination Device Context
ByRef r As RECT The rectangle coords The destination coords
ByVal bGrayed As Boolean Pass True to draw the image grayed
ByRef oPicImage As StdPicture The picture to draw
ByVal bUseTransp As Boolean Enable transparency management for non 32 bit pictures
32 bit pictures are always drawn using transparency; if you are using this flag on a 32 bit picture, an additional transparent color will be added
Optional ByVal iPicMaxWidth As Long = -1 Maximum width to draw
Optional ByVal iPicMaxHeight As Long = -1 Maximum height to draw
Optional ByVal XTransp As Long = 0 X coordinate at which the function will find the color to treat as transparent
Optional ByVal YTransp As Long = 0 Y coordinate at which the function will find the color to treat as transparent
Optional ByVal lTranspColor As Long = -1& Transparent color
Remarks
Check also the [RenderPicture] function