Example #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);
        }
Example #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);
        }
Example #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);
        }
Example #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);
        }
Example #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);
        }
Example #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);
        }
Example #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);
 }
Example #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);
 }
Example #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);
 }
Example #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);
 }