Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Inkscape::Trace::MapBase< T > Struct Template Reference

#include <imagemap.h>

Public Member Functions

 MapBase (int width, int height)
 
int offset (int x, int y) const
 
T * row (int y)
 
T const * row (int y) const
 
void setPixel (int x, int y, T val)
 
getPixel (int x, int y) const
 

Public Attributes

int width
 
int height
 
std::vector< T > pixels
 

Detailed Description

template<typename T>
struct Inkscape::Trace::MapBase< T >

Definition at line 20 of file imagemap.h.

Constructor & Destructor Documentation

◆ MapBase()

template<typename T >
Inkscape::Trace::MapBase< T >::MapBase ( int  width,
int  height 
)
inline

Definition at line 26 of file imagemap.h.

Member Function Documentation

◆ getPixel()

◆ offset()

template<typename T >
int Inkscape::Trace::MapBase< T >::offset ( int  x,
int  y 
) const
inline

Definition at line 31 of file imagemap.h.

References Inkscape::Trace::MapBase< T >::width.

◆ row() [1/2]

template<typename T >
T * Inkscape::Trace::MapBase< T >::row ( int  y)
inline

◆ row() [2/2]

template<typename T >
T const * Inkscape::Trace::MapBase< T >::row ( int  y) const
inline

◆ setPixel()

template<typename T >
void Inkscape::Trace::MapBase< T >::setPixel ( int  x,
int  y,
val 
)
inline

Definition at line 34 of file imagemap.h.

References offset, and Inkscape::Trace::MapBase< T >::pixels.

Member Data Documentation

◆ height

◆ pixels

◆ width


The documentation for this struct was generated from the following file: