コード例 #1
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);
    }
コード例 #2
0
 public void FillRectangle([NativeTypeName("const D2D1_RECT_F *")] D2D_RECT_F *rect, ID2D1Brush *brush)
 {
     ((delegate * unmanaged <ID2D1HwndRenderTarget *, D2D_RECT_F *, ID2D1Brush *, void>)(lpVtbl[17]))((ID2D1HwndRenderTarget *)Unsafe.AsPointer(ref this), rect, brush);
 }
 public int GetWidenedBounds([NativeTypeName("FLOAT")] float strokeWidth, ID2D1StrokeStyle *strokeStyle, [NativeTypeName("const D2D1_MATRIX_3X2_F *")] D2D_MATRIX_3X2_F *worldTransform, [NativeTypeName("FLOAT")] float flatteningTolerance, [NativeTypeName("D2D1_RECT_F *")] D2D_RECT_F *bounds)
 {
     return(((delegate * unmanaged <ID2D1RoundedRectangleGeometry *, float, ID2D1StrokeStyle *, D2D_MATRIX_3X2_F *, float, D2D_RECT_F *, int>)(lpVtbl[5]))((ID2D1RoundedRectangleGeometry *)Unsafe.AsPointer(ref this), strokeWidth, strokeStyle, worldTransform, flatteningTolerance, bounds));
 }
コード例 #4
0
 public int SetClip([NativeTypeName("const D2D_RECT_F &")] D2D_RECT_F *rect)
 {
     return(((delegate * unmanaged <IDCompositionVisual2 *, D2D_RECT_F *, int>)(lpVtbl[14]))((IDCompositionVisual2 *)Unsafe.AsPointer(ref this), rect));
 }
コード例 #5
0
 public int FillRectangle([NativeTypeName("const D2D1_RECT_F *")] D2D_RECT_F *rect, ID2D1Brush *brush)
 {
     return(((delegate * unmanaged <ID2D1CommandSink1 *, D2D_RECT_F *, ID2D1Brush *, int>)(lpVtbl[23]))((ID2D1CommandSink1 *)Unsafe.AsPointer(ref this), rect, brush));
 }
コード例 #6
0
 public int DrawImage(ID2D1Image *image, [NativeTypeName("const D2D1_POINT_2F *")] D2D_POINT_2F *targetOffset, [NativeTypeName("const D2D1_RECT_F *")] D2D_RECT_F *imageRectangle, D2D1_INTERPOLATION_MODE interpolationMode, D2D1_COMPOSITE_MODE compositeMode)
 {
     return(((delegate * unmanaged <ID2D1CommandSink1 *, ID2D1Image *, D2D_POINT_2F *, D2D_RECT_F *, D2D1_INTERPOLATION_MODE, D2D1_COMPOSITE_MODE, int>)(lpVtbl[18]))((ID2D1CommandSink1 *)Unsafe.AsPointer(ref this), image, targetOffset, imageRectangle, interpolationMode, compositeMode));
 }
コード例 #7
0
 public int DrawRectangle([NativeTypeName("const D2D1_RECT_F *")] D2D_RECT_F *rect, ID2D1Brush *brush, [NativeTypeName("FLOAT")] float strokeWidth, ID2D1StrokeStyle *strokeStyle)
 {
     return(((delegate * unmanaged <ID2D1CommandSink1 *, D2D_RECT_F *, ID2D1Brush *, float, ID2D1StrokeStyle *, int>)(lpVtbl[16]))((ID2D1CommandSink1 *)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle));
 }
コード例 #8
0
 public void PushAxisAlignedClip([NativeTypeName("const D2D1_RECT_F *")] D2D_RECT_F *clipRect, D2D1_ANTIALIAS_MODE antialiasMode)
 {
     ((delegate * stdcall <ID2D1BitmapRenderTarget *, D2D_RECT_F *, D2D1_ANTIALIAS_MODE, void>)(lpVtbl[45]))((ID2D1BitmapRenderTarget *)Unsafe.AsPointer(ref this), clipRect, antialiasMode);
 }
コード例 #9
0
 public void SetSourceRectangle([NativeTypeName("const D2D1_RECT_F *")] D2D_RECT_F *sourceRectangle)
 {
     ((delegate * stdcall <ID2D1ImageBrush *, D2D_RECT_F *, void>)(lpVtbl[12]))((ID2D1ImageBrush *)Unsafe.AsPointer(ref this), sourceRectangle);
 }
