Export (0) Print
Expand All

DrawingContext Methods

(see also Protected Methods )
  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.
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 (represented by a MediaPlayer object) into the specified region.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (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)
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. The clip region applies to all subsequent drawing commands, until it is removed by the Pop command.
Public method PushEffect Pushes the specified BitmapEffect onto the drawing context. The effect will be applied to all subsequent drawing operations, until it is removed by the Pop command.
Public method PushGuidelineSet Pushes the specified GuidelineSet onto the drawing context. The guideline set applies to all subsequent drawing commands, until it is removed by the Pop operation.
Public method PushOpacity Overloaded. Pushes the specified opacity setting onto the drawing context. The opacity will be blended into all subsequent drawing operations, until it is removed by the Pop command.
Public method PushOpacityMask Pushes the specified opacity mask onto the drawing context. The mask will be applied to all subsequent drawing commands, until it is removed by the Pop operation.
Public method PushTransform Pushes the specified Transform onto the drawing context. The transform applies to all subsequent drawing commands, until it is removed by the Pop command.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
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)
Top

  Name Description
Protected method DisposeCore Releases all resources used by this DrawingContext.
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
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 implementation Method System.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