コード例 #1
0
ファイル: GraphicsPlus.cs プロジェクト: intille/mitessoftware
        public GraphicsPlus(HDC hdc)
        {
            GpGraphics Graphics = new GpGraphics();

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

            SetNativeGraphics(Graphics);
        }
コード例 #2
0
 public static extern GpStatus GdipDrawString(
     GpGraphics graphics,
     string text,
     INT length,
     GpFont font,
     ref RectF layoutRect,
     GpStringFormat stringFormat,
     GpBrush brush
     );
コード例 #3
0
ファイル: GraphicsPlus.cs プロジェクト: intille/mitessoftware
        public GraphicsPlus(HDC hdc,
                 HANDLE hdevice)
        {
            GpGraphics Graphics = new GpGraphics();

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

            SetNativeGraphics(Graphics);
        }
コード例 #4
0
ファイル: GraphicsPlus.cs プロジェクト: intille/mitessoftware
        public GraphicsPlus(ImagePlus image)
        {
            GpGraphics Graphics = new GpGraphics();

            if (image != null)
            {
                lastResult = NativeMethods.GdipGetImageGraphicsContext(
                                                                    image.nativeImage, out Graphics);
            }
            SetNativeGraphics(Graphics);
        }
コード例 #5
0
ファイル: GraphicsPlus.cs プロジェクト: intille/mitessoftware
        public GraphicsPlus(HWND hwnd,
                 bool icm)
        {
            GpGraphics Graphics = new GpGraphics();

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

            SetNativeGraphics(Graphics);
        }
コード例 #6
0
ファイル: Paths.cs プロジェクト: intille/mitessoftware
GdipIsVisiblePathPointI(GpPath  path, int x, int y,
                        GpGraphics graphics, out bool result);
コード例 #7
0
ファイル: GraphicsPlus.cs プロジェクト: misiek/foo
 protected GraphicsPlus(GpGraphics Graphics)
 {
     lastResult = GpStatus.Ok;
     SetNativeGraphics(Graphics);
 }
コード例 #8
0
ファイル: GraphicsPlus.cs プロジェクト: misiek/foo
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
     }
     // free native resources if there are any.
     if ((IntPtr)nativeGraphics != IntPtr.Zero)
     {
         NativeMethods.GdipDeleteGraphics(nativeGraphics);
         nativeGraphics = new GpGraphics();
     }
 }
コード例 #9
0
ファイル: Drawing.cs プロジェクト: intille/mitessoftware
GdipDrawPie(GpGraphics graphics, GpPen pen, float x, float y,
      float width, float height, float startAngle,
float sweepAngle);
コード例 #10
0
ファイル: Drawing.cs プロジェクト: intille/mitessoftware
GdipDrawEllipse(GpGraphics graphics, GpPen pen, float x, float y,
          float width, float height);
コード例 #11
0
ファイル: Drawing.cs プロジェクト: intille/mitessoftware
GdipDrawRectangleI(GpGraphics graphics, GpPen pen, int x, int y,
       int width, int height);
コード例 #12
0
ファイル: Drawing.cs プロジェクト: intille/mitessoftware
GdipDrawBeziersI(GpGraphics graphics, GpPen pen, GpPoint[] points,
          int count);
コード例 #13
0
ファイル: Drawing.cs プロジェクト: intille/mitessoftware
GdipDrawBezier(GpGraphics graphics, GpPen pen, float x1, float y1,
         float x2, float y2, float x3, float y3, float x4, float y4);
コード例 #14
0
 public static extern GpStatus GdipFillRectangleI(GpGraphics graphics, GpBrush brush, INT x, INT y, INT width, INT height);
コード例 #15
0
 public static extern GpStatus GdipDeleteGraphics(GpGraphics graphics);
コード例 #16
0
 public static extern GpStatus GdipCreateFromHWND(HWND hwnd, out GpGraphics graphics);
コード例 #17
0
 public static extern GpStatus GdipCreateFromHDC(HDC hdc, out GpGraphics graphics);
コード例 #18
0
ファイル: Drawing.cs プロジェクト: intille/mitessoftware
GdipFillRegion(GpGraphics graphics, GpBrush brush,
         GpRegion region);
コード例 #19
0
ファイル: Drawing.cs プロジェクト: intille/mitessoftware
 GdipFillPolygon2I(GpGraphics graphics, GpSolidFill brush,
 GpPoint[] points, int count);
コード例 #20
0
ファイル: Drawing.cs プロジェクト: intille/mitessoftware
GdipDrawBezierI(GpGraphics graphics, GpPen pen, int x1, int y1,
         int x2, int y2, int x3, int y3, int x4, int y4);
コード例 #21
0
ファイル: Drawing.cs プロジェクト: intille/mitessoftware
 GdipFillEllipse(GpGraphics graphics, GpBrush brush, float x, float y,
                 float width, float height);
コード例 #22
0
ファイル: Drawing.cs プロジェクト: intille/mitessoftware
GdipDrawRectangle(GpGraphics graphics, GpPen pen, float x, float y,
       float width, float height);
コード例 #23
0
ファイル: Drawing.cs プロジェクト: intille/mitessoftware
GdipFillEllipseI(GpGraphics graphics, GpBrush brush, int x, int y,
  int width, int height);
コード例 #24
0
ファイル: Drawing.cs プロジェクト: intille/mitessoftware
GdipDrawRectanglesI(GpGraphics graphics, GpPen pen, GpRect[] rects,
        int count);
コード例 #25
0
ファイル: Drawing.cs プロジェクト: intille/mitessoftware
GdipFillPie(GpGraphics graphics, GpBrush brush, float x, float y,
float width, float height, float startAngle, float sweepAngle);
コード例 #26
0
ファイル: Drawing.cs プロジェクト: intille/mitessoftware
GdipDrawEllipseI(GpGraphics graphics, GpPen pen, int x, int y,
          int width, int height);
コード例 #27
0
ファイル: Drawing.cs プロジェクト: intille/mitessoftware
GdipFillPieI(GpGraphics graphics, GpBrush brush, int x, int y,
int width, int height, float startAngle, float sweepAngle);
コード例 #28
0
ファイル: Drawing.cs プロジェクト: intille/mitessoftware
GdipDrawPieI(GpGraphics graphics, GpPen pen, int x, int y,
      int width, int height, float startAngle, float sweepAngle);
コード例 #29
0
ファイル: Drawing.cs プロジェクト: intille/mitessoftware
GdipFillPath(GpGraphics graphics, GpBrush brush, GpPath path);
コード例 #30
0
ファイル: GraphicsPlus.cs プロジェクト: misiek/foo
 protected void SetNativeGraphics(GpGraphics Graphics)
 {
     this.nativeGraphics = Graphics;
 }
コード例 #31
0
ファイル: Drawing.cs プロジェクト: intille/mitessoftware
GdipFillClosedCurveI(GpGraphics graphics, GpBrush brush,
                GpPoint[] points, int count);
コード例 #32
0
ファイル: Paths.cs プロジェクト: intille/mitessoftware
GdipIsVisiblePathPoint(GpPath  path, float x, float y,
                       GpGraphics graphics, out bool result);
コード例 #33
0
ファイル: Drawing.cs プロジェクト: intille/mitessoftware
GdipDrawLinesI(GpGraphics graphics, GpPen pen, GpPoint[] points,
        int count);
コード例 #34
0
ファイル: Paths.cs プロジェクト: intille/mitessoftware
GdipIsOutlineVisiblePathPointI(GpPath  path, int x, int y, GpPen pen,
                               GpGraphics graphics, out bool result);
コード例 #35
0
ファイル: Drawing.cs プロジェクト: intille/mitessoftware
GdipFillClosedCurve2I(GpGraphics graphics, GpBrush brush,
                GpPoint[] points, int count,
               float tension, FillMode fillMode);