Skip to main content
.NET Framework Class Library
System.Windows.Media Namespace

Provides types that enable integration of rich media, including drawings, text, and audio/video content in Windows Presentation Foundation (WPF) applications.

Public class AdornerHitTestResultRepresents data returned from calling the AdornerHitTest method.
Public class ArcSegment Represents an elliptical arc between two points.
Public class BezierSegmentRepresents a cubic Bezier curve drawn between two points.
Public class BitmapCacheCreates and caches a bitmap representation of a UIElement.
Public class BitmapCacheBrushPaints an area with cached content.
Public class BrushDefines objects used to paint graphical objects. Classes that derive from Brush describe how the area is painted.
Public class BrushConverter Used to convert a Brush object to or from another object type.
Public class BrushesImplements a set of predefined SolidColorBrush objects.
Public class CacheModeProvides a base implementation for caching a UIElement.
Public class CacheModeConverterConverts a CacheMode from one data type to another.
Public class CharacterMetricsRepresents the metrics used to lay out a character in a device font.
Public class CharacterMetricsDictionaryRepresents a dictionary of CharacterMetrics objects for a device font that is indexed by Unicode scalar values.
Public class ColorContextRepresents the International Color Consortium (ICC) or Image Color Management (ICM) color profile that is associated with a bitmap image.
Public class ColorConverter Converts instances of other types to and from an instance of Color.
Public class ColorsImplements a set of predefined colors.
Public class CombinedGeometryRepresents a 2-D geometric shape defined by the combination of two Geometry objects.
Public class CompositionTargetRepresents the display surface of your application.
Public class ContainerVisualManages a collection of Visual objects.
Public class DashStyleRepresents the sequence of dashes and gaps that will be applied by a Pen.
Public class DashStylesImplements a set of predefined DashStyle objects.
Public class DisableDpiAwarenessAttributeAllows WPF applications to disable dots per inch (dpi) awareness for all user interface elements.
Public class DoubleCollection Represents an ordered collection of Double values.
Public class DoubleCollectionConverterConverts instances of other types to and from a DoubleCollection.
Public class DrawingAbstract class that describes a 2-D drawing. This class cannot be inherited by your code.
Public class DrawingBrushPaints an area with a Drawing, which can include shapes, text, video, images, or other drawings.
Public class DrawingCollectionRepresents an ordered collection of Drawing objects.
Public class DrawingContextDescribes visual content using draw, push, and pop commands.
Public class DrawingGroupRepresents a collection of drawings that can be operated upon as a single drawing.
Public class DrawingImage An ImageSource that uses a Drawing for content.
Public class DrawingVisual DrawingVisual is a visual object that can be used to render vector graphics on the screen. The content is persisted by the system.
Public class EllipseGeometryRepresents the geometry of a circle or ellipse.
Public class ExceptionEventArgsProvides error exception data for media events.
Public class FamilyTypefaceSpecifies the details of a single typeface supported by a FontFamily.
Public class FamilyTypefaceCollectionRepresents a collection of FamilyTypeface instances.
Public class FontEmbeddingManagerProvides functionality for physical and composite font embedding.
Public class FontFamilyRepresents a family of related fonts.
Public class FontFamilyConverterConverts instances of the String type to and from FontFamily instances.
Public class FontFamilyMapDefines which FontFamily to use for a specified set of Unicode code points and a culture-specific language.
Public class FontFamilyMapCollectionRepresents an ordered collection of FontFamilyMap objects.
Public class FontFamilyValueSerializerConverts instances of String to and from instances of FontFamily.
Public class FontsProvides enumeration support for FontFamily and Typeface objects.
Public class FormattedTextProvides low-level control for drawing text in Windows Presentation Foundation (WPF) applications.
Public class GeneralTransformProvides generalized transformation support for objects, such as points and rectangles. This is an abstract class.
Public class GeneralTransformCollectionRepresents an ordered collection of GeneralTransform objects.
Public class GeneralTransformGroupRepresents a GeneralTransform that is a composite of the transforms in its GeneralTransformCollection.
Public class GeometryClasses that derive from this abstract base class define geometric shapes. Geometry objects can be used for clipping, hit-testing, and rendering 2-D graphic data.
Public class GeometryCollection Represents a collection of Geometry objects.
Public class GeometryConverterConverts instances of other types to and from instances of Geometry.
Public class GeometryDrawingDraws a Geometry using the specified Brush and Pen.
Public class GeometryGroupRepresents a composite geometry, composed of other Geometry objects.
Public class GeometryHitTestParametersSpecifies a Geometry as the parameter to be used for hit testing a visual tree.
Public class GeometryHitTestResultReturns the results of a hit test that uses a Geometry as a hit test parameter.
Public class GlyphRunRepresents a sequence of glyphs from a single face of a single font at a single size, and with a single rendering style.
Public class GlyphRunDrawingRepresents a Drawing object that renders a GlyphRun.
Public class GlyphTypefaceSpecifies a physical font face that corresponds to a font file on the disk.
Public class GradientBrush An abstract class that describes a gradient, composed of gradient stops. Classes that inherit from GradientBrush describe different ways of interpreting gradient stops.
Public class GradientStop Describes the location and color of a transition point in a gradient.
Public class GradientStopCollectionRepresents a collection of GradientStop objects that can be individually accessed by index.
Public class GuidelineSetRepresents a collection of guide lines that can assist in adjusting rendered figures to a device pixel grid.
Public class HitTestParametersDefines parameters for hit testing. Classes derived from this common base class that can be used for practical hit testing include PointHitTestParameters and GeometryHitTestParameters.
Public class HitTestResultProvides the base class for several derived classes that represents the return value from a hit test.
Public class HostVisualRepresents a Visual object that can be connected anywhere to a parent visual tree.
Public class ImageBrushPaints an area with an image.
Public class ImageDrawing Draws an image within a region defined by a Rect.
Public class ImageMetadataDefines a base class for all metadata operations on imaging related APIs. This is an abstract class.
Public class ImageSourceRepresents a object type that has a width, height, and ImageMetadata such as a BitmapSource and a DrawingImage. This is an abstract class.
Public class ImageSourceConverterConverts a ImageSource to and from other data types.
Public class ImageSourceValueSerializerConverts instances of String to and from instances of ImageSource.
Public class Int32CollectionRepresents a collection of Int32 values.
Public class Int32CollectionConverterConverts an Int32Collection to and from other data types.
Public class InvalidWmpVersionExceptionThe exception that is thrown when the installed Microsoft Windows Media Player version is not supported. 
Public class LanguageSpecificStringDictionaryRepresents a dictionary of strings that are used to represent the name of an object in different languages.
Public class LinearGradientBrushPaints an area with a linear gradient.
Public class LineGeometryRepresents the geometry of a line.
Public class LineSegmentCreates a line between two points in a PathFigure.
Public class MatrixConverterConverts instances of other types to and from a Matrix.
Public class MatrixTransformCreates an arbitrary affine matrix transformation that is used to manipulate objects or coordinate systems in a 2-D plane. 
Public class MediaClockMaintains the timing state for media through a MediaTimeline.
Public class MediaPlayerProvides media playback for drawings.
Public class MediaScriptCommandEventArgsProvides data for the ScriptCommand and ScriptCommand events.
Public class MediaTimelineProvides a Timeline for media content.
Public class NumberSubstitutionSpecifies how numbers in text are displayed in different cultures.
Public class PathFigureRepresents a subsection of a geometry, a single connected series of two-dimensional geometric segments.
Public class PathFigureCollection Represents a collection of PathFigure objects that collectively make up the geometry of a PathGeometry.
Public class PathFigureCollectionConverterConverts instances of other types to and from a PathFigureCollection.
Public class PathGeometryRepresents a complex shape that may be composed of arcs, curves, ellipses, lines, and rectangles.
Public class PathSegmentRepresents a segment of a PathFigure object.
Public class PathSegmentCollectionRepresents a collection of PathSegment objects that can be individually accessed by index.
Public class Pen Describes how a shape is outlined.
Public class PixelFormatConverterConverts a PixelFormat to and from other data types.
Public class PixelFormatsRepresents the collection of supported pixel formats.
Public class PointCollection Represents a collection of Point values that can be individually accessed by index.
Public class PointCollectionConverterConverts instances of other types to and from a PointCollection.
Public class PointHitTestParametersSpecifies a Point as the parameter to be used for hit testing of a visual object.
Public class PointHitTestResultRepresents the results of a hit test that uses a Point as a hit test parameter.
Public class PolyBezierSegmentRepresents one or more cubic Bezier curves.
Public class PolyLineSegment Represents a set of line segments defined by a PointCollection with each Point specifying the end point of a line segment.
Public class PolyQuadraticBezierSegment Represents a set of quadratic Bezier segments.
Public class QuadraticBezierSegmentCreates a quadratic Bezier curve between two points in a PathFigure.
Public class RadialGradientBrushPaints an area with a radial gradient. A focal point defines the beginning of the gradient, and a circle defines the end point of the gradient.
Public class RectangleGeometry Describes a two-dimensional rectangle.
Public class RenderCapabilityEnables WPF applications to query for the current rendering tier for their associated Dispatcher object and to register for notification of changes.
Public class RenderingEventArgsRequired arguments for the Rendering event.
Public class RenderOptionsProvides options for controlling the rendering behavior of objects.
Public class RequestCachePolicyConverterParses a RequestCachePolicy.
Public class RotateTransformRotates an object clockwise about a specified point in a 2-D x-y coordinate system.
Public class ScaleTransformScales an object in the 2-D x-y coordinate system.
Public class SkewTransformRepresents a 2-D skew.
Public class SolidColorBrush Paints an area with a solid color.
Public class StreamGeometryDefines a geometric shape, described using a StreamGeometryContext. This geometry is light-weight alternative to PathGeometry: it does not support data binding, animation, or modification.
Public class StreamGeometryContextDescribes a geometry using drawing commands. This class is used with the StreamGeometry class to create a lightweight geometry that does not support data binding, animation, or modification.
Public class TextEffectRepresents a text effect that can be applied to text objects.
Public class TextEffectCollectionProvides collection support for a collection of TextEffect objects.
Public class TextOptionsDefines a set of attached properties that affect the way text is displayed in an element.
Public class TileBrushDescribes a way to paint a region by using one or more tiles.
Public class TransformDefines functionality that enables transformations in a 2-D plane. Transformations include rotation ( RotateTransform), scale ( ScaleTransform), skew ( SkewTransform), and translation ( TranslateTransform). This class hierarchy differs from the Matrix structure because it is a class and it supports animation and enumeration semantics.
Public class TransformCollection Represents a collection of Transform objects that can be individually accessed by index.
Public class TransformConverterConverts a Transform object to or from another object type.
Public class TransformGroupRepresents a composite Transform composed of other Transform objects.
Public class TranslateTransformTranslates (moves) an object in the 2-D x-y coordinate system.
Public class TypefaceRepresents a combination of FontFamily, FontWeight, FontStyle, and FontStretch.
Public class VectorCollection Represents an ordered collection of Vector values.
Public class VectorCollectionConverterConverts instances of other types to and from a VectorCollection.
Public class VideoDrawingPlays a media file. If the media is a video file, the VideoDrawing draws it to the specified rectangle.
Public class VisualProvides rendering support in WPF, which includes hit testing, coordinate transformation, and bounding box calculations.
Public class VisualBrushPaints an area with a Visual.
Public class VisualCollectionRepresents an ordered collection of Visual objects.
Public class VisualTargetProvides functionality for connecting one visual tree to another visual tree across thread boundaries.
Public class VisualTreeHelperProvides utility methods that perform common tasks involving nodes in a visual tree.
Public structure ColorDescribes a color in terms of alpha, red, green, and blue channels.
Public structure DoubleCollectionEnumeratorEnumerates Double items in a DoubleCollection.
Public structure DrawingCollectionEnumeratorEnumerates Drawing items in a DrawingCollection.
Public structure GeneralTransformCollectionEnumeratorEnumerates GeneralTransform items in a GeneralTransformCollection.
Public structure GeometryCollectionEnumeratorEnumerates Geometry items in a GeometryCollection.
Public structure GradientStopCollectionEnumeratorEnumerates GradientStop items in a GradientStopCollection.
Public structure Int32CollectionEnumeratorEnumerates Int32 items in a Int32Collection.
Public structure Matrix Represents a 3x3 affine transformation matrix used for transformations in 2-D space.
Public structure PathFigureCollectionEnumeratorEnumerates PathFigure items in a PathFigureCollection.
Public structure PathSegmentCollectionEnumeratorSupports a simple iteration over a PathSegmentCollection.
Public structure PixelFormatDefines a pixel format for images and pixel-based surfaces.
Public structure PixelFormatChannelMaskDefines the bit mask and shift for a specific pixel formats
Public structure PointCollectionEnumeratorEnumerates Point items in a PointCollection.
Public structure TextEffectCollectionEnumeratorEnumerates TextEffect items in a TextEffectCollection.
Public structure TransformCollectionEnumeratorSupports a simple iteration over a TransformCollection.
Public structure VectorCollectionEnumeratorEnumerates Vector items in a VectorCollection.
Public structure VisualCollectionEnumeratorEnumerates Visual items in a VisualCollection.
Public delegate HitTestFilterCallbackRepresents the callback method that specifies parts of the visual tree to omit from hit test processing
Public delegate HitTestResultCallbackRepresents a callback that is used to customize hit testing. WPF invokes the HitTestResultCallback to report hit test intersections to the user.
Public enumeration AlignmentXDescribes how content is positioned horizontally in a container.
Public enumeration AlignmentYDescribes how content is positioned vertically in a container.
Public enumeration BitmapScalingModeSpecifies which algorithm is used to scale bitmap images.
Public enumeration BrushMappingModeSpecifies the coordinate system used by a Brush.
Public enumeration CachingHintSpecifies whether to cache tiled brush objects.
Public enumeration ClearTypeHintAn enumeration that specifies a hint to the rendering engine that text can be rendered with ClearType.
Public enumeration ColorInterpolationModeDetermines how the colors in a gradient are interpolated.
Public enumeration EdgeModeDetermines how the edges of non-text drawing primitives are rendered.
Public enumeration FillRule Specifies how the intersecting areas of PathFigure objects contained in a Geometry are combined to form the area of the Geometry.
Public enumeration FontEmbeddingRightDescribes font embedding permissions specified in an OpenType font file.
Public enumeration GeometryCombineModeSpecifies the different methods by which two geometries can be combined.
Public enumeration GradientSpreadMethodSpecifies how to draw the gradient outside a gradient brush's gradient vector or space.
Public enumeration HitTestFilterBehaviorSpecifies the return behavior of a hit test in a hit test filter callback method.
Public enumeration HitTestResultBehaviorDetermines whether to continue the enumeration of any remaining visual objects during a hit test.
Public enumeration IntersectionDetailProvides information about the intersection between the geometries in the GeometryHitTestParameters and the visual which was hit.
Public enumeration NumberCultureSourceSpecifies how the culture for numbers in a text run is determined.
Public enumeration NumberSubstitutionMethodDefines an enumerator class that specifies the type of number substitution to perform on numbers in a text run.
Public enumeration PenLineCapDescribes the shape at the end of a line or segment.
Public enumeration PenLineJoinDescribes the shape that joins two lines or segments.
Public enumeration StretchDescribes how content is resized to fill its allocated space.
Public enumeration StyleSimulationsDefines an enumerator class that describes the simulation style of a font.
Public enumeration SweepDirectionDefines the direction an elliptical arc is drawn.
Public enumeration TextFormattingModeDefines the formatting methods supported by the TextFormatter class.
Public enumeration TextHintingModeDefines the rendering behavior of static or animated text.
Public enumeration TextRenderingModeDefines the supported rendering modes for text.
Public enumeration TileModeDescribes how a TileBrush paints tiles onto an output area.
Public enumeration ToleranceTypeDetermines the means by which an error tolerance value is interpreted.