Редагувати

Поділитися через


Direct2D helper functions

The D2D1 namespace defines the following functions.

In this section

Topic Description
ArcSegment
Creates a D2D1_ARC_SEGMENT structure.
BezierSegment
Creates a D2D1_BEZIER_SEGMENT structure.
BitmapBrushProperties
Creates a D2D1_BITMAP_BRUSH_PROPERTIES structure.
BitmapBrushProperties1
Creates a D2D1_BITMAP_BRUSH_PROPERTIES1 structure.
BitmapProperties
Creates a D2D1_BITMAP_PROPERTIES structure.
BitmapProperties1
Creates a D2D1_BITMAP_PROPERTIES1 structure.
BrushProperties
Creates a D2D1_BRUSH_PROPERTIES structure.
ComputeFlatteningTolerance
Computes the appropriate flattening tolerance to pass to APIs that take a flattening tolerance (for instance, ID2D1DeviceContext1::CreateFilledGeometryRealization).
ConvertColorSpace
Convert a D2D1_COLOR_F from one color space to another.
CreationProperties
Returns a D2D1_CREATION_PROPERTIES that describes root-level creation details.
DrawingStateDescription
Creates a D2D1_DRAWING_STATE_DESCRIPTION structure.
DrawingStateDescription1
Creates a D2D1_DRAWING_STATE_DESCRIPTION1 structure.
EffectInputDescription
Creates a D2D1_EFFECT_INPUT_DESCRIPTION structure.
Ellipse
Creates a D2D1_ELLIPSE structure.
FloatMax
Returns the maximum floating-point value.
GradientMeshPatch
Creates a D2D1_GRADIENT_MESH_PATCH structure that contains the given control points, colors, and boundary flags.
GradientMeshPatchFromCoonsPatch
Creates a D2D1_GRADIENT_MESH_PATCH from a given Coons patch description.
GradientStop
Creates a D2D1_GRADIENT_STOP structure.
HwndRenderTargetProperties
Creates a D2D1_HWND_RENDER_TARGET_PROPERTIES structure.
IdentityMatrix
Creates an identity matrix.
ImageBrushProperties
Creates a D2D1_IMAGE_BRUSH_PROPERTIES structure.
InfiniteRect
Creates a rectangle that has its upper-left corner set to (negative infinity, negative infinity) and its lower-right corner set to (infinity, infinity).
InfiniteRectU
Creates a rectangle that has its upper-left corner set to (0u, 0u) and its lower-right corner set to (infinity, infinity).
InkBezierSegment
Creates a D2D1_INK_BEZIER_SEGMENT structure.
InkPoint
Creates a D2D1_INK_POINT structure.
InkStyleProperties
Creates a D2D1_INK_STYLE_PROPERTIES structure.
LayerParameters
Creates a D2D1_LAYER_PARAMETERS structure.
LayerParameters1
Returns a D2D1_LAYER_PARAMETERS1 struct that contains the content bounds, mask information, opacity settings, and other options for a layer resource.
LinearGradientBrushProperties
Creates a D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES structure.
operator* (D2D1_POINT_2F&,D2D1_MATRIX_F&)
Uses the specified matrix to transform the specified point.
PixelFormat
Creates a D2D1_PIXEL_FORMAT structure.
Point2(Type)
Creates a point that stores its coordinates using the specified data type.
Point2F
Creates a D2D1_POINT_2F structure that contains the specified x-coordinates and y-coordinates.
Point2L
Returns a point struct of long integers.
Point2U
Creates a D2D1_POINT_2U structure that contains the specified x-coordinates and y-coordinates.
PrintControlProperties
Returns a filled D2D1_PRINT_CONTROL_PROPERTIES structure.
QuadraticBezierSegment
Creates a D2D1_QUADRATIC_BEZIER_SEGMENT structure.
RadialGradientBrushProperties
Creates a D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES structure.
RenderTargetProperties
Creates a D2D1_RENDER_TARGET_PROPERTIES structure.
Rect(Type)
Creates a rectangle structure that stores its coordinates using the specified data type.
RectF
Creates a D2D1_RECT_F structure that contains the specified dimensions.
RectL
Returns a filled D2D1_RECT_L structure.
RectU
Creates a D2D1_RECT_U structure that contains the specified dimensions.
RenderingControls
Returns a filled D2D1_RENDERING_CONTROLS structure.
RoundedRect
Creates a D2D1_ROUNDED_RECT structure.
SetDpiCompensatedEffectInput
Sets a bitmap as an effect input, while inserting a DPI compensation effect to preserve visual appearance as the device context's DPI changes.
Size(Type)
Creates a size structure that stores its width and height using the specified data type.
SizeF
Creates a D2D1_SIZE_F structure that contains the specified width and height.
SizeU
Creates a D2D1_SIZE_U structure that contains the specified width and height.
StrokeStyleProperties
Creates a D2D1_STROKE_STYLE_PROPERTIES structure.
StrokeStyleProperties1
Returns a filled D2D1_STROKE_STYLE_PROPERTIES1 structure.
Vector2F
Returns a filled D2D1_VECTOR_2F structure.
Vector3F
Returns a filled D2D1_VECTOR_3F structure.
Vector4F
Returns a filled D2D1_VECTOR_4F structure.