This method displays the image in the device context. (the screen or the printer).
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. If 2 (ikMemoryHandle), the output will be drawn (in pixel units) to the image data according to the DeviceValue parameter |
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.