示例#1
0
        //public void DrawImage(ImagePlus image,
        //                  PointF[] destPoints,
        //                 float srcx,
        //                 float srcy,
        //                 float srcwidth,
        //                 float srcheight,
        //                 Unit srcUnit,
        //                  ImageAttributesPlus imageAttributes)
        //{
        //    SetStatus(GdiPlus.GdipDrawImagePointsRect(nativeGraphics,
        //                                                         image != null ? image.nativeImage
        //                                                               : null,
        //                                                         destPoints, destPoints.Length,
        //                                                         srcx, srcy,
        //                                                         srcwidth,
        //                                                         srcheight,
        //                                                         srcUnit,
        //                                                         imageAttributes != null
        //                                                          ? imageAttributes.nativeImageAttr
        //                                                          : new GpImageAttributes(),
        //                                                         IntPtr.Zero,
        //                                                         IntPtr.Zero));
        //}

        //public void DrawImage(ImagePlus image,
        //                 int x,
        //                 int y,
        //                 int srcx,
        //                 int srcy,
        //                 int srcwidth,
        //                 int srcheight,
        //                 Unit srcUnit)
        //{
        //    SetStatus(GdiPlus.GdipDrawImagePointRectI(nativeGraphics,
        //                                                         image != null ? image.nativeImage
        //                                                               : null,
        //                                                         x,
        //                                                         y,
        //                                                         srcx,
        //                                                         srcy,
        //                                                         srcwidth,
        //                                                         srcheight,
        //                                                         srcUnit));
        //}

        //public void DrawImage(ImagePlus image,
        //                  Rectangle destRect,
        //                 int srcx,
        //                 int srcy,
        //                 int srcwidth,
        //                 int srcheight,
        //                 Unit srcUnit,
        //                  ImageAttributesPlus imageAttributes)
        //{
        //    SetStatus(GdiPlus.GdipDrawImageRectRectI(nativeGraphics,
        //                                                        image != null ? image.nativeImage
        //                                                              : null,
        //                                                        destRect.X,
        //                                                        destRect.Y,
        //                                                        destRect.Width,
        //                                                        destRect.Height,
        //                                                        srcx,
        //                                                        srcy,
        //                                                        srcwidth,
        //                                                        srcheight,
        //                                                        srcUnit,
        //                                                        imageAttributes != null
        //                                                        ? imageAttributes.nativeImageAttr
        //                                                        : new GpImageAttributes(),
        //                                                        IntPtr.Zero,
        //                                                        IntPtr.Zero));
        //}

        public void DrawImage(ImagePlus image,
                              Point[] destPoints,
                              int srcx,
                              int srcy,
                              int srcwidth,
                              int srcheight,
                              Unit srcUnit,
                              ImageAttributesPlus imageAttributes)
        {
            SetStatus(GdiPlus.GdipDrawImagePointsRectI(nativeGraphics,
                                                       image != null ? image.nativeImage
                                                                        : null,
                                                       destPoints,
                                                       destPoints.Length,
                                                       srcx,
                                                       srcy,
                                                       srcwidth,
                                                       srcheight,
                                                       srcUnit,
                                                       imageAttributes != null
                                                                   ? imageAttributes.nativeImageAttr
                                                                   : new GpImageAttributes(),
                                                       IntPtr.Zero,
                                                       IntPtr.Zero));
        }
示例#2
0
 public void DrawImage(ImagePlus image,
                       RectangleF destRect,
                       float srcx,
                       float srcy,
                       float srcwidth,
                       float srcheight,
                       Unit srcUnit,
                       ImageAttributesPlus imageAttributes)
 {
     SetStatus(GdiPlus.GdipDrawImageRectRect(nativeGraphics,
                                             image != null ? image.nativeImage
                                                              : null,
                                             destRect.X,
                                             destRect.Y,
                                             destRect.Width,
                                             destRect.Height,
                                             srcx, srcy,
                                             srcwidth, srcheight,
                                             srcUnit,
                                             imageAttributes != null
                                                         ? imageAttributes.nativeImageAttr
                                                         : new GpImageAttributes(),
                                             IntPtr.Zero,
                                             IntPtr.Zero));
 }
示例#3
0
        TextureBrushPlus(ImagePlus image,
                         Rectangle dstRect,
                         ImageAttributesPlus imageAttributes)
        {
            GpTexture texture;

            lastResult = GdiPlus.GdipCreateTextureIAI(
                image.nativeImage,
                (imageAttributes != null) ? imageAttributes.nativeImageAttr : new GpImageAttributes(),
                dstRect.X,
                dstRect.Y,
                dstRect.Width,
                dstRect.Height,
                out texture
                );

            SetNativeBrush(texture);
        }
