Example #1
0
 public int GetPaletteEntries([NativeTypeName("UINT32")] uint colorPaletteIndex, [NativeTypeName("UINT32")] uint firstEntryIndex, [NativeTypeName("UINT32")] uint entryCount, [NativeTypeName("DWRITE_COLOR_F *")] DXGI_RGBA *paletteEntries)
 {
     return(((delegate * unmanaged <IDWriteFontFace4 *, uint, uint, uint, DXGI_RGBA *, int>)(lpVtbl[33]))((IDWriteFontFace4 *)Unsafe.AsPointer(ref this), colorPaletteIndex, firstEntryIndex, entryCount, paletteEntries));
 }
Example #2
0
 public int EnableHeatMap([NativeTypeName("const D2D1_COLOR_F &")] DXGI_RGBA *color)
 {
     return(((delegate * unmanaged <IDCompositionVisualDebug *, DXGI_RGBA *, int>)(lpVtbl[22]))((IDCompositionVisualDebug *)Unsafe.AsPointer(ref this), color));
 }
 public static DXGI_RGBA ConvertColorSpace(D2D1_COLOR_SPACE sourceColorSpace, D2D1_COLOR_SPACE destinationColorSpace, [NativeTypeName("const D2D1_COLOR_F &")] DXGI_RGBA *color)
 {
     return(D2D1ConvertColorSpace(sourceColorSpace, destinationColorSpace, color));
 }
 public HRESULT StartNewTrail([NativeTypeName("const D2D1_COLOR_F &")] DXGI_RGBA *color)
 {
     return(((delegate * unmanaged <IDCompositionDelegatedInkTrail *, DXGI_RGBA *, int>)(lpVtbl[6]))((IDCompositionDelegatedInkTrail *)Unsafe.AsPointer(ref this), color));
 }
Example #5
0
    public static unsafe PDF_RENDER_PARAMS PdfRenderParams([NativeTypeName("const D2D_RECT_F &")] D2D_RECT_F *srcRect, [NativeTypeName("UINT32")] uint destinationWidth, [NativeTypeName("UINT32")] uint destinationHeight, [NativeTypeName("const D2D_COLOR_F &")] DXGI_RGBA *bkColor, [NativeTypeName("BOOLEAN")] byte ignoreHighContrast)
    {
        PDF_RENDER_PARAMS p = new PDF_RENDER_PARAMS {
            SourceRect         = *srcRect,
            DestinationWidth   = destinationWidth,
            DestinationHeight  = destinationHeight,
            BackgroundColor    = *bkColor,
            IgnoreHighContrast = ignoreHighContrast,
        };

        return(p);
    }
 public int CreateSolidColorBrush([NativeTypeName("const D2D1_COLOR_F *")] DXGI_RGBA *color, [NativeTypeName("const D2D1_BRUSH_PROPERTIES *")] D2D1_BRUSH_PROPERTIES *brushProperties, [NativeTypeName("ID2D1SolidColorBrush **")] ID2D1SolidColorBrush **solidColorBrush)
 {
     return(((delegate * stdcall <ID2D1BitmapRenderTarget *, DXGI_RGBA *, D2D1_BRUSH_PROPERTIES *, ID2D1SolidColorBrush **, int>)(lpVtbl[8]))((ID2D1BitmapRenderTarget *)Unsafe.AsPointer(ref this), color, brushProperties, solidColorBrush));
 }
 public int CreateSolidColorBrush([NativeTypeName("const D2D1_COLOR_F &")] DXGI_RGBA *color, [NativeTypeName("ID2D1SolidColorBrush **")] ID2D1SolidColorBrush **solidColorBrush)
 {
     return(CreateSolidColorBrush(color, null, solidColorBrush));
 }
