#include <graphics.hpp>
Public Member Functions | |
Image32 (int width, int height) | |
Image32 (Image32 const &rhs) | |
~Image32 () | |
void | setBackground (Color const &background) |
const Color & | getBackground () const |
const ImageData32 & | data () const |
ImageData32 & | data () |
const unsigned char * | raw_data () const |
unsigned char * | raw_data () |
image_view< ImageData32 > | get_view (unsigned x, unsigned y, unsigned w, unsigned h) |
void | saveToFile (const std::string &file, const std::string &format="auto") |
void | setPixel (int x, int y, unsigned int rgba) |
void | blendPixel (int x, int y, unsigned int rgba1, int t) |
unsigned | width () const |
unsigned | height () const |
void | set_rectangle (int x0, int y0, ImageData32 const &data) |
void | set_rectangle_alpha (int x0, int y0, const ImageData32 &data) |
mapnik::Image32::Image32 | ( | int | width, | |
int | height | |||
) |
mapnik::Image32::Image32 | ( | Image32 const & | rhs | ) |
mapnik::Image32::~Image32 | ( | ) |
void mapnik::Image32::blendPixel | ( | int | x, | |
int | y, | |||
unsigned int | rgba1, | |||
int | t | |||
) | [inline] |
ImageData32& mapnik::Image32::data | ( | ) | [inline] |
const ImageData32 & mapnik::Image32::data | ( | ) | const |
image_view<ImageData32> mapnik::Image32::get_view | ( | unsigned | x, | |
unsigned | y, | |||
unsigned | w, | |||
unsigned | h | |||
) | [inline] |
const Color & mapnik::Image32::getBackground | ( | ) | const |
unsigned mapnik::Image32::height | ( | ) | const [inline] |
unsigned char* mapnik::Image32::raw_data | ( | ) | [inline] |
const unsigned char* mapnik::Image32::raw_data | ( | ) | const [inline] |
void mapnik::Image32::saveToFile | ( | const std::string & | file, | |
const std::string & | format = "auto" | |||
) |
void mapnik::Image32::set_rectangle | ( | int | x0, | |
int | y0, | |||
ImageData32 const & | data | |||
) | [inline] |
void mapnik::Image32::set_rectangle_alpha | ( | int | x0, | |
int | y0, | |||
const ImageData32 & | data | |||
) | [inline] |
void mapnik::Image32::setBackground | ( | Color const & | background | ) |
void mapnik::Image32::setPixel | ( | int | x, | |
int | y, | |||
unsigned int | rgba | |||
) | [inline] |
unsigned mapnik::Image32::width | ( | ) | const [inline] |