Displays the CMYK planes stored in the image in the given Windows device context handle.
public static void PaintCmykPlanes(
Public Overloads Shared Sub PaintCmykPlanes( _
ByVal image As Leadtools.RasterImage, _
ByVal hdc As IntPtr, _
ByVal srcRect As Leadtools.LeadRect, _
ByVal srcClipRect As Leadtools.LeadRect, _
ByVal destRect As Leadtools.LeadRect, _
ByVal destClipRect As Leadtools.LeadRect, _
ByVal properties As Leadtools.Drawing.RasterPaintProperties, _
ByVal colorConverter As Object _
static void PaintCmykPlanes(
The source image.
The destination Windows device context handle where the CMYK planes will be displayed.
A Leadtools.LeadRect object that specifies the part of the image to use as the display source.
The coordinates in the srcRect rectangle are relative to the image. You can pass Rectangle.Empty to use the default, which matches the image.
A Leadtools.LeadRect object specifies the portion of the display source to paint. Generally, this is used for updating the display when part of the source image has changed.
The coordinates in the srcClipRect rectangle are relative to the image. You can pass Rectangle.Empty to use the default, which matches the image
A Leadtools.LeadRect object that specifies the portion of the display rectangle to paint. Generally, this is used for updating changes in the display surface, such as when a user moves another window, uncovering a part of the image that had been covered up.
The coordinates in the destClipRect are relative to the device context handle. You can pass Rectangle.Empty to use the default, which matches the device context handle. In most cases, however, you should use the rectangle returned by the .NET PaintEventArgs.ClipRectangle or Windows WM_PAINT message.
Options for the display.
Optional RasterColorConverter object used to convert CMYK data to BGR during painting. Pass null (Nothing in VB) to let LEADTOOLS use the built-in color conversion functions.
The image must contain pages that represent each of the CMYK planes.
The data is automatically converted to BGR and dithered (if necessary) without affecting the original data in the image.
The image planes are typically created using RasterCodecs.LoadCmykPlanes.
Windows can only paint BGR data. Therefore, we need to convert CMYK data to BGR during the painting process. You will notice that the painting of regular images (which are already BGR) is faster than the painting of CMYK planes.
The color conversion can be performed using RasterColorConverter.
These conversions are accurate, but are slower than the built-in CMYK->RGB conversion formulas. To use the accurate conversions, create a RasterColorConverter object and pass it as colorConverter. To use the fast conversions, pass null (Nothing for VB) for colorConverter.
For more information refer to RasterImage and GDI/GDI+.
For more information, refer to Changing Image Coordinates.
For more information, refer to Handling Palette Changes.
For more information, refer to Flags for the PaintDisplayMode Property.
For an example, refer to PaintCmykPlanes(rasterimage,graphics,leadrect,leadrect,leadrect,leadrect,rasterpaintproperties,object).