Example #8
0
 public static extern DXGI_RGBA D2D1ConvertColorSpace(D2D1_COLOR_SPACE sourceColorSpace, D2D1_COLOR_SPACE destinationColorSpace, [NativeTypeName("const D2D1_COLOR_F *")] DXGI_RGBA *color);
 public HRESULT SetColor([NativeTypeName("const D2D1_COLOR_F *")] DXGI_RGBA *color)
 {
     return(((delegate * unmanaged <ID2D1SvgPaint *, DXGI_RGBA *, int>)(lpVtbl[8]))((ID2D1SvgPaint *)Unsafe.AsPointer(ref this), color));
 }
 public int SetSprites([NativeTypeName("UINT32")] uint startIndex, [NativeTypeName("UINT32")] uint spriteCount, [NativeTypeName("const D2D1_RECT_F *")] D2D_RECT_F *destinationRectangles = null, [NativeTypeName("const D2D1_RECT_U *")] D2D_RECT_U *sourceRectangles = null, [NativeTypeName("const D2D1_COLOR_F *")] DXGI_RGBA *colors = null, [NativeTypeName("const D2D1_MATRIX_3X2_F *")] D2D_MATRIX_3X2_F *transforms = null, [NativeTypeName("UINT32")] uint destinationRectanglesStride = unchecked (16), [NativeTypeName("UINT32")] uint sourceRectanglesStride = unchecked (16), [NativeTypeName("UINT32")] uint colorsStride = unchecked (16), [NativeTypeName("UINT32")] uint transformsStride = unchecked (24))
 {
     return(((delegate * unmanaged <ID2D1SpriteBatch *, uint, uint, D2D_RECT_F *, D2D_RECT_U *, DXGI_RGBA *, D2D_MATRIX_3X2_F *, uint, uint, uint, uint, int>)(lpVtbl[5]))((ID2D1SpriteBatch *)Unsafe.AsPointer(ref this), startIndex, spriteCount, destinationRectangles, sourceRectangles, colors, transforms, destinationRectanglesStride, sourceRectanglesStride, colorsStride, transformsStride));
 }
 public int GetSprites([NativeTypeName("UINT32")] uint startIndex, [NativeTypeName("UINT32")] uint spriteCount, [NativeTypeName("D2D1_RECT_F *")] D2D_RECT_F *destinationRectangles = null, [NativeTypeName("D2D1_RECT_U *")] D2D_RECT_U *sourceRectangles = null, [NativeTypeName("D2D1_COLOR_F *")] DXGI_RGBA *colors = null, [NativeTypeName("D2D1_MATRIX_3X2_F *")] D2D_MATRIX_3X2_F *transforms = null)
 {
     return(((delegate * unmanaged <ID2D1SpriteBatch *, uint, uint, D2D_RECT_F *, D2D_RECT_U *, DXGI_RGBA *, D2D_MATRIX_3X2_F *, int>)(lpVtbl[6]))((ID2D1SpriteBatch *)Unsafe.AsPointer(ref this), startIndex, spriteCount, destinationRectangles, sourceRectangles, colors, transforms));
 }
Example #12
0
 public int GetAttributeValue([NativeTypeName("PCWSTR")] ushort *name, [NativeTypeName("D2D1_COLOR_F *")] DXGI_RGBA *value)
 {
     return(GetAttributeValue(name, D2D1_SVG_ATTRIBUTE_POD_TYPE_COLOR, value, (uint)(sizeof(DXGI_RGBA))));
 }
Example #13
0
 public void SetColor([NativeTypeName("const D2D1_COLOR_F *")] DXGI_RGBA *color)
 {
     ((delegate * stdcall <ID2D1SolidColorBrush *, DXGI_RGBA *, void>)(lpVtbl[8]))((ID2D1SolidColorBrush *)Unsafe.AsPointer(ref this), color);
 }
 public HRESULT CreateSolidColorBrush([NativeTypeName("const D2D1_COLOR_F *")] DXGI_RGBA *color, [NativeTypeName("const D2D1_BRUSH_PROPERTIES *")] D2D1_BRUSH_PROPERTIES *brushProperties, ID2D1SolidColorBrush **solidColorBrush)
 {
     return(((delegate * unmanaged <ID2D1HwndRenderTarget *, DXGI_RGBA *, D2D1_BRUSH_PROPERTIES *, ID2D1SolidColorBrush **, int>)(lpVtbl[8]))((ID2D1HwndRenderTarget *)Unsafe.AsPointer(ref this), color, brushProperties, solidColorBrush));
 }
