public virtual ushort[] ToShortArray(IMagickGeometry geometry, PixelMapping mapping) => ToShortArray(geometry, mapping.ToString());
public ushort[] ToShortArray(PixelMapping mapping) => ToShortArray(0, 0, Image.Width, Image.Height, mapping.ToString());
public byte[] ToByteArray(PixelMapping mapping) => ToByteArray(0, 0, Image.Width, Image.Height, mapping.ToString());
public virtual ushort[] ToShortArray(int x, int y, int width, int height, PixelMapping mapping) => ToShortArray(x, y, width, height, mapping.ToString());
public virtual byte[] ToByteArray(IMagickGeometry geometry, PixelMapping mapping) => ToByteArray(geometry.X, geometry.Y, geometry.Width, geometry.Height, mapping.ToString());
public virtual byte[] ToByteArray(int x, int y, int width, int height, PixelMapping mapping) => ToByteArray(x, y, width, height, mapping.ToString());
public override byte[]? ToByteArray(IMagickGeometry geometry, PixelMapping mapping) { Throw.IfNull(nameof(geometry), geometry); return(base.ToByteArray(geometry, mapping.ToString())); }
public virtual ushort[] ToShortArray(MagickGeometry geometry, PixelMapping mapping) { return(ToShortArray(geometry, mapping.ToString())); }
/// <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()) { }