#include <image.h>
Public Member Functions | |
UniqueCairoSurfacePtr | GetCairoSurface () |
const Uint8Color | GetPixel (int x, int y) const |
int | height () const |
Image (UniqueCairoSurfacePtr surface) | |
Image (int width, int height) | |
void | Rotate90DegreesClockwise () |
void | SetPixel (int x, int y, const Uint8Color &color) |
int | width () const |
void | WritePng (FileWriter *const file_writer) |
Private Attributes | |
int | height_ |
std::vector< uint32 > | pixels_ |
int | width_ |
cartographer::io::Image::Image | ( | UniqueCairoSurfacePtr | surface | ) | [explicit] |
cartographer::io::Image::Image | ( | int | width, |
int | height | ||
) |
UniqueCairoSurfacePtr cartographer::io::Image::GetCairoSurface | ( | ) |
const Uint8Color cartographer::io::Image::GetPixel | ( | int | x, |
int | y | ||
) | const |
int cartographer::io::Image::height | ( | ) | const [inline] |
void cartographer::io::Image::SetPixel | ( | int | x, |
int | y, | ||
const Uint8Color & | color | ||
) |
int cartographer::io::Image::width | ( | ) | const [inline] |
void cartographer::io::Image::WritePng | ( | FileWriter *const | file_writer | ) |
int cartographer::io::Image::height_ [private] |
std::vector<uint32> cartographer::io::Image::pixels_ [private] |
int cartographer::io::Image::width_ [private] |