Picture Constructor(Image,RenderStyle,Color,Int32,HorizontalAlignment,VerticalAlignment)
In This Topic
Creates a picture with the specified image, style, transparency color (with tolerance), and alignments of contents.
Syntax
'Declaration
Public Function New( _
ByVal As Image, _
ByVal As RenderStyle, _
ByVal As Color, _
ByVal As Integer, _
ByVal As HorizontalAlignment, _
ByVal As VerticalAlignment _
)
'Usage
Dim i As Image
Dim style As RenderStyle
Dim transparencyColor As Color
Dim transparencyTolerance As Integer
Dim alignHorz As HorizontalAlignment
Dim alignVert As VerticalAlignment
Dim instance As New Picture(i, style, transparencyColor, transparencyTolerance, alignHorz, alignVert)
Parameters
- i
- Image
- style
- Picture style
- transparencyColor
- Which color is transparent
- transparencyTolerance
- Amount of tolerance of transparency from the color value
- alignHorz
- Horizontal alignment of image
- alignVert
- Vertical alignment of image
See Also