コード例 #10
0
 public int GetBounds([NativeTypeName("D2D1_RECT_F *")] D2D_RECT_F *bounds)
 {
     return(((delegate * stdcall <ID2D1GdiMetafile *, D2D_RECT_F *, int>)(lpVtbl[5]))((ID2D1GdiMetafile *)Unsafe.AsPointer(ref this), bounds));
 }
コード例 #11
0
 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));
 }
コード例 #12
0
 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));
 }
コード例 #13
0
 public int GetSourceBounds([NativeTypeName("D2D1_RECT_F *")] D2D_RECT_F *bounds)
 {
     return(((delegate * unmanaged <ID2D1GdiMetafile1 *, D2D_RECT_F *, int>)(lpVtbl[7]))((ID2D1GdiMetafile1 *)Unsafe.AsPointer(ref this), bounds));
 }
コード例 #14
0
 public int DrawGdiMetafile([NativeTypeName("ID2D1GdiMetafile *")] ID2D1GdiMetafile *gdiMetafile, [NativeTypeName("const D2D1_RECT_F *")] D2D_RECT_F *destinationRectangle, [NativeTypeName("const D2D1_RECT_F *")] D2D_RECT_F *sourceRectangle)
 {
     return(((delegate * stdcall <ID2D1CommandSink3 *, ID2D1GdiMetafile *, D2D_RECT_F *, D2D_RECT_F *, int>)(lpVtbl[31]))((ID2D1CommandSink3 *)Unsafe.AsPointer(ref this), gdiMetafile, destinationRectangle, sourceRectangle));
 }
コード例 #15
0
 public void GetRect([NativeTypeName("D2D1_RECT_F *")] D2D_RECT_F *rect)
 {
     ((delegate * unmanaged <ID2D1RectangleGeometry *, D2D_RECT_F *, void>)(lpVtbl[17]))((ID2D1RectangleGeometry *)Unsafe.AsPointer(ref this), rect);
 }
コード例 #16
0
 public void DrawBitmap([NativeTypeName("ID2D1Bitmap *")] ID2D1Bitmap *bitmap, [NativeTypeName("const D2D1_RECT_F *")] D2D_RECT_F *destinationRectangle = null, [NativeTypeName("FLOAT")] float opacity = 1.0f, D2D1_BITMAP_INTERPOLATION_MODE interpolationMode = D2D1_BITMAP_INTERPOLATION_MODE_LINEAR, [NativeTypeName("const D2D1_RECT_F *")] D2D_RECT_F *sourceRectangle = null)
 {
     ((delegate * stdcall <ID2D1BitmapRenderTarget *, ID2D1Bitmap *, D2D_RECT_F *, float, D2D1_BITMAP_INTERPOLATION_MODE, D2D_RECT_F *, void>)(lpVtbl[26]))((ID2D1BitmapRenderTarget *)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle);
 }
コード例 #17
0
 public void DrawText([NativeTypeName("const WCHAR *")] ushort * @string, [NativeTypeName("UINT32")] uint stringLength, [NativeTypeName("IDWriteTextFormat *")] IDWriteTextFormat *textFormat, [NativeTypeName("const D2D1_RECT_F *")] D2D_RECT_F *layoutRect, [NativeTypeName("ID2D1Brush *")] ID2D1Brush *defaultFillBrush, D2D1_DRAW_TEXT_OPTIONS options = D2D1_DRAW_TEXT_OPTIONS_NONE, DWRITE_MEASURING_MODE measuringMode = DWRITE_MEASURING_MODE_NATURAL)
 {
     ((delegate * stdcall <ID2D1BitmapRenderTarget *, ushort *, uint, IDWriteTextFormat *, D2D_RECT_F *, ID2D1Brush *, D2D1_DRAW_TEXT_OPTIONS, DWRITE_MEASURING_MODE, void>)(lpVtbl[27]))((ID2D1BitmapRenderTarget *)Unsafe.AsPointer(ref this), @string, stringLength, textFormat, layoutRect, defaultFillBrush, options, measuringMode);
 }
