Direct2D 函数

Direct2D 提供以下函数。 D2D1 命名空间中定义了其他函数。

在本部分中

主题 描述
D2D1ComputeMaximumScaleFactor 计算给定转换可以拉伸任何向量的最大因子。
D2D1CreateDevice 创建与提供的 DXGI 设备关联的新 Direct2D 设备。
D2D1CreateDeviceContext 创建与 DXGI 图面关联的新 Direct2D 设备上下文。
D2D1CreateFactory(D2D1_FACTORY_TYPE,REFIID,void**) 创建可用于创建 Direct2D 资源的工厂对象。
D2D1CreateFactory(D2D1_FACTORY_TYPE,REFIID,D2D1_FACTORY_OPTIONS*,void**) 创建可用于创建 Direct2D 资源的工厂对象。
D2D1GetGradientMeshInteriorPointsFromCoonsPatch 根据定义 Coons 修补程序的点返回渐变网格补丁的内部点。
D2D1InvertMatrix 尝试反转指定的矩阵。
D2D1IsMatrixInvertible 指示指定的矩阵是否不可逆。
D2D1MakeRotateMatrix 创建旋转转换,该转换按指定角度围绕指定点旋转。
D2D1MakeSkewMatrix 创建具有指定 x 轴角度、y 轴角度和中心点的倾斜转换。
运算符* (const D2D1\MATRIX\3X2\F&,const D2D1\MATRIX\3X2\F&) 将两个矩阵相乘并返回结果。
BlobGetter 调用 blob 类型属性的成员函数属性 getter 回调。
BlobSetter 为 blob 类型属性调用成员函数属性 setter 回调。
DeducingBlobGetter 推断类和参数,然后调用 blob 类型属性的成员函数属性 getter 回调。
DeducingBlobSetter 推断类和参数,然后调用 blob 类型属性的成员函数属性 setter 回调。
DeducingStringGetter 推断类和参数,然后调用字符串类型属性的成员函数属性 getter 回调。
DeducingStringSetter 推断类和参数,然后为字符串类型属性调用成员函数属性 setter 回调。
DeducingValueGetter 推断类和参数,然后为值类型属性调用成员函数属性 getter 回调。
DeducingValueSetter 推断类和参数,然后为值类型属性调用成员函数属性 setter 回调。
GetType 检索给定属性的类型。
StringGetter 为字符串类型属性调用 member-function 属性 getter 回调。
StringSetter 为字符串类型属性调用成员函数属性 setter 回调。
ValueGetter 为值类型属性调用成员函数属性 setter 回调。
ValueSetter 为值类型属性调用成员函数属性 setter 回调。
D2D1ConvertColorSpace 将给定颜色从一个颜色空间转换为另一个颜色空间。
D2D1SinCos 返回角度的正弦和余弦值。
D2D1Tan 返回角度的正切值。
D2D1Vec3Length 返回三维向量长度。
PD2D1\PROPERTY\GET\FUNCTION 从效果中获取属性。
PD2D1\PROPERTY\SET\FUNCTION 设置效果的属性。