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

Version Path
rays-0.1.32 include/rays/image.h
rays-0.1.31 include/rays/image.h
rays-0.1.30 include/rays/image.h
rays-0.1.29 include/rays/image.h
rays-0.1.28 include/rays/image.h
rays-0.1.27 include/rays/image.h
rays-0.1.26 include/rays/image.h
rays-0.1.25 include/rays/image.h
rays-0.1.24 include/rays/image.h
rays-0.1.23 include/rays/image.h
rays-0.1.22 include/rays/image.h
rays-0.1.21 include/rays/image.h
rays-0.1.20 include/rays/image.h
rays-0.1.19 include/rays/image.h
rays-0.1.18 include/rays/image.h
rays-0.1.17 include/rays/image.h
rays-0.1.16 include/rays/image.h
rays-0.1.15 include/rays/image.h