qimageblitz
InlineInterpolate Class Reference
Performs interpolation between a pixel's colors and it's neighbors. More...
#include <interpolate.h>
Public Member Functions | |
| InlineInterpolate (QImage *image, unsigned int background) | |
| unsigned int | interpolate (float x_offset, float y_offset) |
| unsigned int | interpolateBackground (float x_offset, float y_offset) |
Detailed Description
Performs interpolation between a pixel's colors and it's neighbors.
Handles 32bpp and 8bpp source images transparently.
Inline interpolation
Definition at line 41 of file interpolate.h.
Constructor & Destructor Documentation
| InlineInterpolate::InlineInterpolate | ( | QImage * | image, | |
| unsigned int | background | |||
| ) | [inline] |
Constructs an interpolation object.
Do this outside your main loop then call the inline interpolate methods when you need them.
- Parameters:
-
image The image whose pixels you will be interpolating. Once you have created an interpolation object you can change the image's pixel data, but do not resize or reset it. background The background color to use if a pixel's neighbor is off the edge of the image.
Definition at line 54 of file interpolate.h.
Member Function Documentation
| unsigned int InlineInterpolate::interpolate | ( | float | x_offset, | |
| float | y_offset | |||
| ) | [inline] |
Interpolates the pixel at the given x,y position.
If the pixel's neighbor is off the edge of the image the last pixel is extended.
Definition at line 79 of file interpolate.h.
| unsigned int InlineInterpolate::interpolateBackground | ( | float | x_offset, | |
| float | y_offset | |||
| ) | [inline] |
Interpolates the pixel at the given x,y position.
If the pixel's neighbor is off the edge of the image the background color is used.
Definition at line 106 of file interpolate.h.
The documentation for this class was generated from the following file:
KDE 4.4 API Reference