Udostępnij za pośrednictwem


System.Windows.Media Namespace

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Provides types that enable integration of rich media, including drawings, text, and audio/video content in Silverlight-based applications.

Classes

  Class Description
Public class AcquireLicenseCompletedEventArgs Provides data for the AcquireLicenseCompleted event.
Public class ArcSegment Represents an elliptical arc between two points.
Public class AudioCaptureDevice Describes either the desired or supported formats for an audio capture device, such as a microphone.
Public class AudioCaptureDeviceCollection Specifies a collection of AudioCaptureDevice objects.
Public class AudioFormat Provides specific technical information about an audio format that is used by audio capture devices.
Public class AudioSink Exposes the capture graph for audio devices. Derive from this class to receive audio information and to obtain the capture graph through AudioSink.CaptureSource.
Public class BezierSegment Represents a cubic Bezier curve drawn between two points.
Public class BitmapCache Represents the behavior of caching a visual element or tree of elements as bitmap surfaces. This can yield significant performance improvements for some scenarios.
Public class Brush Defines objects used to paint graphical objects. Classes that derive from Brush describe how the area is painted.
Public class CacheMode Represents cached content.
Public class CaptureDevice Provides common properties for AudioCaptureDevice and VideoCaptureDevice.
Public class CaptureDeviceConfiguration Represents a helper class for obtaining information about available capture devices (audio or video) and requesting client user permission to access the captures from available devices.
Public class CaptureImageCompletedEventArgs Provides event data for the CaptureImageCompleted event of the CaptureSource class.
Public class CaptureSource Provides methods that work with specific audio or video captures from the associated capture device.
Public class Colors Implements a set of predefined colors.
Public class CompositeTransform This class lets you apply multiple different transforms to an object.
Public class CompositionTarget Represents the display surface of a Silverlight-based application.
Public class DeepZoomImageTileSource Used to specify the source of a MultiScaleImage.
Public class DomainAcquirer Handles Join Domain requests.
Public class DomainOperationCompletedEventArgs Provides data for join and leave domain events.
Public class DoubleCollection Represents an ordered collection of Double values.
Public class DrmSetupDecryptorCompletedEventArgs Provides data for the DrmSetupDecryptorCompletedEventArgs.
Public class EllipseGeometry Represents the geometry of a circle or ellipse.
Public class FileSink Used to save the video capture on Silverlight for Windows Phone to a file.
Public class FontFamily Represents a family of related fonts.
Public class Fonts Provides enumeration support for FontFamily and Typeface objects.
Public class GeneralTransform Provides generalized transformation support for objects, such as points and rectangles.
Public class Geometry Provides a base class for objects that define geometric shapes. Geometry objects can be used for clipping regions and as geometry definitions for rendering two-dimensional graphic data as a Path.
Public class GeometryCollection Represents a collection of Geometry objects.
Public class GeometryGroup Represents a composite geometry, composed of other Geometry objects.
Public class GlyphTypeface Specifies 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 derive 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 GradientStopCollection Represents a collection of GradientStop objects that can be individually accessed by index.
Public class ImageBrush Paints an area with an image.
Public class ImageSource Provides an object source type for Source, Source, and ImageSource.
Public class ImageSourceConverter Converts a ImageSource to and from other data types.
Public class ImplicitInputBrush Represents the input bitmap to a shader.
Public class JoinDomainCompletedEventArgs Provides data for the JoinDomainCompleted event.
Public class LeaveDomainCompletedEventArgs Provides data for the LeaveDomainCompleted event.
Public class LicenseAcquirer This class handles acquiring PlayReady licenses for protected content.
Public class LicenseManagement A static class that is used to return licenses from the persistent license store.
Public class LinearGradientBrush Paints an area with a linear gradient.
Public class LineGeometry Represents the geometry of a line.
Public class LineSegment Represents a line drawn between two points, which can be part of a PathFigure within Path data.
Public class LogReadyRoutedEventArgs Provides data for the LogReady event.
Public class Matrix3DProjection Enables you to apply a Matrix3D to an object.
Public class MatrixTransform Creates an arbitrary affine matrix transformation that is used to manipulate objects or coordinate systems in a two-dimensional plane.
Public class MediaCommandEventArgs Contains state information and event data associated with a routed MediaCommand event.
Public class MediaLicense An instance of the license class representing a logical license.
Public class MediaStreamDescription This class describes a media stream in enough detail to initialize the MediaElement and the underlying media pipeline.
Public class MediaStreamSample This class describes a media sample in enough detail to allow the MediaElement and underlying pipeline to render the sample.
Public class MediaStreamSource A MediaStreamSource delivers media samples directly to the media pipeline and is most often used to enable the MediaElement to use a container format not natively supported by Silverlight.
Public class MultiScaleTileSource Used to specify the source of Deep Zoom images.
Public class MultiScaleTileSourceGroup Represents a collection of MultiScaleTileSource objects.
Public class PathFigure Represents 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 PathGeometry Represents a complex shape that may be composed of arcs, curves, ellipses, lines, and rectangles.
Public class PathSegment Represents a segment of a PathFigure object.
Public class PathSegmentCollection Represents a collection of PathSegment objects that can be individually accessed by index.
Public class PlaneProjection Represents a perspective transform (a 3-D-like effect) on an object.
Public class PointCollection Represents a collection of Point values that can be individually accessed by index.
Public class PolyBezierSegment Represents 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 Projection Provides a base class for projections, which describe how to transform an object in 3-D space using perspective transforms.
Public class QuadraticBezierSegment Creates a quadratic Bezier curve between two points in a PathFigure.
Public class RadialGradientBrush Paints 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 RateChangedRoutedEventArgs Provides data for the RateChanged event.
Public class RectangleGeometry Describes a two-dimensional rectangular geometry.
Public class RenderingEventArgs Provides event data for the Rendering event.
Public class RotateTransform Rotates an object clockwise about a specified point in a two-dimensional x-y coordinate system.
Public class ScaleTransform Scales an object in the two-dimensional x-y coordinate system.
Public class SkewTransform Represents a two-dimensional skew.
Public class SolidColorBrush Paints an area with a solid color.
Public class TextOptions Provides options for controlling the rendering behavior of text, which can be set through an attached property usage on a wide range of Silverlight types.
Public class TileBrush Base class that describes a way to paint a region.
Public class TimelineMarker Represents metadata associated with a specific point in a media file.
Public class TimelineMarkerCollection Represents a collection of TimelineMarker objects that can be individually accessed by index.
Public class TimelineMarkerRoutedEventArgs Provides event data for the MarkerReached event.
Public class Transform Defines functionality that enables transformations in a two-dimensional plane.
Public class TransformCollection Represents a collection of Transform objects that can be individually accessed by index.
Public class TransformGroup Represents a composite Transform composed of other Transform objects.
Public class TranslateTransform Translates (moves) an object in the two-dimensional x-y coordinate system.
Public class Typeface Represents a combination of the FontFamily, FontWeight, FontStyle, and FontStretch classes.
Public class VideoBrush Paints an area with video content.
Public class VideoCaptureDevice Describes desired and supported video format information for a video capture device, such as a webcam.
Public class VideoCaptureDeviceCollection Specifies a collection of VideoCaptureDevice objects.
Public class VideoFormat Provides specific technical information about a video format that is used by a video capture device.
Public class VideoOutputConnector Provides the actual data about connector types and specifies the output protection schemes in which Silverlight can engage.
Public class VideoSink Exposes the capture graph for video devices. Derive from this class to receive video information and to obtain the capture graph through VideoSink.CaptureSource.
Public class VisualTreeHelper Provides utility methods that can used to traverse object relationships (along child object or parent object axes) in the Silverlight visual tree.

