Sha256: 1b99c39a35497bb62942f2a737e3cde396b3e3964775d72d1236d5bdf922c758
Contents?: true
Size: 911 Bytes
Versions: 15
Compression:
Stored size: 911 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; void save (const char* path); 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 Image load_image (const char* path); }// Rays #endif//EOH
Version data entries
15 entries across 15 versions & 1 rubygems