Sha256: 51d1a3efad2892b03f24bcd38b64cf57f500c919032c408045d51306ee3c2ae4

Contents?: true

Size: 930 Bytes

Versions: 4

Compression:

Stored size: 930 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 (bool modify = false);

			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

4 entries across 4 versions & 1 rubygems

Version Path
rays-0.3 include/rays/image.h
rays-0.2.1 include/rays/image.h
rays-0.2 include/rays/image.h
rays-0.1.49 include/rays/image.h