Class that contains setting for pixel storage.
 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;
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 internal ScriptReadEventArgs(string id, MagickReadSettings readSettings, PixelStorageSettings pixelStorageSettings)
 {
     Id                   = id;
     ReadSettings         = readSettings;
     PixelStorageSettings = pixelStorageSettings;
 }
Esempio n. 4
0
 /// <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));
 }
Esempio n. 5
0
 /// <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));
 }
Esempio n. 6
0
 /// <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));
 }
Esempio n. 7
0
 /// <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));
 }