/// <summary> Creates a new PGX file reader from the specified file name. /// /// </summary> /// <param name="inName">The input file name. /// /// </param> public ImgReaderPGX(System.String inName) : this(FileInfoFactory.New(inName)) { }
/// <summary> Constructor. Always needs a size for the buffer. /// /// </summary> /// <param name="name">The name of the file associated with the buffer /// /// </param> /// <param name="mode">"r" for read, "rw" or "rw+" for read and write mode /// ("rw+" opens the file for update whereas "rw" removes /// it before. So the 2 modes are different only if the /// file already exists). /// /// </param> /// <param name="bufferSize">The number of bytes to buffer /// /// </param> /// <exception cref="java.io.IOException">If an I/O error ocurred. /// /// </exception> protected internal BufferedRandomAccessFile(System.String name, System.String mode, int bufferSize) : this(FileInfoFactory.New(name), mode, bufferSize) { }
/// <summary> Creates a new writer to the specified file, to write data from the /// specified component. /// /// <p>The size of the image that is written to the file is the size of the /// component from which to get the data, specified by b, not the size of /// the source image (they differ if there is some sub-sampling).</p> /// /// <p>All header information is given by the BlkImgDataSrc source /// (component width, component height, bit-depth) and sign flag, which are /// provided to the constructor. The endianness is always big-endian (MSB /// first). /// /// </summary> /// <param name="fname">The name of the file where to write the data /// /// </param> /// <param name="imgSrc">The source from where to get the image data to write. /// /// </param> /// <param name="c">The index of the component from where to get the data. /// /// </param> /// <param name="isSigned">Whether the datas are signed or not (needed only when /// writing header). /// /// </param> /// <seealso cref="DataBlk"> /// /// </seealso> public ImgWriterPGX(System.String fname, BlkImgDataSrc imgSrc, int c, bool isSigned) : this(FileInfoFactory.New(fname), imgSrc, c, isSigned) { }
/// <summary> Creates a new writer to the specified file, to write data from the /// specified component. /// /// <p>The three components that will be written as R, G and B must be /// specified through the b1, b2 and b3 arguments.</p> /// /// </summary> /// <param name="fname">The name of the file where to write the data /// /// </param> /// <param name="imgSrc">The source from where to get the image data to write. /// /// </param> /// <param name="n1">The index of the first component from where to get the data, /// that will be written as the red channel. /// /// </param> /// <param name="n2">The index of the second component from where to get the data, /// that will be written as the green channel. /// /// </param> /// <param name="n3">The index of the third component from where to get the data, /// that will be written as the green channel. /// /// </param> /// <seealso cref="DataBlk"> /// /// </seealso> public ImgWriterPPM(System.String fname, BlkImgDataSrc imgSrc, int n1, int n2, int n3) : this(FileInfoFactory.New(fname), imgSrc, n1, n2, n3) { }
/// <summary> Creates a new writer to the specified file, to write data from the /// specified component. /// /// <P>The size of the image that is written to the file is the size of the /// component from which to get the data, specified by b, not the size of /// the source image (they differ if there is some sub-sampling). /// /// </summary> /// <param name="fname">The name of the file where to write the data /// /// </param> /// <param name="imgSrc">The source from where to get the image data to write. /// /// </param> /// <param name="c">The index of the component from where to get the data. /// /// </param> public ImgWriterPGM(System.String fname, BlkImgDataSrc imgSrc, int c) : this(FileInfoFactory.New(fname), imgSrc, c) { }