TXTextControl.Image Constructor

Initializes a new instance of the Image class.

Image()

Creates an empty instance of the Image class.

[C#]
public Image();
[Visual Basic]
Public Sub New()

Image(String, Int32)

Initializes a new image from the specified image file and filter.

[C#]
public Image(string fileName, int filterIndex);
[Visual Basic]
Public Sub New(ByVal fileName As String, ByVal filterIndex As Integer)
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:


Value 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(Image)

Initializes a new image from the specified System.Drawing.Image.

[C#]
public Image(System.Drawing.Image image);
[Visual Basic]
Public Sub New(ByVal image As System.Drawing.Image)
Parameter Description
image

Specifies a System.Drawing.Image object which is used to initialize the TXTextControl image.

Image(MemoryStream)

Initializes a new image from the specified memory stream.

[C#]
public Image(System.IO.MemoryStream memoryStream);
[Visual Basic]
Public Sub New(ByVal memoryStream As System.IO.MemoryStream)
Parameter Description
memoryStream

Specifies a memory stream from which the data for the TXTextControl image is read.

Image(UnmanagedMemoryStream)

Initializes a new image from the specified unmanaged memory stream.

[C#]
public Image(System.IO.UnmanagedMemoryStream unmanagedStream);
[Visual Basic]
Public Sub New(ByVal unmanagedStream As System.IO.MemoryStream)
Parameter Description
unmanagedStream

Specifies an unmanaged memory stream from which the data for the TXTextControl image is read.

See Also