예제 #1
0
        public GraphicsPlus(HDC hdc, HANDLE hdevice)
        {
            GpGraphics Graphics = new GpGraphics();

            lastResult = GdiPlus.GdipCreateFromHDC2(hdc, hdevice, out Graphics);

            SetNativeGraphics(Graphics);
        }
예제 #2
0
        public GraphicsPlus(HDC hdc)
        {
            GpGraphics Graphics = new GpGraphics();

            lastResult = GdiPlus.GdipCreateFromHDC(hdc, out Graphics);

            SetNativeGraphics(Graphics);
        }
예제 #3
0
        public GraphicsPlus(HDC hdc, HANDLE hdevice)
        {
            GpGraphics Graphics = new GpGraphics();

            lastResult = GdiPlus.GdipCreateFromHDC2(hdc, hdevice, out Graphics);

            SetNativeGraphics(Graphics);
        }
예제 #4
0
        public GraphicsPlus(HDC hdc)
        {
            GpGraphics Graphics = new GpGraphics();

            lastResult = GdiPlus.GdipCreateFromHDC(hdc, out Graphics);

            SetNativeGraphics(Graphics);
        }
예제 #5
0
        public GraphicsPlus(Graphics g)
        {
            this.g = g;
            hdc = g.GetHdc();
            GpGraphics Graphics = new GpGraphics();

            lastResult = GdiPlus.GdipCreateFromHDC(hdc, out Graphics);

            SetNativeGraphics(Graphics);
        }
예제 #6
0
        public GraphicsPlus(ImagePlus image)
        {
            GpGraphics Graphics = new GpGraphics();

            if (image != null)
            {
                lastResult = GdiPlus.GdipGetImageGraphicsContext(image.nativeImage, out Graphics);
            }
            SetNativeGraphics(Graphics);
        }
예제 #7
0
        public GraphicsPlus(ImagePlus image)
        {
            GpGraphics Graphics = new GpGraphics();

            if (image != null)
            {
                lastResult = GdiPlus.GdipGetImageGraphicsContext(image.nativeImage, out Graphics);
            }
            SetNativeGraphics(Graphics);
        }
예제 #8
0
        public GraphicsPlus(Graphics g)
        {
            this.g = g;
            hdc    = g.GetHdc();
            GpGraphics Graphics = new GpGraphics();

            lastResult = GdiPlus.GdipCreateFromHDC(hdc, out Graphics);

            SetNativeGraphics(Graphics);
        }
예제 #9
0
        public GraphicsPlus(HWND hwnd, bool icm)
        {
            GpGraphics Graphics = new GpGraphics();

            if (icm)
            {
                lastResult = GdiPlus.GdipCreateFromHWNDICM(hwnd, out Graphics);
            }
            else
            {
                lastResult = GdiPlus.GdipCreateFromHWND(hwnd, out Graphics);
            }

            SetNativeGraphics(Graphics);
        }
예제 #10
0
        public GraphicsPlus(HWND hwnd, bool icm)
        {
            GpGraphics Graphics = new GpGraphics();

            if (icm)
            {
                lastResult = GdiPlus.GdipCreateFromHWNDICM(hwnd, out Graphics);
            }
            else
            {
                lastResult = GdiPlus.GdipCreateFromHWND(hwnd, out Graphics);
            }

            SetNativeGraphics(Graphics);
        }
예제 #11
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (g != null && hdc != null)
         {
             g.ReleaseHdc(hdc);
         }
     }
     if ((IntPtr)nativeGraphics != IntPtr.Zero)
     {
         GdiPlus.GdipDeleteGraphics(nativeGraphics);
         nativeGraphics = new GpGraphics();
     }
 }
예제 #12
0
 internal static extern GpStatus GdipCreateFromHWNDICM(HWND hwnd, out GpGraphics graphics);
예제 #13
0
 internal static extern GpStatus GdipCreateFromHDC(HDC hdc, out GpGraphics graphics);
예제 #14
0
파일: Paths.cs 프로젝트: windygu/haina
 internal static extern GpStatus GdipIsOutlineVisiblePathPoint(GpPath path, float x, float y, GpPen pen, GpGraphics graphics, out bool result);
예제 #15
0
 GdipDrawCurve3I(GpGraphics graphics, GpPen pen, Point[] points,
                 int count, int offset, int numberOfSegments, float tension);
예제 #16
0
 internal static extern GpStatus GdipResetWorldTransform(GpGraphics graphics);
예제 #17
0
 internal static extern GpStatus GdipGetTextContrast(GpGraphics graphics, out uint contrast);
예제 #18
0
 internal static extern GpStatus GdipGetPageUnit(GpGraphics graphics, out Unit unit);
예제 #19
0
 internal static extern GpStatus GdipGetDC(GpGraphics graphics, out HDC hdc);
예제 #20
0
 internal static extern GpStatus GdipFlush(GpGraphics graphics, FlushIntention intention);
예제 #21
0
 internal static extern GpStatus GdipGetCompositingMode(GpGraphics graphics, out CompositingMode compositingMode);
예제 #22
0
 GdipFillRectanglesI(GpGraphics graphics, GpBrush brush,
                     Rectangle[] rects, int count);
예제 #23
0
 internal static extern GpStatus GdipGetInterpolationMode(GpGraphics graphics, out InterpolationMode interpolationMode);
