←Select platform
In This Topic ▼

D2DSurface Class Methods

Summary

For a list of all members of this type, see D2DSurface members

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 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.

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

Leadtools.Windows.D2DRendering Assembly