Exemplo n.º 1
0
 public GpRectF(GpPointF location,
                GpSizeF size)
 {
     X      = location.X;
     Y      = location.Y;
     Width  = size.Width;
     Height = size.Height;
 }
Exemplo n.º 2
0
Arquivo: Image.cs Projeto: mitice/foo
        //    public virtual ImagePlus Clone()
        //    {
        //    }

        //GpStatus Save(string filename,
        //            ref Guid clsidEncoder,
        //            EncoderParameters encoderParams )
        //{
        //}
        //GpStatus Save(IStream stream,
        //            ref Guid clsidEncoder,
        //            EncoderParameters encoderParams )
        //{
        //}

        //    GpStatus SaveAdd(EncoderParameters encoderParams)
        //    {
        //    }
        //GpStatus SaveAdd(ImagePlus newImage,
        //               EncoderParameters encoderParams)
        //{
        //}

        //ImageType GetType() {}
        public GpStatus GetPhysicalDimension(out GpSizeF size)
        {
            float    width, height;
            GpStatus status;

            status = SetStatus(NativeMethods.GdipGetImageDimension(nativeImage,
                                                                   out width, out height));

            size.Width  = width;
            size.Height = height;

            return(status);
        }
Exemplo n.º 3
0
        //    public virtual ImagePlus Clone()
        //    {
        //    }

        //GpStatus Save(string filename,
        //            ref Guid clsidEncoder,
        //            EncoderParameters encoderParams )
        //{
        //}
        //GpStatus Save(IStream stream,
        //            ref Guid clsidEncoder,
        //            EncoderParameters encoderParams )
        //{
        //}

        //    GpStatus SaveAdd(EncoderParameters encoderParams)
        //    {
        //    }
        //GpStatus SaveAdd(ImagePlus newImage,
        //               EncoderParameters encoderParams)
        //{
        //}

        //ImageType GetType() {}
        public GpStatus GetPhysicalDimension(out GpSizeF size)
        {

            float width, height;
            GpStatus status;

            status = SetStatus(NativeMethods.GdipGetImageDimension(nativeImage,
                                                                 out width, out height));

            size.Width = width;
            size.Height = height;

            return status;
        }
Exemplo n.º 4
0
 public bool Equals(GpSizeF sz)
 {
     return (Width == sz.Width) && (Height == sz.Height);
 }
Exemplo n.º 5
0
 public void GetGpSize(out GpSizeF size)
 {
     size.Width = Width;
     size.Height = Height;
 }
Exemplo n.º 6
0
 public GpRectF(GpPointF location,
       GpSizeF size)
 {
     X = location.X;
     Y = location.Y;
     Width = size.Width;
     Height = size.Height;
 }
Exemplo n.º 7
0
 public GpSizeF(GpSizeF size)
 {
     Width = size.Width;
     Height = size.Height;
 }
Exemplo n.º 8
0
 public GpPointF(GpSizeF size)
 {
     X = size.Width;
     Y = size.Height;
 }
Exemplo n.º 9
0
 public bool Equals(GpSizeF sz)
 {
     return((Width == sz.Width) && (Height == sz.Height));
 }
Exemplo n.º 10
0
 public void GetGpSize(out GpSizeF size)
 {
     size.Width  = Width;
     size.Height = Height;
 }
Exemplo n.º 11
0
 public GpSizeF(GpSizeF size)
 {
     Width  = size.Width;
     Height = size.Height;
 }
Exemplo n.º 12
0
 public GpPointF(GpSizeF size)
 {
     X = size.Width;
     Y = size.Height;
 }