17 #ifndef CARTOGRAPHER_IO_IMAGE_H_ 18 #define CARTOGRAPHER_IO_IMAGE_H_ 23 #include "cairo/cairo.h" 38 std::unique_ptr<cairo_surface_t, void (*)(cairo_surface_t*)>;
79 #endif // CARTOGRAPHER_IO_IMAGE_H_ UniqueCairoSurfacePtr GetCairoSurface()
std::vector< uint32 > pixels_
UniqueCairoSurfacePtr MakeUniqueCairoSurfacePtr(cairo_surface_t *surface)
constexpr cairo_format_t kCairoFormat
const Uint8Color GetPixel(int x, int y) const
void WritePng(FileWriter *const file_writer)
std::unique_ptr< cairo_t, void(*)(cairo_t *)> UniqueCairoPtr
std::array< uint8, 3 > Uint8Color
Image(UniqueCairoSurfacePtr surface)
UniqueCairoPtr MakeUniqueCairoPtr(cairo_t *surface)
void Rotate90DegreesClockwise()
void SetPixel(int x, int y, const Uint8Color &color)
std::unique_ptr< cairo_surface_t, void(*)(cairo_surface_t *)> UniqueCairoSurfacePtr