コード例 #18
0
 public HRESULT BlendImage(ID2D1Image *image, D2D1_BLEND_MODE blendMode, [NativeTypeName("const D2D1_POINT_2F *")] D2D_POINT_2F *targetOffset, [NativeTypeName("const D2D1_RECT_F *")] D2D_RECT_F *imageRectangle, D2D1_INTERPOLATION_MODE interpolationMode)
 {
     return(((delegate * unmanaged <ID2D1CommandSink5 *, ID2D1Image *, D2D1_BLEND_MODE, D2D_POINT_2F *, D2D_RECT_F *, D2D1_INTERPOLATION_MODE, int>)(lpVtbl[34]))((ID2D1CommandSink5 *)Unsafe.AsPointer(ref this), image, blendMode, targetOffset, imageRectangle, interpolationMode));
 }
コード例 #19
0
 public int CreateRectangleGeometry([NativeTypeName("const D2D1_RECT_F *")] D2D_RECT_F *rectangle, ID2D1RectangleGeometry **rectangleGeometry)
 {
     return(((delegate * unmanaged <ID2D1Factory5 *, D2D_RECT_F *, ID2D1RectangleGeometry **, int>)(lpVtbl[5]))((ID2D1Factory5 *)Unsafe.AsPointer(ref this), rectangle, rectangleGeometry));
 }
コード例 #20
0
 public int GetBounds([NativeTypeName("ID2D1InkStyle *")] ID2D1InkStyle *inkStyle, [NativeTypeName("const D2D1_MATRIX_3X2_F *")] D2D_MATRIX_3X2_F *worldTransform, [NativeTypeName("D2D1_RECT_F *")] D2D_RECT_F *bounds)
 {
     return(((delegate * unmanaged <ID2D1Ink *, ID2D1InkStyle *, D2D_MATRIX_3X2_F *, D2D_RECT_F *, int>)(lpVtbl[13]))((ID2D1Ink *)Unsafe.AsPointer(ref this), inkStyle, worldTransform, bounds));
 }
コード例 #21
0
 public int DrawBitmap(ID2D1Bitmap *bitmap, [NativeTypeName("const D2D1_RECT_F *")] D2D_RECT_F *destinationRectangle, [NativeTypeName("FLOAT")] float opacity, D2D1_INTERPOLATION_MODE interpolationMode, [NativeTypeName("const D2D1_RECT_F *")] D2D_RECT_F *sourceRectangle, [NativeTypeName("const D2D1_MATRIX_4X4_F *")] D2D_MATRIX_4X4_F *perspectiveTransform)
 {
     return(((delegate * unmanaged <ID2D1CommandSink1 *, ID2D1Bitmap *, D2D_RECT_F *, float, D2D1_INTERPOLATION_MODE, D2D_RECT_F *, D2D_MATRIX_4X4_F *, int>)(lpVtbl[17]))((ID2D1CommandSink1 *)Unsafe.AsPointer(ref this), bitmap, destinationRectangle, opacity, interpolationMode, sourceRectangle, perspectiveTransform));
 }
コード例 #22
0
 public HRESULT DrawGdiMetafile(ID2D1GdiMetafile *gdiMetafile, [NativeTypeName("const D2D1_RECT_F *")] D2D_RECT_F *destinationRectangle, [NativeTypeName("const D2D1_RECT_F *")] D2D_RECT_F *sourceRectangle)
 {
     return(((delegate * unmanaged <ID2D1CommandSink4 *, ID2D1GdiMetafile *, D2D_RECT_F *, D2D_RECT_F *, int>)(lpVtbl[31]))((ID2D1CommandSink4 *)Unsafe.AsPointer(ref this), gdiMetafile, destinationRectangle, sourceRectangle));
 }
コード例 #23
0
 public int FillOpacityMask(ID2D1Bitmap *opacityMask, ID2D1Brush *brush, [NativeTypeName("const D2D1_RECT_F *")] D2D_RECT_F *destinationRectangle, [NativeTypeName("const D2D1_RECT_F *")] D2D_RECT_F *sourceRectangle)
 {
     return(((delegate * unmanaged <ID2D1CommandSink1 *, ID2D1Bitmap *, ID2D1Brush *, D2D_RECT_F *, D2D_RECT_F *, int>)(lpVtbl[21]))((ID2D1CommandSink1 *)Unsafe.AsPointer(ref this), opacityMask, brush, destinationRectangle, sourceRectangle));
 }
