Esempio n. 1
0
        /// <summary>
        /// Write a single RGB image with default TIFF info. May throw WriteFileException.
        /// </summary>
        /// <param name="data">Row-major image data</param>
        /// <param name="width">Image width</param>
        /// <param name="height">Image height</param>
        public virtual void writeSingleRGBImage(byte[][] data, int width, int height)
        {
            TiffInfoCollection info = new TiffInfoCollection();

            info.setImageSize((uint)width, (uint)height);
            writeSingleRGBImage(data, info);
        }
Esempio n. 2
0
        /// <summary>
        /// Write a single palette-color image with default TIFF info. May throw WriteFileException.
        /// </summary>
        /// <param name="data">Row-major image data</param>
        /// <param name="colormap">Colormap</param>
        /// <param name="width">Image width</param>
        /// <param name="height">Image height</param>
        public virtual void writeSinglePaletteColorImage(Array data, byte[][] colormap, int width, int height)
        {
            TiffInfoCollection info = new TiffInfoCollection();

            info.setImageSize((uint)width, (uint)height);
            writeSinglePaletteColorImage(data, colormap, info);
        }
Esempio n. 3
0
        /// <summary>
        /// Write a single grayscle image with default TIFF info. May throw WriteFileException.
        /// </summary>
        /// <param name="data">Row-major image data</param>
        /// <param name="width">Image width</param>
        /// <param name="height">Image height</param>
        public virtual void writeSingleGrayscaleImage(Array data, int width, int height)
        {
            TiffInfoCollection info = new TiffInfoCollection();

            info.setImageSize((uint)width, (uint)height);
            writeSingleGrayscaleImage(data, info);
        }
Esempio n. 4
0
 /// <summary>
 /// Write a single grayscle image with given TIFF info. May throw WriteFileException.
 /// </summary>
 /// <param name="data">Row-major image data</param>
 /// <param name="width">Image width</param>
 /// <param name="height">Image height</param>
 /// <param name="info">Tiff info collection</param>
 public virtual void writeSingleGrayscaleImage(Array data, int width, int height, TiffInfoCollection info)
 {
     if (info == null)
     {
         throw new WriteFileException("Info collection is NULL");
     }
     info.setImageSize((uint)width, (uint)height);
     writeSingleGrayscaleImage(data, info);
 }