Draws a picture on a specified Device Context; the picture can be also alpha with 32 bit
Syntax
Public Sub OverlapImage (ByVal lDestHDC As Long, _ ByVal x As Long, _ ByVal y As Long, _ 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 |
| ByVal x As Long |
Specifies the x-coordinate of the rectangle's upper-left corner. |
| ByVal y As Long |
Specifies the y-coordinate of the rectangle's upper-left corner. |
| 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 |
|