Initializes a new instance of the Image class.

Image()

public Image();
Public Sub New()

Image(String, Int)

public Image(string fileName, int filterIndex);
Public Sub New(ByVal fileName As String, ByVal filterIndex As Integer)

Image(System.Drawing.Image)

public Image(System.Drawing.Image image);
Public Sub New(ByVal image As System.Drawing.Image)

Image(System.IO.MemoryStream)

public Image(System.IO.MemoryStream memoryStream);
Public Sub New(ByVal memoryStream As System.IO.MemoryStream)

Image(System.IO.UnmanagedMemoryStream)

public Image(System.IO.UnmanagedMemoryStream unmanagedStream);
Public Sub New(ByVal unmanagedStream As System.IO.MemoryStream)

Parameters

Parameter Description
fileName Specifies the name and the path of the file from which the image is loaded.
filterIndex Specifies the index of the filter used to load the image. It is an index in the string returned through the ImageCollection.ImportFilters property starting with 1. Possible values are:
Event Description
1 Windows Bitmap (.BMP)
2 Tagged Image Format (.TIF)
3 Windows Metafile (.WMF)
4 Portable Network Graphics (.PNG)
5 JPEG File Interchange Format (.JPG, .JPEG)
6 Graphics Interchange Format (.GIF)
7 Windows Enhanced Metafile (.EMF)
image Specifies a System.Drawing.Image object which is used to initialize the TXTextControl image.
memoryStream Specifies a memory stream from which the data for the TXTextControl image is read.
unmanagedStream Specifies an unmanaged memory stream from which the data for the TXTextControl image is read.