예제 #1
0
 public virtual ushort[] ToShortArray(IMagickGeometry geometry, PixelMapping mapping)
 => ToShortArray(geometry, mapping.ToString());
예제 #2
0
 public ushort[] ToShortArray(PixelMapping mapping)
 => ToShortArray(0, 0, Image.Width, Image.Height, mapping.ToString());
예제 #3
0
 public byte[] ToByteArray(PixelMapping mapping)
 => ToByteArray(0, 0, Image.Width, Image.Height, mapping.ToString());
예제 #4
0
 public virtual ushort[] ToShortArray(int x, int y, int width, int height, PixelMapping mapping)
 => ToShortArray(x, y, width, height, mapping.ToString());
예제 #5
0
 public virtual byte[] ToByteArray(IMagickGeometry geometry, PixelMapping mapping)
 => ToByteArray(geometry.X, geometry.Y, geometry.Width, geometry.Height, mapping.ToString());
예제 #6
0
 public virtual byte[] ToByteArray(int x, int y, int width, int height, PixelMapping mapping)
 => ToByteArray(x, y, width, height, mapping.ToString());
예제 #7
0
        public override byte[]? ToByteArray(IMagickGeometry geometry, PixelMapping mapping)
        {
            Throw.IfNull(nameof(geometry), geometry);

            return(base.ToByteArray(geometry, mapping.ToString()));
        }
예제 #8
0
 public virtual ushort[] ToShortArray(MagickGeometry geometry, PixelMapping mapping)
 {
     return(ToShortArray(geometry, mapping.ToString()));
 }
예제 #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PixelReadSettings"/> class.
 /// </summary>
 /// <param name="width">The width.</param>
 /// <param name="height">The height.</param>
 /// <param name="storageType">The pixel storage type.</param>
 /// <param name="mapping">The mapping of the pixels.</param>
 public PixelReadSettings(int width, int height, StorageType storageType, PixelMapping mapping)
     : this(width, height, storageType, mapping.ToString())
 {
 }