Sha256: 35a75d8e8fba2539cb2d960044553ba590f938132ab2cc82909fcf158f8c01f5
Contents?: true
Size: 935 Bytes
Versions: 18
Compression:
Stored size: 935 Bytes
Contents
// -*- c++ -*- #pragma once #ifndef __RAYS_IMAGE_H__ #define __RAYS_IMAGE_H__ #include <xot/pimpl.h> #include <rays/color_space.h> #include <rays/painter.h> 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<Data> self; };// Image void save_image (const Image& image, const char* path); Image load_image (const char* path); }// Rays #endif//EOH
Version data entries
18 entries across 18 versions & 1 rubygems