// -*- c++ -*- #pragma once #ifndef __RAYS_IMAGE_H__ #define __RAYS_IMAGE_H__ #include #include #include namespace Rays { class Bitmap; class Image { typedef Image This; public: Image (); Image ( int width, int height, const ColorSpace& cs = DEFAULT_COLOR_SPACE, float pixel_density = 1); Image (const Bitmap& bitmap, float pixel_density = 1); ~Image (); Image dup () const; coord width () const; coord height () const; const ColorSpace& color_space () const; float pixel_density () const; Painter painter (); Bitmap& bitmap (); const Bitmap& bitmap () const; operator bool () const; bool operator ! () const; struct Data; Xot::PSharedImpl self; };// Image void save_image (const Image& image, const char* path); Image load_image (const char* path); }// Rays #endif//EOH