include/rays/image.h in rays-0.1.12 vs include/rays/image.h in rays-0.1.13
- old
+ new
@@ -13,13 +13,11 @@
{
class Bitmap;
- class Texture;
-
class Image
{
typedef Image This;
@@ -27,49 +25,45 @@
Image ();
Image (
int width, int height, const ColorSpace& cs = RGBA,
- bool alpha_only = false);
+ float pixel_density = 1);
- Image (const Bitmap& bitmap, bool alpha_only = false);
+ Image (const Bitmap& bitmap, float pixel_density = 1);
~Image ();
- Image copy () const;
+ Image dup () const;
- Painter painter ();
+ coord width () const;
- int width () const;
+ coord height () const;
- int height () const;
-
const ColorSpace& color_space () const;
- bool alpha_only () const;
+ float pixel_density () const;
+ Painter painter ();
+
Bitmap& bitmap ();
const Bitmap& bitmap () const;
- Texture& texture ();
-
- const Texture& texture () const;
-
operator bool () const;
bool operator ! () const;
struct Data;
- Xot::PImpl<Data, true> self;
+ Xot::PSharedImpl<Data> self;
};// Image
- Image load_image (const char* path, bool alphatexture = false);
-
void save_image (const Image& image, const char* path);
+
+ Image load_image (const char* path);
}// Rays