nk 1.0.0
C++ Numerical Computing Runtime
Loading...
Searching...
No Matches
nk::figrender::Raster Class Reference

Public Member Functions

 Raster (int w, int h)
void px (int x, int y, Rgb c)
void line (double x0, double y0, double x1, double y1, Rgb c, double wd, bool dash)
void polygon (const std::vector< double > &xs, const std::vector< double > &ys, Rgb c, bool fill)
void marker (double x, double y, double size, Rgb c, const std::string &k)
void text (double x, double y, const std::string &s, double fontSize, Rgb c, bool rot90)
void image (int x0, int y0, const std::vector< std::uint8_t > &buf, int pw, int ph)
const std::vector< std::uint8_t > & bytes () const
int width () const
int height () const

Detailed Description

Definition at line 2007 of file figure_render.hpp.

Constructor & Destructor Documentation

◆ Raster()

nk::figrender::Raster::Raster ( int w,
int h )
inline

Definition at line 2010 of file figure_render.hpp.

Member Function Documentation

◆ bytes()

const std::vector< std::uint8_t > & nk::figrender::Raster::bytes ( ) const
inline

Definition at line 2174 of file figure_render.hpp.

◆ height()

int nk::figrender::Raster::height ( ) const
inline

Definition at line 2176 of file figure_render.hpp.

◆ image()

void nk::figrender::Raster::image ( int x0,
int y0,
const std::vector< std::uint8_t > & buf,
int pw,
int ph )
inline

Definition at line 2154 of file figure_render.hpp.

◆ line()

void nk::figrender::Raster::line ( double x0,
double y0,
double x1,
double y1,
Rgb c,
double wd,
bool dash )
inline

Definition at line 2023 of file figure_render.hpp.

◆ marker()

void nk::figrender::Raster::marker ( double x,
double y,
double size,
Rgb c,
const std::string & k )
inline

Definition at line 2083 of file figure_render.hpp.

◆ polygon()

void nk::figrender::Raster::polygon ( const std::vector< double > & xs,
const std::vector< double > & ys,
Rgb c,
bool fill )
inline

Definition at line 2049 of file figure_render.hpp.

◆ px()

void nk::figrender::Raster::px ( int x,
int y,
Rgb c )
inline

Definition at line 2012 of file figure_render.hpp.

◆ text()

void nk::figrender::Raster::text ( double x,
double y,
const std::string & s,
double fontSize,
Rgb c,
bool rot90 )
inline

Definition at line 2117 of file figure_render.hpp.

◆ width()

int nk::figrender::Raster::width ( ) const
inline

Definition at line 2175 of file figure_render.hpp.


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