Example #15
0
 public HRESULT SetBackgroundColor([NativeTypeName("const DXGI_RGBA *")] DXGI_RGBA *pColor)
 {
     return(((delegate * unmanaged <IDXGISwapChain4 *, DXGI_RGBA *, int>)(lpVtbl[25]))((IDXGISwapChain4 *)Unsafe.AsPointer(ref this), pColor));
 }
 public void GetColor([NativeTypeName("D2D1_COLOR_F *")] DXGI_RGBA *color)
 {
     ((delegate * unmanaged <ID2D1SvgPaint *, DXGI_RGBA *, void>)(lpVtbl[9]))((ID2D1SvgPaint *)Unsafe.AsPointer(ref this), color);
 }
Example #17
0
 public HRESULT GetBackgroundColor(DXGI_RGBA *pColor)
 {
     return(((delegate * unmanaged <IDXGISwapChain4 *, DXGI_RGBA *, int>)(lpVtbl[26]))((IDXGISwapChain4 *)Unsafe.AsPointer(ref this), pColor));
 }
Example #18
0
 public int GetBackgroundColor([NativeTypeName("DXGI_RGBA *")] DXGI_RGBA *pColor)
 {
     return(((delegate * stdcall <IDXGISwapChain4 *, DXGI_RGBA *, int>)(lpVtbl[26]))((IDXGISwapChain4 *)Unsafe.AsPointer(ref this), pColor));
 }
 public void Clear([NativeTypeName("const D2D1_COLOR_F *")] DXGI_RGBA *clearColor = null)
 {
     ((delegate * stdcall <ID2D1BitmapRenderTarget *, DXGI_RGBA *, void>)(lpVtbl[47]))((ID2D1BitmapRenderTarget *)Unsafe.AsPointer(ref this), clearColor);
 }
Example #20
0
 public HRESULT CreatePaint(D2D1_SVG_PAINT_TYPE paintType, [NativeTypeName("const D2D1_COLOR_F *")] DXGI_RGBA *color, [NativeTypeName("PCWSTR")] ushort *id, ID2D1SvgPaint **paint)
 {
     return(((delegate * unmanaged <ID2D1SvgDocument *, D2D1_SVG_PAINT_TYPE, DXGI_RGBA *, ushort *, ID2D1SvgPaint **, int>)(lpVtbl[11]))((ID2D1SvgDocument *)Unsafe.AsPointer(ref this), paintType, color, id, paint));
 }
Example #21
0
 public int Clear([NativeTypeName("const D2D1_COLOR_F *")] DXGI_RGBA *color)
 {
     return(((delegate * unmanaged <ID2D1CommandSink1 *, DXGI_RGBA *, int>)(lpVtbl[12]))((ID2D1CommandSink1 *)Unsafe.AsPointer(ref this), color));
 }
Example #22
0
 public int AddSprites([NativeTypeName("UINT32")] uint spriteCount, [NativeTypeName("const D2D1_RECT_F *")] D2D_RECT_F *destinationRectangles, [NativeTypeName("const D2D1_RECT_U *")] D2D_RECT_U *sourceRectangles = null, [NativeTypeName("const D2D1_COLOR_F *")] DXGI_RGBA *colors = null, [NativeTypeName("const D2D1_MATRIX_3X2_F *")] D2D_MATRIX_3X2_F *transforms = null, [NativeTypeName("UINT32")] uint destinationRectanglesStride = 16, [NativeTypeName("UINT32")] uint sourceRectanglesStride = 16, [NativeTypeName("UINT32")] uint colorsStride = 16, [NativeTypeName("UINT32")] uint transformsStride = 24)
 {
     return(((delegate * stdcall <ID2D1SpriteBatch *, uint, D2D_RECT_F *, D2D_RECT_U *, DXGI_RGBA *, D2D_MATRIX_3X2_F *, uint, uint, uint, uint, int>)(lpVtbl[4]))((ID2D1SpriteBatch *)Unsafe.AsPointer(ref this), spriteCount, destinationRectangles, sourceRectangles, colors, transforms, destinationRectanglesStride, sourceRectanglesStride, colorsStride, transformsStride));
 }