Public Member Functions | |
SizeRequest () | |
RequestType | get_type () const |
Returns the type of the size request, or RT_none if the request has not been specified. | |
void | set_pixel_size (int pixel_size) |
Sets the size request to store an explicit pixel size. | |
int | get_pixel_size () const |
Returns the explicit pixel size stored within the size request. | |
int | get_pixel_size (int orig_pixel_size) const |
Returns the explicit pixel size stored within the size request, or if a ratio has been stored, returns the computed pixel size based on the original size. | |
void | set_ratio (double ratio) |
Sets the size request to store a specific ratio. | |
double | get_ratio () const |
Returns the specific ratio stored within the size request. | |
double | get_ratio (int orig_pixel_size) const |
Returns the specific ratio stored within the size request, or if a pixel size has been stored, returns the computed ratio based on the original size. | |
Private Attributes | |
RequestType | _type |
union { | |
int _pixel_size | |
double _ratio | |
} | _e |
|
Definition at line 31 of file imageResize.I. References _type, INLINE, and ImageResize::RequestType. |
|
Returns the explicit pixel size stored within the size request, or if a ratio has been stored, returns the computed pixel size based on the original size.
Definition at line 95 of file imageResize.I. |
|
Returns the explicit pixel size stored within the size request.
Definition at line 77 of file imageResize.I. References _e. |
|
Returns the specific ratio stored within the size request, or if a pixel size has been stored, returns the computed ratio based on the original size.
Definition at line 151 of file imageResize.I. |
|
Returns the specific ratio stored within the size request.
Definition at line 131 of file imageResize.I. |
|
Returns the type of the size request, or RT_none if the request has not been specified.
Definition at line 46 of file imageResize.I. |
|
Sets the size request to store an explicit pixel size.
Definition at line 61 of file imageResize.I. References _e. |
|
Sets the size request to store a specific ratio.
Definition at line 115 of file imageResize.I. |
|
Referenced by get_pixel_size(), get_type(), set_pixel_size(), and set_ratio(). |
|
Definition at line 67 of file imageResize.h. |
|
Definition at line 68 of file imageResize.h. |
|
Definition at line 65 of file imageResize.h. Referenced by get_pixel_size(), get_type(), and SizeRequest(). |