note
	description: "Write 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_WRITER

create 
	make

feature -- Access

	set_pixel (a_color: GAME_COLOR_READABLE; a_line, a_column: INTEGER_32)
			-- Set the color of the pixel at line a_line and column a_column to a_color
		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

	set_index (a_index: NATURAL_8; a_line, a_column: INTEGER_32)
			-- Set the index of the indexed pixel at line a_line and column a_column to a_index
		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_WRITER

Generated by ISE EiffelStudio