CSJ2K.j2k.image.output.ImgWriterPPM.write C# (CSharp) Method

write() public method

Writes the source's current tile to the output. The requests of data issued to the source BlkImgDataSrc object are done by strips, in order to reduce memory usage.

If the data returned from the BlkImgDataSrc source is progressive, then it is requested over and over until it is not progressive any more.

If an I/O error occurs. /// ///
public write ( ) : void
return void
        public override void write()
        {
            int i;
            int tIdx = src.TileIdx;
            int tw = src.getTileCompWidth(tIdx, 0); // Tile width
            int th = src.getTileCompHeight(tIdx, 0); // Tile height
            // Write in strips
            for (i = 0; i < th; i += DEF_STRIP_HEIGHT)
            {
                write(0, i, tw, ((th - i) < DEF_STRIP_HEIGHT)?th - i:DEF_STRIP_HEIGHT);
            }
        }

Same methods

ImgWriterPPM::write ( int ulx, int uly, int w, int h ) : void