#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 | 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) |
void | set_rectangle_alpha2 (ImageData32 const &data, unsigned x0, unsigned y0, float opacity) |
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 |
Referenced by mapnik::save_to_file().
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] |
References mapnik::ImageData< T >::getBytes().
void mapnik::Image32::set_rectangle | ( | int | x0, | |
int | y0, | |||
ImageData32 const & | data | |||
) | [inline] |
References mapnik::ImageData< T >::getRow(), mapnik::ImageData< T >::height(), mapnik::Envelope< T >::intersect(), mapnik::Envelope< T >::intersects(), mapnik::Envelope< T >::maxx(), mapnik::Envelope< T >::maxy(), mapnik::Envelope< T >::minx(), mapnik::Envelope< T >::miny(), and mapnik::ImageData< T >::width().
void mapnik::Image32::set_rectangle_alpha | ( | int | x0, | |
int | y0, | |||
const ImageData32 & | data | |||
) | [inline] |
References mapnik::ImageData< T >::getRow(), mapnik::ImageData< T >::height(), mapnik::Envelope< T >::intersect(), mapnik::Envelope< T >::intersects(), mapnik::Envelope< T >::maxx(), mapnik::Envelope< T >::maxy(), mapnik::Envelope< T >::minx(), mapnik::Envelope< T >::miny(), and mapnik::ImageData< T >::width().
void mapnik::Image32::set_rectangle_alpha2 | ( | ImageData32 const & | data, | |
unsigned | x0, | |||
unsigned | y0, | |||
float | opacity | |||
) | [inline] |
References mapnik::ImageData< T >::getRow(), mapnik::ImageData< T >::height(), mapnik::Envelope< T >::intersect(), mapnik::Envelope< T >::intersects(), mapnik::Envelope< T >::maxx(), mapnik::Envelope< T >::maxy(), mapnik::Envelope< T >::minx(), mapnik::Envelope< T >::miny(), and mapnik::ImageData< T >::width().
void mapnik::Image32::setBackground | ( | Color const & | background | ) |
References mapnik::Color::rgba(), and mapnik::ImageData< T >::set().
void mapnik::Image32::setPixel | ( | int | x, | |
int | y, | |||
unsigned int | rgba | |||
) | [inline] |
unsigned mapnik::Image32::width | ( | ) | const [inline] |