Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.12.21
Using the Paint Engine Property

When the RasterPaintEngine.GDI engine is used, the RasterImage.Paint method internally will call the Win32 API functions to paint the image.

When the RasterPaintEngine.GdiPlus engine is used, the RasterImage.Paint method internally will call the GDI+ Graphics.DrawImage methods to paint the image. Note that if the RasterImage object is not fully compatible with GDI+, the framework will internally convert the object into a suitable format. This may result in some of the internal image data to be altered.

When the RasterPaintEngine.GdiPlus2 engine is used, the RasterImage.Paint method internally will call the GDI+ Graphics.DrawImage methods to paint the image. Note that when using this engine, the RasterImage object data is guaranteed not to be altered or changed in any way.

Using a particular paint engine depends on the RasterImage object and your specific needs:

When RasterPaintEngine.GdiPlus or RasterPaintEngine.GdiPlus2 engine is used, the following properties are ignored when painting images:
PropertyNotes
RasterOperationRaster operations (ROP) are not supported in GDI+
UsePaintPalettePalette is automatically used.
PaintDisplayModeResample/Bicubic scaling and other speed/quality algorithm is controlled by the Graphics object itself. (Only with RasterPaintEngine.GdiPlus).