Draws the image to a given device context (DC) at a specified location using a specified draw mode.
Object.Draw ( hDC ,[iX] [,iY] [,enDrawMode] )
The Draw method syntax has the following parts:
Name |
Type |
Description |
Object |
AImageListImage |
AImageListImage object |
hDC |
Handle to the device context of an object. |
|
iX |
Long |
An integer specifying the horizontal position (in pixels) of the object on its container. |
iY |
Long |
An integer specifying the vertical position (in pixels) of the object on its container. |
enDrawMode |
enumAImageListDrawMode |
An integer specifying the mode of drawing the object. |
enumAImageListDrawMode can be one of the following:
Name |
Value |
Description |
aimgliDrawModeNormal |
0x00 |
Normal. The default value. |
aimgliDrawModeTransparent |
0x01 |
Transparent |
aimgliDrawModeFocus |
0x02 |
Focus |
aimgliDrawModeSelected |
0x04 |
Selected |
aimgliDrawModeMask |
0x10 |
Mask |
The iX and iY are the coordinates used to specify the location within the device context where the image will be drawn. If you do not specify these, the image is drawn at the origin of the device context (0, 0).
The following example will draw the image at x=50 and y=100 pixels, using the Transparent style:
imglii1.Draw( hDC, 50, 100, aimgliDrawModeTransparent)