public static D2D_SIZE_F SizeF([NativeTypeName("FLOAT")] float width = 0.0f, [NativeTypeName("FLOAT")] float height = 0.0f) { D2D_SIZE_F size = new D2D_SIZE_F { width = width, height = height, }; return(size); }
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 static D2D_MATRIX_3X2_F Translation([NativeTypeName("D2D1_SIZE_F")] D2D_SIZE_F size) { D2D_MATRIX_3X2_F translation = default; translation.Anonymous.Anonymous2._11 = 1.0f; translation.Anonymous.Anonymous2._12 = 0.0f; translation.Anonymous.Anonymous2._21 = 0.0f; translation.Anonymous.Anonymous2._22 = 1.0f; translation.Anonymous.Anonymous2._31 = size.width; translation.Anonymous.Anonymous2._32 = size.height; return(translation); }
public int CreateCompatibleRenderTarget([NativeTypeName("D2D1_SIZE_F")] D2D_SIZE_F desiredSize, [NativeTypeName("D2D1_SIZE_U")] D2D_SIZE_U desiredPixelSize, D2D1_PIXEL_FORMAT desiredFormat, D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS options, [NativeTypeName("ID2D1BitmapRenderTarget **")] ID2D1BitmapRenderTarget **bitmapRenderTarget) { return(CreateCompatibleRenderTarget(&desiredSize, &desiredPixelSize, &desiredFormat, options, bitmapRenderTarget)); }
public int CreateCompatibleRenderTarget([NativeTypeName("D2D1_SIZE_F")] D2D_SIZE_F desiredSize, [NativeTypeName("D2D1_SIZE_U")] D2D_SIZE_U desiredPixelSize, [NativeTypeName("ID2D1BitmapRenderTarget **")] ID2D1BitmapRenderTarget **bitmapRenderTarget) { return(CreateCompatibleRenderTarget(&desiredSize, &desiredPixelSize, null, D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_NONE, bitmapRenderTarget)); }
public int CreateLayer([NativeTypeName("D2D1_SIZE_F")] D2D_SIZE_F size, [NativeTypeName("ID2D1Layer **")] ID2D1Layer **layer) { return(CreateLayer(&size, layer)); }
public int SetViewportSize([NativeTypeName("D2D1_SIZE_F")] D2D_SIZE_F viewportSize) { return(((delegate * unmanaged <ID2D1SvgDocument *, D2D_SIZE_F, int>)(lpVtbl[4]))((ID2D1SvgDocument *)Unsafe.AsPointer(ref this), viewportSize)); }
public int AddPage(ID2D1CommandList *commandList, D2D_SIZE_F pageSize, IStream *pagePrintTicketStream, [NativeTypeName("D2D1_TAG *")] ulong *tag1 = null, [NativeTypeName("D2D1_TAG *")] ulong *tag2 = null) { return(((delegate * unmanaged <ID2D1PrintControl *, ID2D1CommandList *, D2D_SIZE_F, IStream *, ulong *, ulong *, int>)(lpVtbl[3]))((ID2D1PrintControl *)Unsafe.AsPointer(ref this), commandList, pageSize, pagePrintTicketStream, tag1, tag2)); }