private PixelStorageSettings CreatePixelStorageSettings(XmlElement element) { if (element == null) return null; PixelStorageSettings result = new PixelStorageSettings(); result.Mapping = Variables.GetValue<String>(element, "mapping"); result.StorageType = Variables.GetValue<StorageType>(element, "storageType"); return result; }
private PixelStorageSettings CreatePixelStorageSettings(XmlElement element) { if (element == null) { return(null); } PixelStorageSettings result = new PixelStorageSettings(); result.Mapping = GetValue <String>(element, "mapping"); result.StorageType = GetValue <StorageType>(element, "storageType"); return(result); }
internal ScriptReadEventArgs(string id, MagickReadSettings readSettings, PixelStorageSettings pixelStorageSettings) { Id = id; ReadSettings = readSettings; PixelStorageSettings = pixelStorageSettings; }
/// <summary> /// Initializes a new instance that implements <see cref="IMagickImage"/>. /// </summary> /// <param name="fileName">The fully qualified name of the image file, or the relative image file name.</param> /// <param name="pixelStorageSettings">The pixel storage settings to use when reading the image.</param> /// <returns>A new <see cref="IMagickImage"/> instance.</returns> /// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception> public IMagickImage CreateImage(string fileName, PixelStorageSettings pixelStorageSettings) { return(new MagickImage(fileName, pixelStorageSettings)); }
/// <summary> /// Initializes a new instance that implements <see cref="IMagickImage"/>. /// </summary> /// <param name="stream">The stream to read the image data from.</param> /// <param name="pixelStorageSettings">The pixel storage settings to use when reading the image.</param> /// <returns>A new <see cref="IMagickImage"/> instance.</returns> /// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception> public IMagickImage CreateImage(Stream stream, PixelStorageSettings pixelStorageSettings) { return(new MagickImage(stream, pixelStorageSettings)); }
/// <summary> /// Initializes a new instance that implements <see cref="IMagickImage"/>. /// </summary> /// <param name="file">The file to read the image from.</param> /// <param name="pixelStorageSettings">The pixel storage settings to use when reading the image.</param> /// <returns>A new <see cref="IMagickImage"/> instance.</returns> /// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception> public IMagickImage CreateImage(FileInfo file, PixelStorageSettings pixelStorageSettings) { return(new MagickImage(file, pixelStorageSettings)); }
/// <summary> /// Initializes a new instance that implements <see cref="IMagickImage"/>. /// </summary> /// <param name="data">The byte array to read the image data from.</param> /// <param name="pixelStorageSettings">The pixel storage settings to use when reading the image.</param> /// <returns>A new <see cref="IMagickImage"/> instance.</returns> /// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception> public IMagickImage CreateImage(byte[] data, PixelStorageSettings pixelStorageSettings) { return(new MagickImage(data, pixelStorageSettings)); }