RGB Color images.
RGB Color images. Instances of class GPixmap represent color images as a two dimensional array of pixels GPixel. The bracket operator returns a pointer to the pixels composing one line of the image. This pointer can be used as an array to read or write the pixels of this particular line. Following the general convention of the DjVu Reference Library, line zero is always the bottom line of the image.
GPixmap(int nrows, int ncolumns, const GPixel *filler=0)
GPixmap(const GBitmap &ref)
GPixmap(const GBitmap &ref, const GRect &rect)
GPixmap(const GPixmap &ref)
GPixmap(const GPixmap &ref, const GRect &rect)
GPixmap(ByteStream &ref)
void init(const GPixmap &ref)
void init(const GPixmap &ref, const GRect &rect)
void init(const GBitmap &ref, const GPixel *ramp=0)
void init(const GBitmap &ref, const GRect &rect, const GPixel *ramp=0)
void init(ByteStream &ref)
GPixmap& operator=(const GBitmap &ref)
GPixmap& operator=(const GPixmap &ref)
unsigned int columns() const
const GPixel* operator[] (int row) const
GPixel* operator[] (int row)
unsigned int rowsize() const
void upsample(const GPixmap *src, int factor, const GRect *rect=0)
void downsample43(const GPixmap *src, const GRect *rect=0)
void upsample23(const GPixmap *src, const GRect *rect=0)
void blit(const GBitmap *bm, int x, int y, const GPixel *color)
void blit(const GBitmap *bm, int x, int y, const GPixmap *color)
void blend(const GBitmap *bm, int x, int y, const GPixmap *color)
void stencil(const GBitmap *bm, const GPixmap *pm, int pms, const GRect *pmr, double corr=1.0)
void ordered_32k_dither(int xmin=0, int ymin=0)
void color_correct(double corr)
static void color_correct(double corr, GPixel *pixels, int npixels)
void save_ppm(ByteStream &bs, int raw=1) const
inline void borrow_data(GPixel &data, int w, int h)
void donate_data(GPixel *data, int w, int h)
Alphabetic index HTML hierarchy of classes or Java