Logo Search packages:      
Sourcecode: djvulibre version File versions

GScaler Class Reference

#include <GScaler.h>

Inheritance diagram for GScaler:

GPEnabled GBitmapScaler GPixmapScaler

List of all members.


Detailed Description

Base class for GBitmapScaler and GPixmapScaler. This base class implements the common elements of class {GBitmapScaler} and {GPixmapScaler}. Functions {set_input_size} and {set_output_size} are used to specify the size of the input image and the size of the output image. Functions {set_horz_ratio} and {set_vert_ratio} may be used to override the scaling ratios computed from the image sizes. You can then call function {get_input_rect} to know which pixels of the input image are necessary to compute a specified rectangular zone of the output image. The actual computation is then performed by calling function scale# in class {GBitmapScaler} and {GPixmapScaler}.

Definition at line 119 of file GScaler.h.


Public Member Functions

int get_count (void) const
void get_input_rect (const GRect &desired_output, GRect &required_input)
void set_horz_ratio (int numer, int denom)
void set_input_size (int w, int h)
void set_output_size (int w, int h)
void set_vert_ratio (int numer, int denom)

Protected Member Functions

void make_rectangles (const GRect &desired, GRect &red, GRect &inp)

Protected Attributes

volatile int count
 The reference counter.
GPBuffer< int > ghcoord
GPBuffer< int > gvcoord
int * hcoord
int inh
int inw
int outh
int outw
int redh
int redw
int * vcoord
int xshift
int yshift

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index