LEADTOOLS GDI/GDI+ (Leadtools.Drawing assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
RasterPaintEngine Enumeration
See Also  



Indicates the painting engine to use when rendering images using the Windows GDI or GDI+ engines..

Syntax

Visual Basic (Declaration) 
Public Enum RasterPaintEngine 
   Inherits System.Enum
   Implements IComparableIConvertibleIFormattable 
Visual Basic (Usage)Copy Code
Dim instance As RasterPaintEngine
C# 
public enum RasterPaintEngine : System.Enum, IComparableIConvertibleIFormattable  
C++/CLI 
public enum class RasterPaintEngine : public System.Enum, IComparableIConvertibleIFormattable  

Members

MemberDescription
GdiUse Windows GDI when painting Leadtools.RasterImage objects
GdiPlusUse Windows GDI+ when painting Leadtools.RasterImage objects

Example

For an example, refer to RasterPaintProperties.

Remarks

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 makes a copy of parts of the image data (bands) and paints them to the destination device. The original data is not converted and no changes will be made to the original image.

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

For more information, refer to The RasterPaintEngine Property and 16bpp Grayscale Images.

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Leadtools.Drawing.RasterPaintEngine

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also