예제 #24
0
 GdipFillPolygon(GpGraphics graphics, GpSolidFill brush,
                 PointF[] points, int count, FillMode fillMode);
예제 #25
0
 internal static extern GpStatus GdipGetRenderingOrigin(GpGraphics graphics, out int x, out int y);
예제 #26
0
 GdipFillPolygon(GpGraphics graphics, GpTexture brush,
                 PointF[] points, int count, FillMode fillMode);
예제 #27
0
 internal static extern GpStatus GdipMultiplyWorldTransform(GpGraphics graphics, GpMatrix matrix, MatrixOrder order);
예제 #28
0
 GdipFillPolygonI(GpGraphics graphics, GpBrush brush,
                  Point[] points, int count, FillMode fillMode);
예제 #29
0
 internal static extern GpStatus GdipSaveGraphics(GpGraphics graphics, out GraphicsState state);
예제 #30
0
 GdipFillPolygon2(GpGraphics graphics, GpBrush brush,
                  PointF[] points, int count);
예제 #31
0
 GdipDrawCurve2I(GpGraphics graphics, GpPen pen, Point[] points,
                 int count, float tension);
예제 #32
0
 GdipFillPolygon2I(GpGraphics graphics, GpSolidFill brush,
                   Point[] points, int count);
예제 #33
0
파일: Paths.cs 프로젝트: windygu/haina
 internal static extern GpStatus GdipIsVisiblePathPointI(GpPath path, int x, int y, GpGraphics graphics, out bool result);
예제 #34
0
 GdipFillEllipse(GpGraphics graphics, GpBrush brush, float x, float y,
                 float width, float height);
예제 #35
0
 internal static extern GpStatus GdipTranslateWorldTransform(GpGraphics graphics, float dx, float dy, MatrixOrder order);
예제 #36
0
 GdipFillEllipseI(GpGraphics graphics, GpBrush brush, int x, int y,
                  int width, int height);
예제 #37
0
 internal static extern GpStatus GdipCreateFromHDC2(HDC hdc, IntPtr hDevice, out GpGraphics graphics);
예제 #38
0
 extern static internal GpStatus GdipFillPieI(GpGraphics graphics, GpBrush brush, int x, int y,
                                              int width, int height, float startAngle, float sweepAngle);
예제 #39
0
 internal static extern GpStatus GdipDeleteGraphics(GpGraphics graphics);
예제 #40
0
 extern static internal GpStatus GdipFillPath(GpGraphics graphics, GpBrush brush, GpPath path);
예제 #41
0
 internal static extern GpStatus GdipGetClipBoundsI(GpGraphics graphics, out Rectangle rect);
예제 #42
0
 extern static internal GpStatus GdipDrawArc(GpGraphics graphics, GpPen pen, float x, float y, float width, float height, float startAngle, float sweepAngle);
예제 #43
0
 internal static extern GpStatus GdipGetCompositingQuality(GpGraphics graphics, out CompositingQuality compositingQuality);
예제 #44
0
 extern static internal GpStatus GdipDrawBezier(GpGraphics graphics, GpPen pen, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4);
예제 #45
0
 internal static extern GpStatus GdipGetDpiY(GpGraphics graphics, out float dpi);
예제 #46
0
 extern static internal GpStatus GdipDrawBezierI(GpGraphics graphics, GpPen pen, int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4);
예제 #47
0
 internal static extern GpStatus GdipGetPageScale(GpGraphics graphics, out float scale);
예제 #48
0
 extern static internal GpStatus GdipDrawRectanglesI(GpGraphics graphics, GpPen pen, Rectangle[] rects, int count);
예제 #49
0
 internal static extern GpStatus GdipGetPixelOffsetMode(GpGraphics graphics, out PixelOffsetMode pixelOffsetMode);
예제 #50
0
 extern static internal GpStatus GdipDrawEllipse(GpGraphics graphics, GpPen pen, float x, float y, float width, float height);
예제 #51
0
 internal static extern GpStatus GdipGetSmoothingMode(GpGraphics graphics, out SmoothingMode smoothingMode);
예제 #52
0
 extern static internal GpStatus GdipDrawEllipseI(GpGraphics graphics, GpPen pen, int x, int y, int width, int height);
예제 #53
0
 internal static extern GpStatus GdipGetTextRenderingHint(GpGraphics graphics, out TextRenderingHint mode);
예제 #54
0
 extern static internal GpStatus GdipDrawPieI(GpGraphics graphics, GpPen pen, int x, int y, int width, int height, float startAngle, float sweepAngle);
예제 #55
0
 internal static extern GpStatus GdipReleaseDC(GpGraphics graphics, HDC hdc);
예제 #56
0
 extern static internal GpStatus GdipDrawPolygon(GpGraphics graphics, GpPen pen, PointF[] points, int count);
예제 #57
0
 internal static extern GpStatus GdipRestoreGraphics(GpGraphics graphics, GraphicsState state);
예제 #58
0
 extern static internal GpStatus GdipDrawPath(GpGraphics graphics, GpPen pen, GpPath path);
예제 #59
0
 internal static extern GpStatus GdipScaleWorldTransform(GpGraphics graphics, float sx, float sy, MatrixOrder order);
예제 #60
0
 extern static internal GpStatus GdipDrawCurveI(GpGraphics graphics, GpPen pen, Point[] points, int count);