13 #ifndef IMAGE_SOLID_HPP
14 #define IMAGE_SOLID_HPP
26 solid(
int height,
int width,
double value)
27 : height(height), width(width), value(value) { }
29 virtual double get(
int i,
int j,
int k)
const
38 virtual void doc(std::ostream& out)
const
40 out <<
"solid " << height <<
" " << width <<
" " << value;
virtual int get_depth() const
Return the depth of this image.
Definition: image_solid.hpp:36
solid(int height, int width, double value)
Generate a block of pixels with the given width and height, a depth of one, and a constant value...
Definition: image_solid.hpp:26
virtual int get_width() const
Return the height of this image.
Definition: image_solid.hpp:35
Base class for all image sources, filters, and operators.
Definition: image.hpp:20
virtual void doc(std::ostream &out) const
Produce a string documenting the function of this object.
Definition: image_solid.hpp:38
Solid value generator.
Definition: image_solid.hpp:20
virtual int get_height() const
Return the height of this image.
Definition: image_solid.hpp:34