Accusoft.ImagXpressSdk Namespace > ImageX Class > ImageX Constructor : ImageX Constructor(ImagXpress,Int32,Int32,Int32,Color,Resolution,Boolean) |
'Declaration Public Function New( _ ByVal imagXpress As ImagXpress, _ ByVal width As Integer, _ ByVal height As Integer, _ ByVal bitsPerPixel As Integer, _ ByVal backColor As Color, _ ByVal resolution As Resolution, _ ByVal virtualImage As Boolean _ )
'Usage Dim imagXpress As ImagXpress Dim width As Integer Dim height As Integer Dim bitsPerPixel As Integer Dim backColor As Color Dim resolution As Resolution Dim virtualImage As Boolean Dim instance As New ImageX(imagXpress, width, height, bitsPerPixel, backColor, resolution, virtualImage)
public ImageX( ImagXpress imagXpress, int width, int height, int bitsPerPixel, Color backColor, Resolution resolution, bool virtualImage )
public: ImageX( ImagXpress* imagXpress, int width, int height, int bitsPerPixel, Color backColor, Resolution* resolution, bool virtualImage )
public: ImageX( ImagXpress^ imagXpress, int width, int height, int bitsPerPixel, Color backColor, Resolution^ resolution, bool virtualImage )
A virtual image for all practical purposes is a blank canvas that the application can use in conjunction with the PaintImage event to control rendering of an image. The scrollbars, zoom factor and other attributes of the view are maintained by ImagXpress. This could be used to break a large image into smaller images or tiles for reducing the memory footprint of the application. This is advanced functionality and not recommended for use unless there is a extremely valid reason to use it.
The ImageX object implements the IDisposable interface and the application is required to call the Dispose method when the application is done with ImageX object, otherwise memory may leak.