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



Represents a GDI+ System.Drawing.Graphics object using a Leadtools.RasterImage as the display surface.

Object Model

RasterGraphics Class

Syntax

Visual Basic (Declaration) 
Public Class RasterGraphics 
   Implements IDisposable 
Visual Basic (Usage)Copy Code
Dim instance As RasterGraphics
C# 
public class RasterGraphics : IDisposable  
C++/CLI 
public ref class RasterGraphics : public IDisposable  

Example

For an example, refer to RasterImagePainter.CreateGraphics.

Remarks

An object of this class is returned from the RasterImagePainter.CreateGraphics method that allow you to create an infinite number of drawing capabilities such as paint, erase, color erase and brush, pen, spray gun, flood fill, color tube, text overlay, curve, line, rectangle, polygon, ellipse, freehand shapes, cut and paste, and more.

All GDI+ methods can be used to draw to the image using the returned System.Drawing.Graphics object. The graphics object must be disposed after using it.

If a region is defined for the image, GDI functions act only on the region, not on the entire image.

The GDI+ graphics supports only 1, 4, 8, 16 and 24 bit images. If you are using an image that has some other number of bits per pixel, you must use Leadtools.ImageProcessing.ColorResolutionCommand to change the image to a bits per pixel value supported by the DIB driver.

For more information refer to RasterImage and GDI/GDI+.

For more information, refer to Introduction to Image Processing With LEADTOOLS.

Inheritance Hierarchy

System.Object
   Leadtools.Drawing.RasterGraphics

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