DrawingContext Methods

The DrawingContext type exposes the following members.

  Name Description
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(Brush, Pen, Point, Double, Double) Draws an ellipse with the specified Brush and Pen.
Public method DrawEllipse(Brush, Pen, Point, AnimationClock, Double, AnimationClock, Double, AnimationClock) Draws an ellipse with the specified Brush and Pen and applies the specified animation clocks.
Public method DrawGeometry Draws the specified Geometry using the specified Brush and Pen.
Public method DrawGlyphRun Draws the specified text.
Public method DrawImage(ImageSource, Rect) Draws an image into the region defined by the specified Rect.
Public method DrawImage(ImageSource, Rect, AnimationClock) Draws an image into the region defined by the specified Rect and applies the specified animation clock.
Public method DrawLine(Pen, Point, Point) Draws a line between the specified points using the specified Pen.
Public method DrawLine(Pen, Point, AnimationClock, Point, AnimationClock) Draws a line between the specified points using the specified Pen and applies the specified animation clocks.
Public method DrawRectangle(Brush, Pen, Rect) Draws a rectangle with the specified Brush and Pen. The pen and the brush can be null.
Public method DrawRectangle(Brush, Pen, Rect, AnimationClock) Draws a rectangle with the specified Brush and Pen and applies the specified animation clocks.
Public method DrawRoundedRectangle(Brush, Pen, Rect, Double, Double) Draws a rounded rectangle with the specified Brush and Pen.
Public method DrawRoundedRectangle(Brush, Pen, Rect, AnimationClock, Double, AnimationClock, Double, AnimationClock) Draws a rounded rectangle with the specified Brush and Pen and applies the specified animation clocks.
Public method DrawText Draws formatted text at the specified location.
Public method DrawVideo(MediaPlayer, Rect) Draws a video into the specified region.
Public method DrawVideo(MediaPlayer, Rect, AnimationClock) Draws a video into the specified region and applies the specified animation clock.
Public method Equals(Object) 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 the default hash function. (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 Obsolete. Pushes the specified BitmapEffect onto the drawing context.
Public method PushGuidelineSet Pushes the specified GuidelineSet onto the drawing context.
Public method PushOpacity(Double) Pushes the specified opacity setting onto the drawing context.
Public method PushOpacity(Double, AnimationClock) Pushes the specified opacity setting onto the drawing context and applies the specified animation clock.
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

  Name Description
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
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft