Esempio n. 1
0
        public void DrawImage(ImagePlus image, RectangleF rect)
        {
            Unit       unit;
            RectangleF bounds = image.GetBounds(out unit);

            DrawImage(image, rect, 0, 0, bounds.Width, bounds.Height, unit, null);
        }
Esempio n. 2
0
        public void DrawImage(ImagePlus image, int x, int y)
        {
            Unit       unit;
            RectangleF bounds = image.GetBounds(out unit);

            bounds.X += x;
            bounds.Y += y;
            DrawImage(image, bounds, 0, 0, bounds.Width, bounds.Height, unit, null);
        }
Esempio n. 3
0
        public void DrawImage(ImagePlus image,
                              float x,
                              float y,
                              float width,
                              float height)
        {
            Unit       unit;
            RectangleF bounds = image.GetBounds(out unit);

            DrawImage(image, new RectangleF(x, y, width, height), 0, 0, bounds.Width, bounds.Height, unit, null);
        }
Esempio n. 4
0
        public void DrawImage(ImagePlus image,
                              float x,
                              float y,
                              float srcx,
                              float srcy,
                              float srcwidth,
                              float srcheight,
                              Unit srcUnit)
        {
            Unit       unit;
            RectangleF bounds = image.GetBounds(out unit);

            DrawImage(image, new RectangleF(x, y, srcwidth, srcheight), srcx, srcy, srcwidth, srcheight, srcUnit, null);
        }
Esempio n. 5
0
        public TextureBrushPlus(ImagePlus image,
                                WrapMode wrapMode)
        {
            GpTexture texture;

            Unit       unit;
            RectangleF rc = image.GetBounds(out unit);

            lastResult = GdiPlus.GdipCreateTextureIA(
                image.nativeImage,
                new GpImageAttributes(),
                rc.X,
                rc.Y,
                rc.Width,
                rc.Height,
                out texture);

            SetNativeBrush(texture);
        }
Esempio n. 6
0
        public TextureBrushPlus(ImagePlus image,
            WrapMode wrapMode)
        {
            GpTexture texture;

            Unit unit;
            RectangleF rc = image.GetBounds(out unit);
            lastResult = GdiPlus.GdipCreateTextureIA(
                                                      image.nativeImage,
                                                      new GpImageAttributes(),
                                                      rc.X,
                                                      rc.Y,
                                                      rc.Width,
                                                      rc.Height,
                                                      out texture);

            SetNativeBrush(texture);
        }
Esempio n. 7
0
 public void DrawImage(ImagePlus image,
                  float x,
                  float y,
                  float srcx,
                  float srcy,
                  float srcwidth,
                  float srcheight,
                  Unit srcUnit)
 {
     Unit unit;
     RectangleF bounds = image.GetBounds(out unit);
     DrawImage(image, new RectangleF(x, y, srcwidth, srcheight), srcx, srcy, srcwidth, srcheight, srcUnit, null);
 }
Esempio n. 8
0
 public void DrawImage(ImagePlus image, int x,   int y)
 {
     Unit unit;
     RectangleF bounds = image.GetBounds(out unit);
     bounds.X += x;
     bounds.Y += y;
     DrawImage(image, bounds, 0, 0, bounds.Width, bounds.Height, unit, null);
 }
Esempio n. 9
0
 public void DrawImage(ImagePlus image,
                  float x,
                  float y,
                  float width,
                  float height)
 {
     Unit unit;
     RectangleF bounds = image.GetBounds(out unit);
     DrawImage(image, new RectangleF(x, y, width, height), 0, 0, bounds.Width, bounds.Height, unit, null);
 }
Esempio n. 10
0
 public void DrawImage(ImagePlus image, RectangleF rect)
 {
     Unit unit;
     RectangleF bounds = image.GetBounds(out unit);
      DrawImage(image, rect, 0, 0, bounds.Width, bounds.Height, unit, null);
 }