TXTextControl.ServerVisualization.View.GetImage Method

Gets a part of a document as an image.

GetImage()

Gets an image as a System.Drawing.Imaging.Bitmap.

[C#]
public System.Drawing.Imaging.Bitmap GetImage()
[Visual Basic]
Public Function GetImage() As System.Drawing.Imaging.Bitmap

GetImage(Rectangle)

Gets a clipping of the image as a System.Drawing.Imaging.Bitmap.

[C#]
public System.Drawing.Imaging.Bitmap GetImage(System.Drawing.Rectangle clipRectangle)
[Visual Basic]
Public Function GetImage(ByVal clipRectangle As System.Drawing.Rectangle) As System.Drawing.Imaging.Bitmap
Parameter Description
clipRectangle

Specifies the clipping, in pixels, relative to the top-left corner of the image, determined through the View.Location and View.Size properties.

GetImage(Byte[])

Gets an image as an array of bytes.

[C#]
public bool GetImage(out byte[] arImage)
[Visual Basic]
Public Function GetImage(ByRef arImage As Byte()) As Boolean
Parameter Description
arImage

Specifies a byte array into which the data is saved. No memory needs to be allocated through the caller.

GetImage(Byte[], Rectangle)

Gets a clipping of the image as an array of bytes.

[C#]
public bool GetImage(out byte[] arImage, System.Drawing.Rectangle clipRectangle)
[Visual Basic]
Public Function GetImage(ByRef arImage As Byte(), ByVal clipRectangle As System.Drawing.Rectangle) As Boolean
Parameter Description
arImage

Specifies a byte array into which the data is saved. No memory needs to be allocated through the caller.

clipRectangle

Specifies the clipping, in pixels, relative to the top-left corner of the image, determined through the View.Location and View.Size properties.

See Also