![]() |
iipsrv
1.1
iipsrv is an advanced high-performance feature-rich image server for web-based streamed viewing and zooming of ultra high-resolution images
|
#include <Watermark.h>
Public Member Functions | |
Watermark () | |
Constructor. | |
Watermark (const std::string &file, float opacity, float probability) | |
Constructor. More... | |
~Watermark () | |
Destructor. | |
void | apply (void *data, unsigned int width, unsigned int height, unsigned int channels, unsigned int bpc) |
Apply the watermark to a data buffer. More... | |
std::string | getImage () |
Return watermark image path. | |
float | getOpacity () |
Return watermark opacity. | |
float | getProbability () |
Return watermark probability. | |
void | init () |
Initialize our watermark image. | |
bool | isSet () |
Determine whether a watermark has been specified. | |
Watermark class.
|
inline |
Constructor.
file | image file path |
opacity | opacity applied to watermark |
probability | probability that watermark will be applied to a particular tile |
void Watermark::apply | ( | void * | data, |
unsigned int | width, | ||
unsigned int | height, | ||
unsigned int | channels, | ||
unsigned int | bpc | ||
) |
Apply the watermark to a data buffer.
data | buffer of image data |
width | tile width |
height | tile height |
channels | number of channels |
bpc | bits per channel (8 or 16) |
Referenced by ~Watermark().