Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Slic3r::sla::Resolution Struct Reference

Type that represents a resolution in pixels. More...

#include <src/libslic3r/SLA/RasterBase.hpp>

Public Member Functions

 Resolution ()=default
 
 Resolution (size_t w, size_t h)
 
size_t pixels () const
 

Public Attributes

size_t width_px = 0
 
size_t height_px = 0
 

Detailed Description

Type that represents a resolution in pixels.

Constructor & Destructor Documentation

◆ Resolution() [1/2]

Slic3r::sla::Resolution::Resolution ( )
default

◆ Resolution() [2/2]

Slic3r::sla::Resolution::Resolution ( size_t  w,
size_t  h 
)
inline
39: width_px(w), height_px(h) {}
size_t height_px
Definition RasterBase.hpp:36
size_t width_px
Definition RasterBase.hpp:35

Member Function Documentation

◆ pixels()

size_t Slic3r::sla::Resolution::pixels ( ) const
inline
40{ return width_px * height_px; }

References height_px, and width_px.

Member Data Documentation

◆ height_px

◆ width_px


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