Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Slic3r::png::Image< PxT > Struct Template Reference

#include <src/libslic3r/PNGReadWrite.hpp>

+ Collaboration diagram for Slic3r::png::Image< PxT >:

Public Member Functions

PxT get (size_t row, size_t col) const
 

Public Attributes

std::vector< PxT > buf
 
size_t rows
 
size_t cols
 

Detailed Description

template<class PxT>
struct Slic3r::png::Image< PxT >

Member Function Documentation

◆ get()

template<class PxT >
PxT Slic3r::png::Image< PxT >::get ( size_t  row,
size_t  col 
) const
inline
23{ return buf[row * cols + col]; }
EIGEN_DEVICE_FUNC RowXpr row(Index i)
This is the const version of row(). *‍/.
Definition BlockMethods.h:859
EIGEN_DEVICE_FUNC ColXpr col(Index i)
This is the const version of col().
Definition BlockMethods.h:838
std::vector< PxT > buf
Definition PNGReadWrite.hpp:21
size_t cols
Definition PNGReadWrite.hpp:22

References Slic3r::png::Image< PxT >::buf, col(), Slic3r::png::Image< PxT >::cols, and row().

Referenced by marchsq::_RasterTraits< Slic3r::png::ImageGreyscale >::get().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ buf

template<class PxT >
std::vector<PxT> Slic3r::png::Image< PxT >::buf

◆ cols

◆ rows


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