AVIR
High-quality pro image resizing library
 
All Classes Files Functions Variables Typedefs Macros Pages
Loading...
Searching...
No Matches
avir::CLancIRParams Class Reference

LANCIR resizing parameters class. More...

#include <lancir.h>

Public Member Functions

 CLancIRParams (const int aSrcSSize=0, const int aNewSSize=0, const double akx=0.0, const double aky=0.0, const double aox=0.0, const double aoy=0.0)
 Default constructor, with optional arguments that correspond to class variables.
 

Public Attributes

double kx
 Resizing step - horizontal (one output pixel corresponds to k input pixels). A downsizing factor if greater than 1.0; upsizing factor if below or equal to 1.0. Multiply by -1 if you would like to bypass ox and oy adjustment which is done by default to produce a centered image. If this step value equals 0, the step value will be chosen automatically.
 
double ky
 Resizing step - vertical. Same as kx.
 
double la
 Lanczos window function's a parameter, greater or equal to 2.0.
 
int NewSSize
 Physical size of the destination scanline, in elements (not bytes). If this value is below 1, NewWidth*ElCount will be used.
 
double ox
 Start X pixel offset within the source image, can be negative. A positive offset moves the image to the left.
 
double oy
 Start Y pixel offset within the source image, can be negative. A positive offset moves the image to the top.
 
int SrcSSize
 Physical size of the source scanline, in elements (not bytes). If this value is below 1, SrcWidth*ElCount will be used.
 

Detailed Description

LANCIR resizing parameters class.

An object of this class, which can be allocated on stack, can be used to pass non-default parameters to the resizing algorithm. See the constructor for the default values.

Constructor & Destructor Documentation

◆ CLancIRParams()

avir::CLancIRParams::CLancIRParams ( const int aSrcSSize = 0,
const int aNewSSize = 0,
const double akx = 0.0,
const double aky = 0.0,
const double aox = 0.0,
const double aoy = 0.0 )

Default constructor, with optional arguments that correspond to class variables.

Parameters
aSrcSSizePhysical size of the source scanline.
aNewSSizePhysical size of the destination scanline.
akxResizing step - horizontal.
akyResizing step - vertical.
aoxStart X pixel offset.
aoyStart Y pixel offset.