←Select platform

D2DSurface Class Members

Summary

The following tables list the members exposed by D2DSurface.

Public Constructors

Name Description
Public Constructor D2DSurface Initializes a new D2DSurface

Public Methods

Name Description
Public Method BeginDraw Initiates drawing on this surface.
Public Method Clear Clears the drawing area to the specified solid color brush.
Public Method CreateD2DBitmap Creates an instance of a D2D bitmap.
Public Method CreateD2DTileBrush Creates a D2DTileBrush from an instance of a System.Windows.Media.TileBrush.
Public Method Dispose Releases all resources used by this D2DSurface.
Public Method DrawArc Draws the outline of an elliptical arc using the specified D2DPen.
Public Method DrawEllipse Draws the outline of an ellipse having the specified dimensions with the specified D2DPen.
Public Method DrawGeometry Draws the outline of the specified geometry using the specified D2DPen.
Public Method DrawImage Draws the specified Leadtools.RasterImage to the size of the specified rectangle and opacity.
Public Method DrawLine Draws a line between the specified points using the specified D2DPen.
Public Method DrawPolygon Draws the outline of a polygon using an array of Point structures and the specified D2DPen.
Public Method DrawRectangle Draws the outline of a rectangle that has the specified dimensions and D2DPen.
Public Method DrawText Draws the specified text using the format information provided by an D2DFont object.
Public Method EndDraw Ends drawing operations on the surface and returns true to indicate the success of the operations.
Public Method FillArc Fills the interior of an elliptical arc using the specified brush.
Public Method FillEllipse Fills the interior of an ellipse using the specified brush.
Public Method FillGeometry Fills the interior of the specified geometry using the specified brush.
Public Method FillPolygon Fills the interior of a polygon using an array of Point and the specified brush.
Public Method FillRectangle Fills the interior of a rectangle that has the specified dimensions and the specified brush.
Public Method Invalidate Redraw the specified area in D2DSurface.
Public Method MultiplyTransform Multiplies the transformation of this surface and the specified matrix.
Public Method PopClip Removes the last clip rect from the surface. After this method is called, the clip is no longer applied to subsequent drawing operations.
Public Method PopLayer Stops redirecting drawing operations to the layer that is specified by the last PushLayer call.
Public Method PushClip Specifies a rectangle to which all subsequent drawing operations are clipped. until PopClip is called.
Public Method PushLayer Adds the specified layer to the surface so that it receives all subsequent drawing operations until PopLayer is called.
Public Method Restore Restores the D2DSurface drawing state to that of the specified D2DDrawingState.
Public Method Save Saves the current drawing state.
Public Method SetDpi Sets the dots per inch (DPI) of the surface.
Public Method SetTransform Applies the specified transform to the surface, replacing the existing transformation. All subsequent drawing operations occur in the transformed space.

Protected Methods

Name Description
Protected Method Finalize This member overrides System.Object.Finalize.

Public Properties

Name Description
Public Property SurfaceSize Gets or sets the D2DSurface size.

Public Events

Name Description
Public Event IsFrontBufferAvailableChanged Occurs when the Front Buffer Available property changes.

See Also

D2DSurface Class

Leadtools.Windows.D2DRendering Namespace

Help Version 22.0.2023.1.26
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Windows.D2DRendering Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.