|
Draw the overlay image on image. You can adjust the transparent color, alpha value. Make sure set the ShowImage property = true.
Public Function DrawImage( _ ByVal iXPos As Integer, _ ByVal iYPos As Integer, _ ByVal strImageFile As String, _ ByVal clrTran As Color, _ ByVal iAlphaValue As Integer )
|
Parameter
iXPos Specifies the logical x-coordinate of the starting point of the image.
iYPos Specifies the logical y-coordinate of the starting point of the image.
strImageFile the image file of overlay image. It support bmp, jpg, tif, png, gif image.
clrTran the transparent color of overlay image.
iAlphaValue the alpha value of overlay image, range from 0-255. 255 = fully visble.
Return Value
No return value.
Example
|
Visual Basic Syntax ImageViewer1.FileName="c:\test1.jpg" ImageViewer1.ShowImage=True ImageViewer1.DrawImage 0, 0, c:\image.jpg, RGB(0,0,0), 255
|
|
|