|
libcrn
3.9.5
A document image processing library
|
Base class for images. More...
#include <CRNImage.h>
Inheritance diagram for crn::ImageBase:Public Member Functions | |
| virtual | ~ImageBase () |
| ImageBase (size_t w, size_t h) | |
| ImageBase (const ImageBase &)=default | |
| ImageBase (ImageBase &&)=default | |
| ImageBase & | operator= (const ImageBase &)=default |
| ImageBase & | operator= (ImageBase &&)=default |
| virtual std::unique_ptr < ImageBase > | Clone () const =0 |
| virtual void | SavePNG (const Path &fname) const =0 |
| Saves as PNG file. More... | |
| virtual void | SaveJPEG (const Path &fname, unsigned int qual) const =0 |
| Saves as JPEG file. More... | |
| size_t | GetWidth () const noexcept |
| size_t | GetHeight () const noexcept |
| Rect | GetBBox () const noexcept |
| size_t | Size () const noexcept |
| virtual void | ScaleToSize (size_t w, size_t h)=0 |
| Scales the image. More... | |
Protected Attributes | |
| size_t | width |
| size_t | height |
Base class for images.
Definition at line 46 of file CRNImage.h.
|
virtualdefault |
|
inline |
Definition at line 54 of file CRNImage.h.
|
default |
|
default |
|
pure virtual |
|
noexcept |
Definition at line 56 of file CRNImage.cpp.
|
inlinenoexcept |
Definition at line 74 of file CRNImage.h.
|
inlinenoexcept |
Definition at line 72 of file CRNImage.h.
|
pure virtual |
Saves as JPEG file.
Implemented in crn::Image< T >, crn::Image< double >, crn::Image< pixel::BW >, crn::Image< typename ByteAngle::type >, crn::Image< uint8_t >, and crn::Image< pixel::Polar2D< unsigned int, Angle< ByteAngle > > >.
|
pure virtual |
Saves as PNG file.
Implemented in crn::Image< T >, crn::Image< double >, crn::Image< pixel::BW >, crn::Image< typename ByteAngle::type >, crn::Image< uint8_t >, and crn::Image< pixel::Polar2D< unsigned int, Angle< ByteAngle > > >.
|
pure virtual |
Scales the image.
Implemented in crn::Image< T >, crn::Image< double >, crn::Image< pixel::BW >, crn::Image< typename ByteAngle::type >, crn::Image< uint8_t >, and crn::Image< pixel::Polar2D< unsigned int, Angle< ByteAngle > > >.
|
inlinenoexcept |
Definition at line 78 of file CRNImage.h.
|
protected |
Definition at line 92 of file CRNImage.h.
|
protected |
Definition at line 92 of file CRNImage.h.
1.8.6