When the RasterPaintEngine.Gdi engine is used, the RasterImagePainter.Paint method internally will call the Win32 API functions to paint the image.
When the RasterPaintEngine.GdiPlus engine is used, the RasterImagePainter.Paint method internally will call GDI+ Graphics.DrawImage methods to paint the image. Note that if the Leadtools.RasterImage object is not fully compatible with GDI+, the framework will internally make a copy of parts of the image data (bands) and paint them to the destination device. The original data is not converted and no changes will be made to the original image.
RasterPaintEngine.GdiPlus2 engine is deprecated as of LEADTOOLS v16.5. The functionality of this paint engine is merged with RasterPaintEngine.GdiPlus and you should convert your code to use RasterPaintEngine.GdiPlus whenever RasterPaintEngine.GdiPlus2 was used.
Using a particular paint engine depends on the Leadtools.RasterImage object and your specific needs:
When the RasterPaintEngine.GdiPlus engine is used, the following properties are ignored when painting images:
Property | Notes |
---|---|
RasterPaintProperties.RasterOperation | Raster operations (ROP) are not supported in GDI+ |
RasterPaintProperties.UsePaintPalette | Palette is automatically used. |
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document