Sha256: 234bb10ac9876f3eaf0320933435a13632e420f7507913e640eed850efc5ae90

Contents?: true

Size: 920 Bytes

Versions: 2

Compression:

Stored size: 920 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 = RGBA,
				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

2 entries across 2 versions & 1 rubygems

Version Path
rays-0.1.14 include/rays/image.h
rays-0.1.13 include/rays/image.h