class
ImageResizerProcess object for resizing an image.
Contents
- Reference
Base classes
- class ProcessObject
- Abstract base class for all process objects.
Public functions
- auto create(int width, int height, int depth, bool useInterpolation, bool preserveAspectRatio) -> std::shared_ptr<ImageResizer>
- Create instnace.
- void setWidth(int width)
- void setHeight(int height)
- void setDepth(int depth)
- void setSize(VectorXi size)
- void setPreserveAspectRatio(bool preserve)
- void setInterpolation(bool useInterpolation)
- void loadAttributes() override
Private functions
- void execute() virtual
Function documentation
std::shared_ptr<ImageResizer> fast:: ImageResizer:: create(int width,
int height,
int depth,
bool useInterpolation,
bool preserveAspectRatio)
Create instnace.
Parameters | |
---|---|
width | |
height | |
depth | |
useInterpolation | Whether to use linear interpolation or not |
preserveAspectRatio | |
Returns | instance |