21 PNMReader(
PNMFileType *type, istream *file,
bool owns_file) :
23 _owns_file(owns_file),
42 _read_x_size = x_size;
43 _read_y_size = y_size;
44 _has_read_size =
true;
void set_read_size(int x_size, int y_size)
Instructs the reader to attempt to scale the image to the indicated size while reading it...
This is the base class of a family of classes that represent particular image file types that PNMImag...
bool is_valid() const
Returns true if the PNMReader can be used to read data, false if something is wrong.
PNMFileType * get_type() const
Returns a pointer to the PNMFileType object that created this PNMReader.