Pyro higlevel API
Classes | Macros | Typedefs | Enumerations | Functions
image.cpp File Reference

Classes

class  os::Image::Private
 
class  os::BitmapImage::Private
 
struct  contrib
 
struct  contriblist
 

Macros

#define CLAMP255(x)   ( x > 255 ? 255 : x )
 
#define B   (1.0f / 3.0f)
 
#define C   (1.0f / 3.0f)
 

Typedefs

typedef float( scale_filterfunc )(float)
 

Enumerations

enum  bitmapscale_filtertype {
  filter_filter,
  filter_box,
  filter_triangle,
  filter_bell,
  filter_bspline,
  filter_lanczos3,
  filter_mitchell
}
 

Functions

void Scale (Bitmap *srcbitmap, Bitmap *dstbitmap, bitmapscale_filtertype filtertype, float filterwidth=0.0f)
 
int clamp (int v, int l, int h)
 
contriblistCalcFilterWeight (float scale, float filterwidth, int srcsize, int dstsize, scale_filterfunc *filterfunc)
 

Macro Definition Documentation

#define B   (1.0f / 3.0f)
#define C   (1.0f / 3.0f)
#define CLAMP255 (   x)    ( x > 255 ? 255 : x )

Typedef Documentation

typedef float( scale_filterfunc)(float)

Enumeration Type Documentation

Enumerator
filter_filter 
filter_box 
filter_triangle 
filter_bell 
filter_bspline 
filter_lanczos3 
filter_mitchell 

Function Documentation

contriblist* CalcFilterWeight ( float  scale,
float  filterwidth,
int  srcsize,
int  dstsize,
scale_filterfunc filterfunc 
)
int clamp ( int  v,
int  l,
int  h 
)

Referenced by Scale().

void Scale ( Bitmap srcbitmap,
Bitmap dstbitmap,
bitmapscale_filtertype  filtertype,
float  filterwidth = 0.0f 
)