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+
When the RasterPaintEngine.GdiPlus2 engine is used, the
RasterImage.Paint method internally will call the GDI+
Using a particular paint engine depends on the RasterImage object and your specific needs:
RasterPaintEngine.GDI is generally faster than RasterPaintEngine.GdiPlus or RasterPaintEngine.GdiPlus2 If the RasterImage object is not GDI+ compatible, and you want to preserve the image state and data when painting, use either RasterPaintEngine.GDI or RasterPaintEngine.GdiPlus2. (refer to TestGdiPlusCompatible for more information). If you need to use GDI+ specific features (for example, if the RasterImage has a transparent color), then use either RasterPaintEngine.GdiPlus or RasterPaintEngine.GdiPlus2.
When RasterPaintEngine.GdiPlus or RasterPaintEngine.GdiPlus2 engine is used, the following properties are ignored when painting images:
Property | Notes |
---|---|
RasterOperation | Raster operations (ROP) are not supported in GDI+ |
UsePaintPalette | Palette is automatically used. |
PaintDisplayMode | Resample/Bicubic scaling and other speed/quality algorithm is controlled by the
|