|
Add Gradient Photo Frame border to image.
Public Function AddGradientBorder( iBorderWidth As Integer, _ clrColor1 As OLE_COLOR, _ clrColor2 As OLE_COLOR, _ iGradientMode As Integer )
|
Parameter iBorderWidth the width of border.
clrColor1 specifies the color at the starting boundary line of this linear gradient brush.
clrColor2 specifies the color at the ending boundary line of this linear gradient brush.
iGradientMode 0 - Specifies the color to change in a horizontal direction from the left of the display to the right of the display. 1 - Specifies the color to change in a vertical direction from the top of the display to the bottom of the display. 2 - Specifies the color to change in a forward diagonal direction from the upper-left corner to the lower-right corner of the display. 3 - Specifies the color to change in a backward diagonal direction from the upper-right corner to the lower-left corner of the display.
No Return Value
Example
|
Visual Basic Syntax ImageViewer1.AddGradientBorder 10,RGB(255,0,0),RGB(255,255,0),0
|
|
|