public static D2D_MATRIX_3X2_F Rotation(float angle, D2D_POINT_2F center = default) { D2D_MATRIX_3X2_F rotation; D2D1MakeRotateMatrix(angle, center, &rotation); return(rotation); }
public static D2D_MATRIX_3X2_F Skew(float angleX, float angleY, D2D_POINT_2F center = default) { D2D_MATRIX_3X2_F skew; D2D1MakeSkewMatrix(angleX, angleY, center, &skew); return(skew); }
public static D2D_POINT_2F Point2F([NativeTypeName("FLOAT")] float x = 0.0f, [NativeTypeName("FLOAT")] float y = 0.0f) { D2D_POINT_2F point = new D2D_POINT_2F { x = x, y = y, }; return(point); }
public void DrawTextLayout([NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F origin, [NativeTypeName("IDWriteTextLayout *")] IDWriteTextLayout *textLayout, [NativeTypeName("ID2D1Brush *")] ID2D1Brush *defaultFillBrush, D2D1_DRAW_TEXT_OPTIONS options = D2D1_DRAW_TEXT_OPTIONS_NONE) { ((delegate * stdcall <ID2D1BitmapRenderTarget *, D2D_POINT_2F, IDWriteTextLayout *, ID2D1Brush *, D2D1_DRAW_TEXT_OPTIONS, void>)(lpVtbl[28]))((ID2D1BitmapRenderTarget *)Unsafe.AsPointer(ref this), origin, textLayout, defaultFillBrush, options); }
public void DrawLine([NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point0, [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point1, [NativeTypeName("ID2D1Brush *")] ID2D1Brush *brush, [NativeTypeName("FLOAT")] float strokeWidth = 1.0f, [NativeTypeName("ID2D1StrokeStyle *")] ID2D1StrokeStyle *strokeStyle = null) { ((delegate * stdcall <ID2D1BitmapRenderTarget *, D2D_POINT_2F, D2D_POINT_2F, ID2D1Brush *, float, ID2D1StrokeStyle *, void>)(lpVtbl[15]))((ID2D1BitmapRenderTarget *)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle); }
public void SetStartPoint([NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F startPoint) { ((delegate * stdcall <ID2D1LinearGradientBrush *, D2D_POINT_2F, void>)(lpVtbl[8]))((ID2D1LinearGradientBrush *)Unsafe.AsPointer(ref this), startPoint); }
public int StrokeContainsPoint([NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point, [NativeTypeName("FLOAT")] float strokeWidth, ID2D1StrokeStyle *strokeStyle, [NativeTypeName("const D2D1_MATRIX_3X2_F *")] D2D_MATRIX_3X2_F *worldTransform, [NativeTypeName("BOOL *")] int *contains) { return(StrokeContainsPoint(point, strokeWidth, strokeStyle, worldTransform, (0.25f), contains)); }
public int StrokeContainsPoint([NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point, [NativeTypeName("FLOAT")] float strokeWidth, ID2D1StrokeStyle *strokeStyle, [NativeTypeName("const D2D1_MATRIX_3X2_F *")] D2D_MATRIX_3X2_F *worldTransform, [NativeTypeName("FLOAT")] float flatteningTolerance, [NativeTypeName("BOOL *")] int *contains) { return(((delegate * unmanaged <ID2D1PathGeometry1 *, D2D_POINT_2F, float, ID2D1StrokeStyle *, D2D_MATRIX_3X2_F *, float, int *, int>)(lpVtbl[6]))((ID2D1PathGeometry1 *)Unsafe.AsPointer(ref this), point, strokeWidth, strokeStyle, worldTransform, flatteningTolerance, contains)); }
public int DrawGlyphRun([NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F baselineOrigin, [NativeTypeName("const DWRITE_GLYPH_RUN *")] DWRITE_GLYPH_RUN *glyphRun, [NativeTypeName("const DWRITE_GLYPH_RUN_DESCRIPTION *")] DWRITE_GLYPH_RUN_DESCRIPTION *glyphRunDescription, ID2D1Brush *foregroundBrush, DWRITE_MEASURING_MODE measuringMode) { return(((delegate * unmanaged <ID2D1CommandSink1 *, D2D_POINT_2F, DWRITE_GLYPH_RUN *, DWRITE_GLYPH_RUN_DESCRIPTION *, ID2D1Brush *, DWRITE_MEASURING_MODE, int>)(lpVtbl[13]))((ID2D1CommandSink1 *)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, foregroundBrush, measuringMode)); }
public int ComputeGlyphOrigins([NativeTypeName("const DWRITE_GLYPH_RUN *")] DWRITE_GLYPH_RUN *glyphRun, DWRITE_MEASURING_MODE measuringMode, [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F baselineOrigin, [NativeTypeName("const DWRITE_MATRIX *")] DWRITE_MATRIX *worldAndDpiTransform, [NativeTypeName("D2D1_POINT_2F *")] D2D_POINT_2F *glyphOrigins) { return(((delegate * unmanaged <IDWriteFactory5 *, DWRITE_GLYPH_RUN *, DWRITE_MEASURING_MODE, D2D_POINT_2F, DWRITE_MATRIX *, D2D_POINT_2F *, int>)(lpVtbl[42]))((IDWriteFactory5 *)Unsafe.AsPointer(ref this), glyphRun, measuringMode, baselineOrigin, worldAndDpiTransform, glyphOrigins)); }
public static D2D_MATRIX_3X2_F Scale([NativeTypeName("FLOAT")] float x, [NativeTypeName("FLOAT")] float y, [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F center = default) { return(Scale(new D2D_SIZE_F(x, y), center)); }
public static D2D_MATRIX_3X2_F Scale([NativeTypeName("D2D1_SIZE_F")] D2D_SIZE_F size, [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F center = default) { D2D_MATRIX_3X2_F scale = default; scale.Anonymous.Anonymous2._11 = size.width; scale.Anonymous.Anonymous2._12 = 0.0f; scale.Anonymous.Anonymous2._21 = 0.0f; scale.Anonymous.Anonymous2._22 = size.height; scale.Anonymous.Anonymous2._31 = center.x - size.width * center.x; scale.Anonymous.Anonymous2._32 = center.y - size.height * center.y; return(scale); }
public void SetEndPoint([NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F endPoint) { ((delegate * unmanaged <ID2D1LinearGradientBrush *, D2D_POINT_2F, void>)(lpVtbl[9]))((ID2D1LinearGradientBrush *)Unsafe.AsPointer(ref this), endPoint); }
public static D2D1_GRADIENT_MESH_PATCH FromCoonsPatch([NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point0, [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point1, [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point2, [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point3, [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point4, [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point5, [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point6, [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point7, [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point8, [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point9, [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point10, [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point11, [NativeTypeName("D2D1_COLOR_F")] DXGI_RGBA color0, [NativeTypeName("D2D1_COLOR_F")] DXGI_RGBA color1, [NativeTypeName("D2D1_COLOR_F")] DXGI_RGBA color2, [NativeTypeName("D2D1_COLOR_F")] DXGI_RGBA color3, D2D1_PATCH_EDGE_MODE topEdgeMode, D2D1_PATCH_EDGE_MODE leftEdgeMode, D2D1_PATCH_EDGE_MODE bottomEdgeMode, D2D1_PATCH_EDGE_MODE rightEdgeMode) { return(GradientMeshPatchFromCoonsPatch(point0, point1, point2, point3, point4, point5, point6, point7, point8, point9, point10, point11, color0, color1, color2, color3, topEdgeMode, leftEdgeMode, bottomEdgeMode, rightEdgeMode)); }
public D2D1_GRADIENT_MESH_PATCH([NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point00, [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point01, [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point02, [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point03, [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point10, [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point11, [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point12, [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point13, [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point20, [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point21, [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point22, [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point23, [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point30, [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point31, [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point32, [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point33, [NativeTypeName("D2D1_COLOR_F")] DXGI_RGBA color00, [NativeTypeName("D2D1_COLOR_F")] DXGI_RGBA color03, [NativeTypeName("D2D1_COLOR_F")] DXGI_RGBA color30, [NativeTypeName("D2D1_COLOR_F")] DXGI_RGBA color33, D2D1_PATCH_EDGE_MODE topEdgeMode, D2D1_PATCH_EDGE_MODE leftEdgeMode, D2D1_PATCH_EDGE_MODE bottomEdgeMode, D2D1_PATCH_EDGE_MODE rightEdgeMode) { this = GradientMeshPatch(point00, point01, point02, point03, point10, point11, point12, point13, point20, point21, point22, point23, point30, point31, point32, point33, color00, color03, color30, color33, topEdgeMode, leftEdgeMode, bottomEdgeMode, rightEdgeMode); }
public void DrawGlyphRun([NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F baselineOrigin, [NativeTypeName("const DWRITE_GLYPH_RUN *")] DWRITE_GLYPH_RUN *glyphRun, [NativeTypeName("ID2D1Brush *")] ID2D1Brush *foregroundBrush, DWRITE_MEASURING_MODE measuringMode = DWRITE_MEASURING_MODE_NATURAL) { ((delegate * stdcall <ID2D1BitmapRenderTarget *, D2D_POINT_2F, DWRITE_GLYPH_RUN *, ID2D1Brush *, DWRITE_MEASURING_MODE, void>)(lpVtbl[29]))((ID2D1BitmapRenderTarget *)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, foregroundBrush, measuringMode); }
public int TranslateColorGlyphRun([NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F baselineOrigin, [NativeTypeName("const DWRITE_GLYPH_RUN *")] DWRITE_GLYPH_RUN *glyphRun, [NativeTypeName("const DWRITE_GLYPH_RUN_DESCRIPTION *")] DWRITE_GLYPH_RUN_DESCRIPTION *glyphRunDescription, DWRITE_GLYPH_IMAGE_FORMATS desiredGlyphImageFormats, DWRITE_MEASURING_MODE measuringMode, [NativeTypeName("const DWRITE_MATRIX *")] DWRITE_MATRIX *worldAndDpiTransform, [NativeTypeName("UINT32")] uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator1 **colorLayers) { return(((delegate * unmanaged <IDWriteFactory5 *, D2D_POINT_2F, DWRITE_GLYPH_RUN *, DWRITE_GLYPH_RUN_DESCRIPTION *, DWRITE_GLYPH_IMAGE_FORMATS, DWRITE_MEASURING_MODE, DWRITE_MATRIX *, uint, IDWriteColorGlyphRunEnumerator1 **, int>)(lpVtbl[40]))((IDWriteFactory5 *)Unsafe.AsPointer(ref this), baselineOrigin, glyphRun, glyphRunDescription, desiredGlyphImageFormats, measuringMode, worldAndDpiTransform, colorPaletteIndex, colorLayers)); }
public void BeginFigure([NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F startPoint, D2D1_FIGURE_BEGIN figureBegin) { ((delegate * unmanaged <ID2D1GeometrySink *, D2D_POINT_2F, D2D1_FIGURE_BEGIN, void>)(lpVtbl[5]))((ID2D1GeometrySink *)Unsafe.AsPointer(ref this), startPoint, figureBegin); }
public int ComputeGlyphOrigins([NativeTypeName("const DWRITE_GLYPH_RUN *")] DWRITE_GLYPH_RUN *glyphRun, [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F baselineOrigin, [NativeTypeName("D2D1_POINT_2F *")] D2D_POINT_2F *glyphOrigins) { return(((delegate * unmanaged <IDWriteFactory5 *, DWRITE_GLYPH_RUN *, D2D_POINT_2F, D2D_POINT_2F *, int>)(lpVtbl[41]))((IDWriteFactory5 *)Unsafe.AsPointer(ref this), glyphRun, baselineOrigin, glyphOrigins)); }
public void AddLine([NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point) { ((delegate * unmanaged <ID2D1GeometrySink *, D2D_POINT_2F, void>)(lpVtbl[10]))((ID2D1GeometrySink *)Unsafe.AsPointer(ref this), point); }
public int DrawLine([NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point0, [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point1, ID2D1Brush *brush, [NativeTypeName("FLOAT")] float strokeWidth, ID2D1StrokeStyle *strokeStyle) { return(((delegate * unmanaged <ID2D1CommandSink1 *, D2D_POINT_2F, D2D_POINT_2F, ID2D1Brush *, float, ID2D1StrokeStyle *, int>)(lpVtbl[14]))((ID2D1CommandSink1 *)Unsafe.AsPointer(ref this), point0, point1, brush, strokeWidth, strokeStyle)); }
public void SetCenter([NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F center) { ((delegate * stdcall <ID2D1RadialGradientBrush *, D2D_POINT_2F, void>)(lpVtbl[8]))((ID2D1RadialGradientBrush *)Unsafe.AsPointer(ref this), center); }
public int FillContainsPoint([NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point, [NativeTypeName("const D2D1_MATRIX_3X2_F *")] D2D_MATRIX_3X2_F *worldTransform, [NativeTypeName("FLOAT")] float flatteningTolerance, [NativeTypeName("BOOL *")] int *contains) { return(((delegate * unmanaged <ID2D1RoundedRectangleGeometry *, D2D_POINT_2F, D2D_MATRIX_3X2_F *, float, int *, int>)(lpVtbl[7]))((ID2D1RoundedRectangleGeometry *)Unsafe.AsPointer(ref this), point, worldTransform, flatteningTolerance, contains)); }
public void SetGradientOriginOffset([NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F gradientOriginOffset) { ((delegate * stdcall <ID2D1RadialGradientBrush *, D2D_POINT_2F, void>)(lpVtbl[9]))((ID2D1RadialGradientBrush *)Unsafe.AsPointer(ref this), gradientOriginOffset); }
public int FillContainsPoint([NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F point, [NativeTypeName("const D2D1_MATRIX_3X2_F *")] D2D_MATRIX_3X2_F *worldTransform, [NativeTypeName("BOOL *")] int *contains) { return(FillContainsPoint(point, worldTransform, (0.25f), contains)); }
public static extern void D2D1MakeSkewMatrix([NativeTypeName("FLOAT")] float angleX, [NativeTypeName("FLOAT")] float angleY, [NativeTypeName("D2D1_POINT_2F")] D2D_POINT_2F center, [NativeTypeName("D2D1_MATRIX_3X2_F *")] D2D_MATRIX_3X2_F *matrix);