18 PNMReader(
PNMFileType *type, std::istream *file,
bool owns_file) :
20 _owns_file(owns_file),
35 _read_x_size = x_size;
36 _read_y_size = y_size;
37 _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.