LEADTOOLS GDI/GDI+ (Leadtools.Drawing assembly)
LEAD Technologies, Inc

PaintEngine Property






Gets and sets the paint engine to use when displaying images.
Syntax
public RasterPaintEngine PaintEngine {get; set;}
'Declaration
 
Public Property PaintEngine As RasterPaintEngine
'Usage
 
Dim instance As RasterPaintProperties
Dim value As RasterPaintEngine
 
instance.PaintEngine = value
 
value = instance.PaintEngine
public RasterPaintEngine PaintEngine {get; set;}
 get_PaintEngine();
set_PaintEngine(value);
public:
property RasterPaintEngine PaintEngine {
   RasterPaintEngine get();
   void set (    RasterPaintEngine value);
}

Property Value

A RasterPaintEngine enumeration value that specifies the paint engine to use when displaying images.
Remarks

When the RasterPaintEngine.Gdi engine is used, the RasterImagePainter.Paint method calls the Win32 API functions internally to paint the image.

When the RasterPaintEngine.GdiPlus engine is used, the RasterImagePainter.Paint method calls GDI+ Graphics.DrawImage methods internally to paint the image. Note that if the Leadtools.RasterImage object is not fully compatible with GDI+, the framework makes a copy of parts of the image data (bands) internally and paints them to the destination device. The original data is not converted and no changes will be made to the original image.

Choosing a 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
RasterOperation Raster operations (ROP) are not supported in GDI+
UsePaintPalette Palette is automatically used.

Example
For an example, refer to RasterPaintProperties.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RasterPaintProperties Structure
RasterPaintProperties Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.