d2d1.h header
This header is used by Direct2D. For more information, see:
d2d1.h contains the following programming interfaces:
Interfaces
ID2D1Bitmap Represents a bitmap that has been bound to an ID2D1RenderTarget. |
ID2D1BitmapBrush Paints an area with a bitmap. (ID2D1BitmapBrush) |
ID2D1BitmapRenderTarget Renders to an intermediate texture created by the CreateCompatibleRenderTarget method. |
ID2D1Brush Defines an object that paints an area. Interfaces that derive from ID2D1Brush describe how the area is painted. |
ID2D1DCRenderTarget Issues drawing commands to a GDI device context. |
ID2D1DrawingStateBlock Represents the drawing state of a render target:_the antialiasing mode, transform, tags, and text-rendering options. |
ID2D1EllipseGeometry Represents an ellipse. |
ID2D1Factory Creates Direct2D resources. (ID2D1Factory) |
ID2D1GdiInteropRenderTarget Provides access to a device context that can accept GDI drawing commands. |
ID2D1Geometry Represents a geometry resource and defines a set of helper methods for manipulating and measuring geometric shapes. Interfaces that inherit from ID2D1Geometry define specific shapes. |
ID2D1GeometryGroup Represents a composite geometry, composed of other ID2D1Geometry objects. |
ID2D1GeometrySink Describes a geometric path that can contain lines, arcs, cubic Bezier curves, and quadratic Bezier curves. |
ID2D1GradientStopCollection Represents a collection of D2D1_GRADIENT_STOP objects for linear and radial gradient brushes. |
ID2D1HwndRenderTarget Renders drawing instructions to a window. |
ID2D1Image Represents a producer of pixels that can fill an arbitrary 2D plane. (ID2D1Image) |
ID2D1Layer Represents the backing store required to render a layer. |
ID2D1LinearGradientBrush Paints an area with a linear gradient. |
ID2D1Mesh Represents a set of vertices that form a list of triangles. |
ID2D1PathGeometry Represents a complex shape that may be composed of arcs, curves, and lines. |
ID2D1RadialGradientBrush Paints an area with a radial gradient. |
ID2D1RectangleGeometry Describes a two-dimensional rectangle. |
ID2D1RenderTarget Represents an object that can receive drawing commands. Interfaces that inherit from ID2D1RenderTarget render the drawing commands they receive in different ways. |
ID2D1Resource Represents a Direct2D drawing resource. |
ID2D1RoundedRectangleGeometry Describes a rounded rectangle. |
ID2D1SimplifiedGeometrySink Describes a geometric path that does not contain quadratic bezier curves or arcs. |
ID2D1SolidColorBrush Paints an area with a solid color. |
ID2D1StrokeStyle Describes the caps, miter limit, line join, and dash information for a stroke. (ID2D1StrokeStyle) |
ID2D1TessellationSink Populates an ID2D1Mesh object with triangles. |
ID2D1TransformedGeometry Represents a geometry that has been transformed. |
Functions
D2D1CreateFactory D2D1CreateFactory(D2D1_FACTORY_TYPE,REFIID,D2D1_FACTORY_OPTIONS*,void**) creates a factory object that can be used to create Direct2D resources. |
D2D1CreateFactory The D2D1CreateFactory(D2D1_FACTORY_TYPE,REFIID,void**) function creates a factory object that can be used to create Direct2D resources. |
D2D1InvertMatrix Tries to invert the specified matrix. |
D2D1IsMatrixInvertible Indicates whether the specified matrix is invertible. |
D2D1MakeRotateMatrix Creates a rotation transformation that rotates by the specified angle about the specified point. |
D2D1MakeSkewMatrix Creates a skew transformation that has the specified x-axis angle, y-axis angle, and center point. |
Structures
D2D1_ARC_SEGMENT Describes an elliptical arc between two points. |
D2D1_BEZIER_SEGMENT Represents a cubic bezier segment drawn between two points. |
D2D1_BITMAP_BRUSH_PROPERTIES Describes the extend modes and the interpolation mode of an ID2D1BitmapBrush. (D2D1_BITMAP_BRUSH_PROPERTIES) |
D2D1_BITMAP_PROPERTIES Describes the pixel format and dpi of a bitmap. |
D2D1_BRUSH_PROPERTIES Describes the opacity and transformation of a brush. |
D2D1_DRAWING_STATE_DESCRIPTION Describes the drawing state of a render target. |
D2D1_ELLIPSE Contains the center point, x-radius, and y-radius of an ellipse. |
D2D1_FACTORY_OPTIONS Contains the debugging level of an ID2D1Factory object. |
D2D1_GRADIENT_STOP Contains the position and color of a gradient stop. |
D2D1_HWND_RENDER_TARGET_PROPERTIES Contains the HWND, pixel size, and presentation options for an ID2D1HwndRenderTarget. |
D2D1_LAYER_PARAMETERS Contains the content bounds, mask information, opacity settings, and other options for a layer resource. (D2D1_LAYER_PARAMETERS) |
D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES Contains the starting point and endpoint of the gradient axis for an ID2D1LinearGradientBrush. |
D2D1_QUADRATIC_BEZIER_SEGMENT Contains the control point and end point for a quadratic Bezier segment. |
D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES Contains the gradient origin offset and the size and position of the gradient ellipse for an ID2D1RadialGradientBrush. |
D2D1_RENDER_TARGET_PROPERTIES Contains rendering options (hardware or software), pixel format, DPI information, remoting options, and Direct3D support requirements for a render target. |
D2D1_ROUNDED_RECT Contains the dimensions and corner radii of a rounded rectangle. |
D2D1_STROKE_STYLE_PROPERTIES Describes the stroke that outlines a shape. (D2D1_STROKE_STYLE_PROPERTIES) |
D2D1_TRIANGLE Contains the three vertices that describe a triangle. |
Enumerations
D2D1_ANTIALIAS_MODE Specifies how the edges of nontext primitives are rendered. |
D2D1_ARC_SIZE Specifies whether an arc should be greater than 180 degrees. |
D2D1_BITMAP_INTERPOLATION_MODE Specifies the algorithm that is used when images are scaled or rotated. |
D2D1_CAP_STYLE Describes the shape at the end of a line or segment. |
D2D1_COMBINE_MODE Specifies the different methods by which two geometries can be combined. |
D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS Specifies additional features supportable by a compatible render target when it is created. This enumeration allows a bitwise combination of its member values. |
D2D1_DASH_STYLE Describes the sequence of dashes and gaps in a stroke. |
D2D1_DC_INITIALIZE_MODE Specifies how a device context is initialized for GDI rendering when it is retrieved from the render target. |
D2D1_DEBUG_LEVEL Indicates the type of information provided by the Direct2D Debug Layer. |
D2D1_DRAW_TEXT_OPTIONS Specifies whether text snapping is suppressed or clipping to the layout rectangle is enabled. This enumeration allows a bitwise combination of its member values. |
D2D1_EXTEND_MODE Specifies how a brush paints areas outside of its normal content area. |
D2D1_FACTORY_TYPE Specifies whether Direct2D provides synchronization for an ID2D1Factory and the resources it creates, so that they may be safely accessed from multiple threads. |
D2D1_FEATURE_LEVEL Describes the minimum DirectX support required for hardware rendering by a render target. |
D2D1_FIGURE_BEGIN Indicates whether a specific ID2D1SimplifiedGeometrySink figure is filled or hollow. |
D2D1_FIGURE_END Indicates whether a specific ID2D1SimplifiedGeometrySink figure is open or closed. |
D2D1_FILL_MODE Specifies how the intersecting areas of geometries or figures are combined to form the area of the composite geometry. |
D2D1_GAMMA Specifies which gamma is used for interpolation. |
D2D1_GEOMETRY_RELATION Describes how one geometry object is spatially related to another geometry object. |
D2D1_GEOMETRY_SIMPLIFICATION_OPTION Specifies how a geometry is simplified to an ID2D1SimplifiedGeometrySink. |
D2D1_LAYER_OPTIONS Specifies options that can be applied when a layer resource is applied to create a layer. |
D2D1_LINE_JOIN Describes the shape that joins two lines or segments. |
D2D1_OPACITY_MASK_CONTENT 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. |
D2D1_PATH_SEGMENT 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. |
D2D1_PRESENT_OPTIONS Describes how a render target behaves when it presents its content. This enumeration allows a bitwise combination of its member values. |
D2D1_RENDER_TARGET_TYPE Describes whether a render target uses hardware or software rendering, or if Direct2D should select the rendering mode. |
D2D1_RENDER_TARGET_USAGE Describes how a render target is remoted and whether it should be GDI-compatible. This enumeration allows a bitwise combination of its member values. |
D2D1_SWEEP_DIRECTION Defines the direction that an elliptical arc is drawn. |
D2D1_TEXT_ANTIALIAS_MODE Describes the antialiasing mode used for drawing text. |
D2D1_WINDOW_STATE Describes whether a window is occluded. |