Exemple #1
0
 private MagickRectangle(NativeMagickRectangle instance)
 {
     X      = instance.X;
     Y      = instance.Y;
     Width  = instance.Width;
     Height = instance.Height;
 }
 private MagickRectangle(NativeMagickRectangle instance)
 {
   X = instance.X;
   Y = instance.Y;
   Width = instance.Width;
   Height = instance.Height;
 }
    private NativeMagickRectangle CreateNativeInstance()
    {
      NativeMagickRectangle instance = new NativeMagickRectangle();
      instance.X = X;
      instance.Y = Y;
      instance.Width = Width;
      instance.Height = Height;

      return instance;
    }
Exemple #4
0
        private NativeMagickRectangle CreateNativeInstance()
        {
            NativeMagickRectangle instance = new NativeMagickRectangle();

            instance.X      = X;
            instance.Y      = Y;
            instance.Width  = Width;
            instance.Height = Height;

            return(instance);
        }
Exemple #5
0
        internal static MagickRectangle CreateInstance(INativeInstance nativeInstance)
        {
            NativeMagickRectangle instance = nativeInstance as NativeMagickRectangle;

            if (instance == null)
            {
                throw new InvalidOperationException();
            }

            return(new MagickRectangle(instance));
        }
Exemple #6
0
 internal static MagickRectangle CreateInstance(IntPtr instance)
 {
     if (instance == IntPtr.Zero)
     {
         return(null);
     }
     using (NativeMagickRectangle nativeInstance = new NativeMagickRectangle(instance))
     {
         return(new MagickRectangle(nativeInstance));
     }
 }
 internal static MagickRectangle CreateInstance(IntPtr instance)
 {
   if (instance == IntPtr.Zero)
     return null;
   using (NativeMagickRectangle nativeInstance = new NativeMagickRectangle(instance))
   {
     return new MagickRectangle(nativeInstance);
   }
 }
Exemple #8
0
 public static MagickRectangle?FromPageSize(string pageSize)
 => NativeMagickRectangle.FromPageSize(pageSize);