Pyro higlevel API
|
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) |
contriblist * | CalcFilterWeight (float scale, float filterwidth, int srcsize, int dstsize, scale_filterfunc *filterfunc) |
#define B (1.0f / 3.0f) |
#define C (1.0f / 3.0f) |
#define CLAMP255 | ( | x | ) | ( x > 255 ? 255 : x ) |
typedef float( scale_filterfunc)(float) |
contriblist* CalcFilterWeight | ( | float | scale, |
float | filterwidth, | ||
int | srcsize, | ||
int | dstsize, | ||
scale_filterfunc * | filterfunc | ||
) |
References contriblist::contribcnt, contriblist::contribs, contrib::floatweight, contrib::sourcepos, and contrib::weight.
Referenced by Scale().
int clamp | ( | int | v, |
int | l, | ||
int | h | ||
) |
Referenced by Scale().
void Scale | ( | Bitmap * | srcbitmap, |
Bitmap * | dstbitmap, | ||
bitmapscale_filtertype | filtertype, | ||
float | filterwidth = 0.0f |
||
) |
References CalcFilterWeight(), clamp(), contriblist::contribcnt, contriblist::contribs, filter_bell, filter_box, filter_bspline, filter_filter, filter_lanczos3, filter_mitchell, filter_triangle, os::Bitmap::GetBounds(), os::Bitmap::GetBytesPerRow(), os::Rect::Height(), os::Bitmap::LockRaster(), contrib::sourcepos, contrib::weight, and os::Rect::Width().
Referenced by os::BitmapImage::SetSize().