note
	description: "Read access to an internal array of pixels."
	author: "Louis Marchand"
	date: "Tue, 26 Jan 2016 19:34:13 +0000"
	revision: "2.1"

class interface
	GAME_PIXEL_READER

create 
	make

feature -- Access

	pixel (a_line, a_column: INTEGER_32): GAME_COLOR_READABLE
			-- Get the color of the pixel at line a_line and column a_column
		require
			is_item_valid: is_valid
			is_line_valid: a_line >= 1 and then a_line <= height
			is_column_valid: a_line >= 1 and then a_column <= width
			not_indexed: not pixel_format.is_indexed

	index (a_line, a_column: INTEGER_32): NATURAL_8
			-- Get the index of the indexed pixel at line a_line and column a_column
		require
			is_item_valid: is_valid
			is_line_valid: a_line >= 1 and then a_line <= height
			is_column_valid: a_line >= 1 and then a_column <= width
			indexed: pixel_format.is_indexed
			bits_per_pixel_valid: pixel_format.bits_per_pixel = 8
	
end -- class GAME_PIXEL_READER

Generated by ISE EiffelStudio