コード例 #24
0
 public void DrawRectangle([NativeTypeName("const D2D1_RECT_F *")] D2D_RECT_F *rect, [NativeTypeName("ID2D1Brush *")] ID2D1Brush *brush, [NativeTypeName("FLOAT")] float strokeWidth = 1.0f, [NativeTypeName("ID2D1StrokeStyle *")] ID2D1StrokeStyle *strokeStyle = null)
 {
     ((delegate * stdcall <ID2D1BitmapRenderTarget *, D2D_RECT_F *, ID2D1Brush *, float, ID2D1StrokeStyle *, void>)(lpVtbl[16]))((ID2D1BitmapRenderTarget *)Unsafe.AsPointer(ref this), rect, brush, strokeWidth, strokeStyle);
 }
コード例 #25
0
 public int PushAxisAlignedClip([NativeTypeName("const D2D1_RECT_F *")] D2D_RECT_F *clipRect, D2D1_ANTIALIAS_MODE antialiasMode)
 {
     return(((delegate * unmanaged <ID2D1CommandSink1 *, D2D_RECT_F *, D2D1_ANTIALIAS_MODE, int>)(lpVtbl[24]))((ID2D1CommandSink1 *)Unsafe.AsPointer(ref this), clipRect, antialiasMode));
 }
コード例 #26
0
 public void FillRectangle([NativeTypeName("const D2D1_RECT_F *")] D2D_RECT_F *rect, [NativeTypeName("ID2D1Brush *")] ID2D1Brush *brush)
 {
     ((delegate * stdcall <ID2D1BitmapRenderTarget *, D2D_RECT_F *, ID2D1Brush *, void>)(lpVtbl[17]))((ID2D1BitmapRenderTarget *)Unsafe.AsPointer(ref this), rect, brush);
 }
 public int GetBounds([NativeTypeName("const D2D1_MATRIX_3X2_F *")] D2D_MATRIX_3X2_F *worldTransform, [NativeTypeName("D2D1_RECT_F *")] D2D_RECT_F *bounds)
 {
     return(((delegate * unmanaged <ID2D1RoundedRectangleGeometry *, D2D_MATRIX_3X2_F *, D2D_RECT_F *, int>)(lpVtbl[4]))((ID2D1RoundedRectangleGeometry *)Unsafe.AsPointer(ref this), worldTransform, bounds));
 }
コード例 #28
0
 public void FillOpacityMask([NativeTypeName("ID2D1Bitmap *")] ID2D1Bitmap *opacityMask, [NativeTypeName("ID2D1Brush *")] ID2D1Brush *brush, D2D1_OPACITY_MASK_CONTENT content, [NativeTypeName("const D2D1_RECT_F *")] D2D_RECT_F *destinationRectangle = null, [NativeTypeName("const D2D1_RECT_F *")] D2D_RECT_F *sourceRectangle = null)
 {
     ((delegate * stdcall <ID2D1BitmapRenderTarget *, ID2D1Bitmap *, ID2D1Brush *, D2D1_OPACITY_MASK_CONTENT, D2D_RECT_F *, D2D_RECT_F *, void>)(lpVtbl[25]))((ID2D1BitmapRenderTarget *)Unsafe.AsPointer(ref this), opacityMask, brush, content, destinationRectangle, sourceRectangle);
 }
 public int GetWidenedBounds([NativeTypeName("FLOAT")] float strokeWidth, ID2D1StrokeStyle *strokeStyle, [NativeTypeName("const D2D1_MATRIX_3X2_F *")] D2D_MATRIX_3X2_F *worldTransform, [NativeTypeName("D2D1_RECT_F *")] D2D_RECT_F *bounds)
 {
     return(GetWidenedBounds(strokeWidth, strokeStyle, worldTransform, (0.25f), bounds));
 }
コード例 #30
0
 public void GetSourceRectangle([NativeTypeName("D2D1_RECT_F *")] D2D_RECT_F *sourceRectangle)
 {
     ((delegate * unmanaged <ID2D1ImageBrush *, D2D_RECT_F *, void>)(lpVtbl[17]))((ID2D1ImageBrush *)Unsafe.AsPointer(ref this), sourceRectangle);
 }