Method | Description | |
---|---|---|
ImgWriterPGM ( IFileInfo out_Renamed, BlkImgDataSrc imgSrc, int c ) : System |
Creates a new writer to the specified File object, to write data from the specified component. 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).
|
|
ImgWriterPGM ( System fname, BlkImgDataSrc imgSrc, int c ) : System |
Creates a new writer to the specified file, to write data from the specified component. 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).
|
|
ToString ( ) : System.String |
Returns a string of information about the object, more than 1 line long. The information string includes information from the underlying RandomAccessFile (its toString() method is called in turn).
|
|
close ( ) : void |
Closes the underlying file or netwrok connection to where the data is written. Any call to other methods of the class become illegal after a call to this one.
|
|
flush ( ) : void |
Writes all buffered data to the file or resource.
|
|
write ( ) : void |
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 anymore.
|
|
write ( int ulx, int uly, int w, int h ) : void |
Writes the data of the specified area to the file, coordinates are relative to the current tile of the source. Before writing, the coefficients are limited to the nominal range. This method may not be called concurrently from different threads. If the data returned from the BlkImgDataSrc source is progressive, then it is requested over and over until it is not progressive anymore.
|
Method | Description | |
---|---|---|
writeHeaderInfo ( ) : void |
Writes the header info of the PGM file : P5 width height 255
|
public ImgWriterPGM ( IFileInfo out_Renamed, BlkImgDataSrc imgSrc, int c ) : System | ||
out_Renamed | IFileInfo | |
imgSrc | BlkImgDataSrc | The source from where to get the image data to write. /// /// |
c | int | The index of the component from where to get the data. /// /// |
return | System |
public ImgWriterPGM ( System fname, BlkImgDataSrc imgSrc, int c ) : System | ||
fname | System | The name of the file where to write the data /// /// |
imgSrc | BlkImgDataSrc | The source from where to get the image data to write. /// /// |
c | int | The index of the component from where to get the data. /// /// |
return | System |
public write ( int ulx, int uly, int w, int h ) : void | ||
ulx | int | The horizontal coordinate of the upper-left corner of the /// area to write, relative to the current tile. /// /// |
uly | int | The vertical coordinate of the upper-left corner of the area /// to write, relative to the current tile. /// /// |
w | int | |
h | int | |
return | void |