Structures

  Structure Description
Public structure Color Describes a color in terms of alpha, red, green, and blue channels.
Public structure Matrix Represents a 3x3 affine transformation matrix used for transformations in two-dimensional space.

Delegates

  Delegate Description
Public delegate LogReadyRoutedEventHandler Represents the method that will handle the LogReady event.
Public delegate MediaCommandEventHandler Represents the method that will handle the MediaCommand event.
Public delegate RateChangedRoutedEventHandler Represents the method that will handle the RateChanged.
Public delegate TimelineMarkerRoutedEventHandler Represents methods that will handle various routed events related to timeline markers.

Enumerations

  Enumeration Description
Public enumeration AlignmentX Describes how content is positioned horizontally in a container.
Public enumeration AlignmentY Describes how content is positioned vertically in a container.
Public enumeration BrushMappingMode Specifies the coordinate system used by a Brush.
Public enumeration CaptureState Describes the current operation state for device capture and a capture source.
Public enumeration ColorInterpolationMode Determines how the colors in a gradient are interpolated.
Public enumeration ContentKeyType Represents the content key type.
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 GradientSpreadMethod Specifies how to draw the gradient outside a gradient brush's gradient vector or space.
Public enumeration LogSource Indicates the reason that a media log was generated.
Public enumeration MediaCommand Provides common remote control button commands.
Public enumeration MediaElementState Defines the potential states of a MediaElement object.
Public enumeration MediaSampleAttributeKeys This enumeration is used in a dictionary of attributes for media samples.
Public enumeration MediaSourceAttributesKeys Describes the media source.
Public enumeration MediaStreamAttributeKeys This enumeration is used in a dictionary of attributes for media streams.
Public enumeration MediaStreamSourceDiagnosticKind Describes the type of diagnostic information used by the media.
Public enumeration MediaStreamType Enumeration that specifies the type of stream.
Public enumeration PenLineCap Describes the shape at the end of a line or segment.
Public enumeration PenLineJoin Describes the shape that joins two lines or segments.
Public enumeration PixelFormatType Describes format information that reports the graphics format of individual pixels of the video format.
Public enumeration SampleAllocationMode Provides values for specifying how the camera video buffer is maintained on Silverlight for Windows Phone.
Public enumeration Stretch Describes how content is resized to fill its allocated space.
Public enumeration StyleSimulations Describes the simulation style of a font.
Public enumeration SweepDirection Specifies the direction an elliptical arc is drawn.
Public enumeration TextFormattingMode Defines the supported formatting modes for text.
Public enumeration TextHintingMode Specifies whether text rendering is optimized for readability or for dynamic presentation.
Public enumeration TextRenderingMode Defines the supported rendering modes for text.
Public enumeration VideoOutputConnectorType Defines all the output connector types that are typically available.
Public enumeration WaveFormatType Reports the digital signal encoding format of an audio format.