This method displays the image in the device context. (the screen or the printer).

[Visual Basic]   [ Boolean = ]imagekitcontrolname.PrintDraw.ImageOut(hDC As LONG_PTR, Handle As LONG_PTR, left As Long, top As Long, right As Long, bottom As Long, Aspect As Boolean, DXFBlack As Boolean, DeviceMode As OutPutDeviceModeConstants)
[Visual C++]     [ BOOL = ]imagekitcontrolname.GetPrintDraw().ImageOut(LONG_PTR hDC, LONG_PTR Handle, long left, long top, long right, long bottom, BOOL Aspect, BOOL DXFBlack, long DeviceMode)
[VB.NET]   [ Boolean = ]imagekitcontrolname.PrintDraw.ImageOut(hDC As Integer(x86) or Long(x64), Handle As Integer(x86) or Long(x64), left As Integer, top As Integer, right As Integer, bottom As Integer, Aspect As Boolean, DXFBlack As Boolean, DeviceMode As ImageKit10(A)Lib.OutPutDeviceModeConstants)
[C#.NET]   [ bool = ]imagekitcontrolname.PrintDraw.ImageOut(int(x86) or long(x64) hDC, int(x86) or long(x64) Handle, int left, int top, int right, int bottom, bool Aspect, bool DXFBlack As, ImageKit10(A)Lib.OutPutDeviceModeConstants DeviceMode)

* ImageKit10ALib refers to the ANSI version, ImageKit10Lib refers to the Unicode version, (x86) refers to the 32 bit version, and (x64) refers to the 64 bit version.

Parameters

Name Explanation
hDC The device context
Handle The image handle of the raster or vector image
left,top The x,y coordinates of the top left corner of the rectangle in which the image is drawn
right,bottom The x,y coordinates of the bottom right corner of the rectangle in which the image is drawn
Aspect Maintains the height to width ratio [True (nonzero): Ratio maintained, False (0): Ratio not maintained]
DXFBlack In DXF images only, this sets black to white and white to black. [True (nonzero): Black and white are exchanged, False (0): Black and white are not exchanged]
DeviceMode If 0 (ikScreen), then the output will be drawn in pixel units. If 1 (ikPrinter), the output will be drawn in 0.1mm units.

Return Value

Returns True (nonzero) if successful. Returns False (0) if unsuccessful. Returns False (0) if the cancel button is clicked in the "Print" dialog box.

Explanation

The ImageOut method displays the image in the device context. (the screen or the printer). The left, top, right, and bottom parameters determine the location of the rectangle in which the image is displayed. If the image does not fit within the specified rectangle, it will be scaled to fit. If the Aspect parameter is False, the image will be displayed within the specified rectangle as it is, i.e. the height to width ratio will not be maintained. If the Aspect parameter is True, the image will be displayed within the specified rectangle with the height to width ratio maintained.

If the DeviceMode parameter is 0 then the left, top, right, bottom parameters will be in pixel units.

If the DeviceMode parameter is 1 then the left, top, right, bottom parameters will be in 0.1mm units.

Differences between the ImageKit7/8

The hDC and Handle arguments' type has changed.

 

The ImageKit10 ActiveX is a product created by Newtone Corporation