• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDE Support
  • Sitemap
  • Contact Us
 

qimageblitz

InlineInterpolate Class Reference

Performs interpolation between a pixel's colors and it's neighbors. More...

#include <interpolate.h>

List of all members.

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

Author:
Daniel M. Duley

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:
  • interpolate.h

qimageblitz

Skip menu "qimageblitz"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

KDE Support

Skip menu "KDE Support"
  • akonadi
  • Decibel
  • grantlee
  • kdewin
  • phonon
  •     Backend
  • polkit-qt
  • qca
  • qimageblitz
  • soprano
  • strigi
  •     searchclient
  •     streamanalyzer
  •     streams
Generated for KDE Support by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal