Namespace SharpDX.Direct2D1
Classes
- BitmapProperties1
This structure allows a Bitmap1 to be created with bitmap options and color context information available.
- CustomEffectAttribute
Global attribute for CustomEffect description.
- CustomEffectBase
Base abstract class for CustomEffect interface.
- CustomEffectInputAttribute
Input attribute for CustomEffect description.
- CustomVertexBufferProperties
Defines a vertex shader and the input element description to define the input layout. The combination is used to allow a custom vertex effect to create a custom vertex shader and pass it a custom layout.
- D2D1
Functions
- EffectInputDescription
Describes features of an effect.
- Effect<T>
Class used to instantiate custom effects.
- GeometryRealization
Encapsulates a device- and transform-dependent representation of a filled or stroked geometry. Callers should consider creating a geometry realization when they wish to accelerate repeated rendering of a given geometry. This interface exposes no methods.
- PropertyBindingAttribute
Metadata description for CustomEffect property binding.
- PropertyTypeHelper
Helper functions for PropertyType.
- ResourceTextureProperties
Defines a resource texture when the original resource texture is created.
- ResultCode
Functions
- VertexBufferProperties
Defines the properties of a vertex buffer that are standard for all vertex shader definitions.
- WicRenderTarget
A WIC RenderTarget.
Structs
- ArcSegment
Describes an elliptical arc between two points.
- BezierSegment
Represents a cubic bezier segment drawn between two points.
- BitmapBrushProperties
Describes the extend modes and the interpolation mode of an BitmapBrush.
- BitmapBrushProperties1
Describes the extend modes and the interpolation mode of an BitmapBrush.
- BitmapProperties
Describes the pixel format and dpi of a bitmap.
- BlendDescription
Defines a blend description to be used in a particular blend transform.
- BrushProperties
Describes the opacity and transformation of a brush.
- CreationProperties
Specifies the options with which the Direct2D device, factory, and device context are created.
- DrawingStateDescription
Describes the drawing state of a render target.
- DrawingStateDescription1
Describes the drawing state of a device context.
- Ellipse
Contains the center point, x-radius, and y-radius of an ellipse.
- FactoryOptions
Contains the debugging level of an Factory object.
- GradientMeshPatch
Represents a tensor patch with 16 control points, 4 corner colors, and boundary flags. An GradientMesh is made up of 1 or more gradient mesh patches. Use the GradientMeshPatch function or the GradientMeshPatchFromCoonsPatch function to create one.
- GradientStop
Contains the position and color of a gradient stop.
- HwndRenderTargetProperties
Contains the nint, pixel size, and presentation options for an WindowRenderTarget.
- ImageBrushProperties
Describes image brush features.
- InkBezierSegment
Represents a Bezier segment to be used in the creation of an Ink object. This structure differs from BezierSegment in that it is composed of InkPoints, which contain a radius in addition to x- and y-coordinates.
- InkPoint
Represents a point, radius pair that makes up part of a InkBezierSegment.
- InkStyleProperties
Defines the general pen tip shape and the transform used in an InkStyle object.
- InputDescription
Describes the options that transforms may set on input textures.
- InputElement
A description of a single element to the vertex layout.
- LayerParameters
Contains the content bounds, mask information, opacity settings, and other options for a layer resource.
- LayerParameters1
Contains the content bounds, mask information, opacity settings, and other options for a layer resource.
- LinearGradientBrushProperties
Contains the starting point and endpoint of the gradient axis for an LinearGradientBrush.
- PixelFormat
Contains the data format and alpha mode for a bitmap or render target.
- PointDescription
Describes a point on a path geometry.
- PrintControlProperties
The creation properties for a PrintControl object.
- QuadraticBezierSegment
Contains the control point and end point for a quadratic Bezier segment.
- RadialGradientBrushProperties
Contains the gradient origin offset and the size and position of the gradient ellipse for an RadialGradientBrush.
- RenderTargetProperties
Contains rendering options (hardware or software), pixel format, DPI information, remoting options, and Direct3D support requirements for a render target.
- RenderingControls
Describes limitations to be applied to an imaging effect renderer.
- RoundedRectangle
Contains the dimensions and corner radii of a rounded rectangle.
- SimpleColorProfile
Creates a color context from a simple color profile. It is only valid to use this with the Color Management Effect in 'Best' mode.
- StrokeStyleProperties
Describes the stroke that outlines a shape.
- StrokeStyleProperties1
Describes the stroke that outlines a shape.
- SvgLength
A 3D vector that consists of three single-precision floating-point values (x, y, z).
- SvgPreserveAspectRatio
A description of a single element to the vertex layout.
- SvgViewBox
A 3D vector that consists of three single-precision floating-point values (x, y, z).
- TransformedImageSourceProperties
Properties of a transformed image source.
- Triangle
Contains the three vertices that describe a triangle.
- VertexRange
Defines a range of vertices that are used when rendering less than the full contents of a vertex buffer.
Interfaces
- CustomEffect
Custom Effect interface. Equivalent of C++ ID2D1EffectImpl.
- Transform
Represents the base interface for all of the transforms implemented by the transform author.
- TransformNode
Describes a node in a transform topology.
Enums
- AffineTransform2DInterpolationMode
The interpolation mode to be used with the 2D affine transform effect to scale the image. There are 6 scale modes that range in quality and speed.
- AffineTransform2DProperties
Identifiers for properties of the 2D affine transform effect.
- AlphaMode
Specifies how the alpha value of a bitmap or render target should be treated.
- AntialiasMode
Specifies how the edges of nontext primitives are rendered.
- ArcSize
Specifies whether an arc should be greater than 180 degrees.
- ArithmeticCompositeProperties
Identifiers for the properties of the Arithmetic composite effect.
- AtlasProperties
Identifiers for properties of the Atlas effect.
- BitmapInterpolationMode
Specifies the algorithm that is used when images are scaled or rotated.
Note??Starting in Windows?8, more interpolations modes are available. See InterpolationMode for more info.?
- BitmapSourceAlphaMode
Specifies the alpha mode of the output of the Bitmap source effect.
- BitmapSourceInterpolationMode
The interpolation mode used to scale the image in the Bitmap source effect. If the mode disables the mipmap, then BitmapSouce will cache the image at the resolution determined by the Scale and EnableDPICorrection properties.
- BitmapSourceOrientation
Speficies whether a flip and/or rotation operation should be performed by the Bitmap source effect
- BitmapSourceProperties
Identifiers for properties of the Bitmap source effect.
- Blend
Specifies how one of the color sources is to be derived and optionally specifies a preblend operation on the color source.
- BlendMode
The blend mode used for the Blend effect.
- BlendOperation
Specifies the blend operation on two color sources.
- BlendProperties
Identifiers for properties of the Blend effect.
- BorderEdgeMode
The edge mode for the Border effect.
- BorderMode
Specifies how the Crop effect handles the crop rectangle falling on fractional pixel coordinates.
- BorderProperties
Identifiers for properties of the Border effect.
- BrightnessProperties
Identifiers for the properties of the Brightness effect.
- BufferPrecision
Represents the bit depth of the imaging pipeline in Direct2D.
- CapStyle
Describes the shape at the end of a line or segment.
- ChangeType
Describes flags that influence how the renderer interacts with a custom vertex shader.
- ChannelDepth
Allows a caller to control the channel depth of a stage in the rendering pipeline.
- ChannelSelector
Specifies the color channel the Displacement map effect extracts the intensity from and uses it to spatially displace the image in the X or Y direction.
- ChromakeyProperty
Identifiers for properties of the Chroma-key effect.
- ColorBitmapGlyphSnapOption
Specifies the pixel snapping policy when rendering color bitmap glyphs.
- ColorContextType
Describes whether a render target uses hardware or software rendering, or if Direct2D should select the rendering mode.
- ColorInterpolationMode
Defines how to interpolate between colors.
- ColorManagementAlphaMode
Indicates how the Color management effect should interpret alpha data that is contained in the input image.
- ColorManagementProperties
Identifiers for the properties of the Color management effect.
- ColorManagementQuality
The quality level of the transform for the Color management effect.
- ColorManagementRenderingIntent
Specifies which ICC rendering intent the Color management effect should use.
- ColorMatrixAlphaMode
The alpha mode of the output of the Color matrix effect.
- ColorMatrixProperties
Identifiers for the properties of the Color matrix effect.
- ColorSpace
Defines options that should be applied to the color space.
- CombineMode
Specifies the different methods by which two geometries can be combined.
- CompositeMode
Used to specify the blend mode for all of the Direct2D blending operations.
- CompositeProperties
Identifiers for properties of the Composite effect.
- ContrastProperty
Identifiers for properties of the Contrast effect.
- ConvoleMatrixProperties
Identifiers for properties of the Convolve matrix effect.
- ConvoleMatrixScaleMode
The interpolation mode the Convolve matrix effect uses to scale the image to the corresponding kernel unit length. There are six scale modes that range in quality and speed.
- CropProperties
Identifiers for properties of the Crop effect.
- CrossfadeProp
This effect combines two images by adding weighted pixels from input images. It has two inputs, named Destination and Source.
The cross fade formula is output = weight * Destination + (1 - weight) * Source.
The CLSID for this effect is
.
- DashStyle
Describes the sequence of dashes and gaps in a stroke.
- DebugLevel
Indicates the type of information provided by the Direct2D Debug Layer.
- DeviceContextInitializeMode
Specifies how a device context is initialized for GDI rendering when it is retrieved from the render target.
- DirectionalBlurOptimization
Specifies the optimization mode for the Directional blur effect.
- DirectionalBlurProperties
Identifiers for properties of the Directional blur effect.
- DiscreteTransferProperties
Identifiers for properties of the Discrete transfer effect.
- DisplacementMapProperties
Identifiers for properties of the Displacement map effect.
- DistantDiffuseProperties
Identifiers for properties of the Distant-diffuse lighting effect.
- DistantDiffuseScaleMode
The interpolation mode the effect uses to scale the image to the corresponding kernel unit length. There are six scale modes that range in quality and speed.
- DistantSpecularProperties
Identifiers for properties of the Distant-specular lighting effect.
- DistantSpecularScaleMode
The interpolation mode the Distant-specular lighting effect uses to scale the image to the corresponding kernel unit length. There are six scale modes that range in quality and speed.
- DpiCompensationInterpolationMode
The interpolation mode the DPI compensation effect uses to scale the image.
- DpiCompensationProperties
Identifiers for properties of the DPI compensation effect.
- EdgeDetectionMode
Values for the D2D1_EDGEDETECTION_PROP_MODE property of the Edge Detection effect.
- EdgeDetectionProperty
Identifiers for properties of the Edge Detection effect.
- EmbossProperty
Identifiers for properties of the Emboss effect.
- ExposureProperty
Identifiers for properties of the Exposure effect.
- ExtendMode
Specifies how a brush paints areas outside of its normal content area.
- FactoryType
Specifies whether Direct2D provides synchronization for an Factory and the resources it creates, so that they may be safely accessed from multiple threads.
- Feature
Defines capabilities of the underlying Direct3D device which may be queried using ID2D1EffectContext::CheckFeatureSupport.
- FeatureLevel
Describes the minimum DirectX support required for hardware rendering by a render target.
- FigureBegin
Indicates whether a specific SimplifiedGeometrySink figure is filled or hollow.
- FigureEnd
Indicates whether a specific SimplifiedGeometrySink figure is open or closed.
- FillMode
Specifies how the intersecting areas of geometries or figures are combined to form the area of the composite geometry.
- Filter
Represents filtering modes that a transform may select to use on input textures.
- FloodProperties
Identifiers for properties of the Flood effect.
- Gamma
Specifies which gamma is used for interpolation.
- Gamma1
Specifies which gamma is used for interpolation.
- GammaTransferProperties
Identifiers for properties of the Gamma transfer effect.
- GaussianBlurOptimization
The optimization mode for the Gaussian blur effect.
- GaussianBlurProperties
Identifiers for properties of the Gaussian blur effect.
- GeometryRelation
Describes how one geometry object is spatially related to another geometry object.
- GeometrySimplificationOption
Specifies how a geometry is simplified to an SimplifiedGeometrySink.
- GlyphImageFormatS
Specifies which formats are supported in the font, either at a font-wide level or per glyph.
- HighlightSandShadowsInputGamma
Values for the D2D1_HIGHLIGHTSANDSHADOWS_PROP_INPUT_GAMMA property of the Highlights and Shadows effect.
- HighlightSandShadowsProperty
Identifiers for properties of the Highlights and Shadows effect.
- HistogramProperties
Identifiers for properties of the Histogram effect.
- HueRotationProperties
Identifiers for properties of the Hue rotate effect.
- HueToRgbInputColorSpace
Values for the D2D1_HUETORGB_PROP_INPUT_COLOR_SPACE property of the Hue to RGB effect.
- HueToRgbProperty
Identifiers for properties of the Hue to RGB effect.
- InkNibShape
Specifies the appearance of the ink nib (pen tip) as part of an InkStyleProperties structure.
- InterpolationMode
This is used to specify the quality of image scaling with ID2D1DeviceContext::DrawImage and with the 2D affine transform effect.
- InterpolationModeDefinition
No documentation.
- LineJoin
Describes the shape that joins two lines or segments.
- LinearTransferProperties
Identifiers for properties of the Linear transfer effect.
- LookupTable3DProperty
Identifiers for the properties of the 3D Lookup Table effect.
- MeasuringMode
Indicates the measuring method used for text layout.
- MorphologyMode
The mode for the Morphology effect.
- MorphologyProperties
Identifiers for properties of the Morphology effect.
- OpacityMaskContent
Describes whether an opacity mask contains graphics or text. Direct2D uses this information to determine which gamma space to use when blending the opacity mask.
- OpacityMetadataProperties
Identifiers for properties of the Opacity metadata effect.
- OpacityProp
This effect adjusts the opacity of an image by multiplying the alpha channel of the input by the specified opacity value. It has a single input.
The CLSID for this effect is Opacity.
- Orientation
Specifies the flip and rotation at which an image appears.
- PatchEdgeMode
Specifies how to render gradient mesh edges.
- PathSegment
Indicates whether a segment should be stroked and whether the join between this segment and the previous one should be smooth. This enumeration allows a bitwise combination of its member values.
- PerspectiveTransform3DInteroplationMode
The interpolation mode the 3D perspective transform effect uses on the image. There are 5 scale modes that range in quality and speed.
- PerspectiveTransform3DProperties
Identifiers for the properties of the 3D perspective transform effect.
- PointDiffuseProperties
Identifiers for properties of the Point-diffuse lighting effect.
- PointDiffuseScaleMode
The interpolation mode the Point-diffuse lighting effect uses to scale the image to the corresponding kernel unit length. There are six scale modes that range in quality and speed
- PointSpecularProperties
Identifiers for properties of the Point-specular lighting effect.
- PointSpecularScaleMode
The interpolation mode the Point-specular lighting effect uses to scale the image to the corresponding kernel unit length. There are six scale modes that range in quality and speed.
- PosterizeProperty
Identifiers for properties of the Posterize effect.
- PrimitiveBlend
Used to specify the geometric blend mode for all Direct2D primitives.
- PrintFontSubsetMode
Defines when font resources should be subset during printing.
- Property
Specifies the indices of the system properties present on the Properties interface for an Effect.
- PropertyType
Specifies the types of properties supported by the Direct2D property interface.
- RenderTargetType
Describes whether a render target uses hardware or software rendering, or if Direct2D should select the rendering mode.
- RenderTargetUsage
Describes how a render target is remoted and whether it should be GDI-compatible. This enumeration allows a bitwise combination of its member values.
- RenderingPriority
The rendering priority affects the extent to which Direct2D will throttle its rendering workload.
- RgbToHueOutputColorSpace
Values for the D2D1_RGBTOHUE_PROP_OUTPUT_COLOR_SPACE property of the RGB to Hue effect.
- RgbToHueProperty
Indentifiers for properties of the RGB to Hue effect.
- SaturationProperties
Identifiers for properties of the Saturation effect.
- ScaleInterpolationMode
The interpolation mode the Scale effect uses to scale the image. There are 6 scale modes that range in quality and speed.
- ScaleProperties
Identifiers for properties of the Scale effect.
- SepiaProperty
Identifiers for properties of the Sepia effect.
- ShadowOptimization
The level of performance optimization for the Shadow effect.
- ShadowProperties
Identifiers for properties of the Shadow effect.
- SharpenProperty
Identifiers for properties of the Sharpen effect.
- SpotDiffuseProperties
Identifiers for properties of the Spot-diffuse lighting effect.
- SpotDiffuseScaleMode
The interpolation mode the Spot-diffuse lighting effect uses to scale the image to the corresponding kernel unit length. There are six scale modes that range in quality and speed.
- SpotSpecularProperties
Identifiers for properties of the Spot-specular lighting effect.
- SpotSpecularScaleMode
The interpolation mode the Spot-specular lighting effect uses to scale the image to the corresponding kernel unit length. There are six scale modes that range in quality and speed.
- StraightenProperty
Identifiers for properties of the Straighten effect.
- StraightenScaleMode
Values for the D2D1_STRAIGHTEN_PROP_SCALE_MODE property of the Straighten effect.
- StrokeTransformType
Defines how the world transform, dots per inch (dpi), and stroke width affect the shape of the pen used to stroke a primitive.
- SubProperty
Specifies the indices of the system sub-properties that may be present in any property.
- SvgAspectAlign
Describes how a render target behaves when it presents its content. This enumeration allows a bitwise combination of its member values.
- SvgAspectScaling
Indicates how pixel shader sampling will be restricted. This indicates whether the vertex buffer is large and tends to change infrequently or smaller and changes frequently (typically frame over frame).
- SvgAttributePodType
Describes whether a render target uses hardware or software rendering, or if Direct2D should select the rendering mode.
- SvgAttributeStringType
Describes whether a render target uses hardware or software rendering, or if Direct2D should select the rendering mode.
- SvgDisplay
Describes whether a render target uses hardware or software rendering, or if Direct2D should select the rendering mode.
- SvgLengthUnits
Describes whether a render target uses hardware or software rendering, or if Direct2D should select the rendering mode.
- SvgLineCap
Describes whether a render target uses hardware or software rendering, or if Direct2D should select the rendering mode.
- SvgLineJoin
Indicates how pixel shader sampling will be restricted. This indicates whether the vertex buffer is large and tends to change infrequently or smaller and changes frequently (typically frame over frame).
- SvgOverflow
Describes the shape at the end of a line or segment.
- SvgPaintType
Describes whether a render target uses hardware or software rendering, or if Direct2D should select the rendering mode.
- SvgPathCommand
Describes whether a render target uses hardware or software rendering, or if Direct2D should select the rendering mode.
- SvgUnitType
Describes whether a render target uses hardware or software rendering, or if Direct2D should select the rendering mode.
- SvgVisibility
Defines options that should be applied to the color space.
- SweepDirection
Defines the direction that an elliptical arc is drawn.
- TableTransferProperties
Identifiers for properties of the Table transfer effect.
- TemperatureAndTintProperty
Identifiers for properties of the Temperature and Tint effect.
- TextAntialiasMode
Describes the antialiasing mode used for drawing text.
- ThreadingMode
Specifies the threading mode used while simultaneously creating the device, factory, and device context.
- TileProperties
Identifiers for properties of the Tile effect.
- TintProp
This effect tints the source image by multiplying the source image by the specified color. It has a single input.
The CLSID for this effect is
.
- Transform3DInterpolationMode
The interpolation mode the 3D transform effect uses on the image. There are 5 scale modes that range in quality and speed.
- Transform3DProperties
Identifiers for properties of the 3D transform effect.
- TurbulenceNoise
The turbulence noise mode for the Turbulence effect. Indicates whether to generate a bitmap based on Fractal Noise or the Turbulence function.
- TurbulenceProperties
Identifiers for properties of the Turbulence effect.
- UnitMode
Specifies how units in Direct2D will be interpreted.
- VertexUsage
Indicates whether the vertex buffer changes infrequently or frequently.
- VignetteProperty
Identifiers for properties of the Vignette effect.
- WindowState
Describes whether a window is occluded.
- YCbCrProperties
Identifiers for properties of the YCbCr effect.
- YcbcrChromaSubSampling
Specifies the chroma subsampling of the input chroma image used by the YCbCr effect.
- YcbcrInterpolationMode
Specifies the interpolation mode for the YCbCr effect.