#include <layeroperations.hh>
|
| | PipetteCommonOperationsCMYK (int bps_) |
| |
| PipetteLayerOperations::PipetteColor | sumPixelValues (Scroom::Utils::Rectangle< int > area, const ConstTile::Ptr &tile) override |
| |
| | Base ()=default |
| |
| | Base (const Base &)=delete |
| |
| | Base (Base &&)=delete |
| |
| Base & | operator= (const Base &)=delete |
| |
| Base & | operator= (Base &&)=delete |
| |
| virtual | ~Base ()=default |
| |
| template<typename R > |
| boost::shared_ptr< R > | shared_from_this () |
| |
| template<typename R > |
| boost::shared_ptr< R const > | shared_from_this () const |
| |
| void | initializeCairo (cairo_t *cr) override |
| |
| void | drawState (cairo_t *cr, TileState s, Scroom::Utils::Rectangle< double > viewArea) override |
| |
| Scroom::Utils::Stuff | cacheZoom (const ConstTile::Ptr &tile, int zoom, Scroom::Utils::Stuff &cache) override |
| |
| void | draw (cairo_t *cr, const ConstTile::Ptr &tile, Scroom::Utils::Rectangle< double > tileArea, Scroom::Utils::Rectangle< double > viewArea, int zoom, Scroom::Utils::Stuff cache) override |
| |
| virtual int | getBpp ()=0 |
| |
| virtual Scroom::Utils::Stuff | cache (const ConstTile::Ptr &tile) |
| |
| virtual void | reduce (Tile::Ptr target, ConstTile::Ptr source, int x, int y)=0 |
| |
|
| static void | drawPixelValue (cairo_t *cr, int x, int y, int size, int value) |
| |
| static void | drawPixelValue (cairo_t *cr, int x, int y, int size, int value, Color const &bgColor) |
| |
◆ Ptr
◆ PipetteCommonOperationsCMYK()
| PipetteCommonOperationsCMYK::PipetteCommonOperationsCMYK |
( |
int |
bps_ | ) |
|
|
inlineexplicit |
◆ sumPixelValues()
Sums the samples of each pixel contained in the area of the tile.
- Parameters
-
| area | The rectangular area in which pixels are summed up. |
| tile | The tile in which the pixels are located in. |
Implements PipetteLayerOperations.
209 const int offset = 4 * (area.
getTop() * tile->width + area.
getLeft());
210 const int stride = 4 * (tile->width - area.
getWidth());
230 return {{
"C", sum_c}, {
"M", sum_m}, {
"Y", sum_y}, {
"K", sum_k}};
◆ bps
| int PipetteCommonOperationsCMYK::bps |
|
protected |
The documentation for this class was generated from the following files: