Export (0) Print
Expand All

DrawingContext Methods

The DrawingContext type exposes the following members.

  NameDescription
Public method CheckAccess Determines whether the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.)
Public method Close Closes the DrawingContext and flushes the content. Afterward, the DrawingContext cannot be modified.
Protected method DisposeCore Releases all resources used by the DrawingContext.
Public method DrawDrawing Draws the specified Drawing object.
Public method DrawEllipse Overloaded. Draws an ellipse.
Public method DrawGeometry Draws the specified Geometry using the specified Brush and Pen.
Public method DrawGlyphRun Draws the specified text.
Public method DrawImage Overloaded. Draws an image into the region defined by the specified Rect.
Public method DrawLine Overloaded. Draws a line with the specified Pen.
Public method DrawRectangle Overloaded. Draws a rectangle.
Public method DrawRoundedRectangle Overloaded. Draws a rounded rectangle.
Public method DrawText Draws formatted text at the specified location.
Public method DrawVideo Overloaded. Draw a video into the specified region.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Pop Pops the last opacity mask, opacity, clip, effect, or transform operation that was pushed onto the drawing context.
Public method PushClip Pushes the specified clip region onto the drawing context.
Public method PushEffect Pushes the specified BitmapEffect onto the drawing context.
Public method PushGuidelineSet Pushes the specified GuidelineSet onto the drawing context.
Public method PushOpacity Overloaded. Pushes the specified opacity setting onto the drawing context.
Public method PushOpacityMask Pushes the specified opacity mask onto the drawing context.
Public method PushTransform Pushes the specified Transform onto the drawing context.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method VerifyAccess Enforces that the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.)
Protected method VerifyApiNonstructuralChange This member supports the WPF infrastructure and is not intended to be used directly from your code. 
Top

  NameDescription
Explicit interface implemetation Private method IDisposable.Dispose This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Top

Community Additions

ADD
Show:
© 2014 Microsoft