示例#4
0
        TextureBrushPlus(ImagePlus image,
            Rectangle dstRect,
            ImageAttributesPlus imageAttributes)
        {
            GpTexture texture;

            lastResult = GdiPlus.GdipCreateTextureIAI(
                image.nativeImage,
                (imageAttributes != null) ? imageAttributes.nativeImageAttr : new GpImageAttributes(),
                dstRect.X,
                dstRect.Y,
                dstRect.Width,
                dstRect.Height,
                out texture
            );

            SetNativeBrush(texture);
        }
示例#5
0
 //public void DrawImage(ImagePlus image,
 //                  PointF[] destPoints,
 //                 float srcx,
 //                 float srcy,
 //                 float srcwidth,
 //                 float srcheight,
 //                 Unit srcUnit,
 //                  ImageAttributesPlus imageAttributes)
 //{
 //    SetStatus(GdiPlus.GdipDrawImagePointsRect(nativeGraphics,
 //                                                         image != null ? image.nativeImage
 //                                                               : null,
 //                                                         destPoints, destPoints.Length,
 //                                                         srcx, srcy,
 //                                                         srcwidth,
 //                                                         srcheight,
 //                                                         srcUnit,
 //                                                         imageAttributes != null
 //                                                          ? imageAttributes.nativeImageAttr
 //                                                          : new GpImageAttributes(),
 //                                                         IntPtr.Zero,
 //                                                         IntPtr.Zero));
 //}
 //public void DrawImage(ImagePlus image,
 //                 int x,
 //                 int y,
 //                 int srcx,
 //                 int srcy,
 //                 int srcwidth,
 //                 int srcheight,
 //                 Unit srcUnit)
 //{
 //    SetStatus(GdiPlus.GdipDrawImagePointRectI(nativeGraphics,
 //                                                         image != null ? image.nativeImage
 //                                                               : null,
 //                                                         x,
 //                                                         y,
 //                                                         srcx,
 //                                                         srcy,
 //                                                         srcwidth,
 //                                                         srcheight,
 //                                                         srcUnit));
 //}
 //public void DrawImage(ImagePlus image,
 //                  Rectangle destRect,
 //                 int srcx,
 //                 int srcy,
 //                 int srcwidth,
 //                 int srcheight,
 //                 Unit srcUnit,
 //                  ImageAttributesPlus imageAttributes)
 //{
 //    SetStatus(GdiPlus.GdipDrawImageRectRectI(nativeGraphics,
 //                                                        image != null ? image.nativeImage
 //                                                              : null,
 //                                                        destRect.X,
 //                                                        destRect.Y,
 //                                                        destRect.Width,
 //                                                        destRect.Height,
 //                                                        srcx,
 //                                                        srcy,
 //                                                        srcwidth,
 //                                                        srcheight,
 //                                                        srcUnit,
 //                                                        imageAttributes != null
 //                                                        ? imageAttributes.nativeImageAttr
 //                                                        : new GpImageAttributes(),
 //                                                        IntPtr.Zero,
 //                                                        IntPtr.Zero));
 //}
 public void DrawImage(ImagePlus image,
                   Point[] destPoints,
                  int srcx,
                  int srcy,
                  int srcwidth,
                  int srcheight,
                  Unit srcUnit,
                   ImageAttributesPlus imageAttributes)
 {
     SetStatus(GdiPlus.GdipDrawImagePointsRectI(nativeGraphics,
                                                           image != null ? image.nativeImage
                                                                 : null,
                                                           destPoints,
                                                           destPoints.Length,
                                                           srcx,
                                                           srcy,
                                                           srcwidth,
                                                           srcheight,
                                                           srcUnit,
                                                           imageAttributes != null
                                                            ? imageAttributes.nativeImageAttr
                                                            : new GpImageAttributes(),
                                                           IntPtr.Zero,
                                                           IntPtr.Zero));
 }
示例#6
0
 public void DrawImage(ImagePlus image,
                   RectangleF destRect,
                  float srcx,
                  float srcy,
                  float srcwidth,
                  float srcheight,
                  Unit srcUnit,
                   ImageAttributesPlus imageAttributes)
 {
     SetStatus(GdiPlus.GdipDrawImageRectRect(nativeGraphics,
                                                        image != null ? image.nativeImage
                                                              : null,
                                                        destRect.X,
                                                        destRect.Y,
                                                        destRect.Width,
                                                        destRect.Height,
                                                        srcx, srcy,
                                                        srcwidth, srcheight,
                                                        srcUnit,
                                                        imageAttributes != null
                                                         ? imageAttributes.nativeImageAttr
                                                         : new GpImageAttributes(),
                                                        IntPtr.Zero,
                                                        IntPtr.Zero));
 }