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

Version Path
rays-0.1.48 include/rays/image.h
rays-0.1.47 include/rays/image.h
rays-0.1.46 include/rays/image.h
rays-0.1.45 include/rays/image.h
rays-0.1.44 include/rays/image.h
rays-0.1.43 include/rays/image.h
rays-0.1.42 include/rays/image.h
rays-0.1.40 include/rays/image.h
rays-0.1.39 include/rays/image.h
rays-0.1.38 include/rays/image.h
rays-0.1.37 include/rays/image.h
rays-0.1.36 include/rays/image.h
rays-0.1.35 include/rays/image.h
rays-0.1.34 include/rays/image.h
rays-0.1.33 include/rays/image.h