ET++: Ink

ET++ performs all drawing with an "ink," which is closely analogous to real-world ink in that it determines exactly what is left on the Port by the pen as it traces its path. Ink is an abstract superclass; its subclasses are RGBColor and Bitmap. RGBColor provides a simple solid-color ink specified by its red, green, and blue components (part of its interface is shown below). Bitmap provides a bitmap-based tiled color pattern ink.


	short GetRed()
		{ return rgb.red; }
	short GetGreen()
		{ return rgb.green; }
	short GetBlue()
		{ return rgb.blue; }
	short GetPrec()
		{ return prec; }
	RGB *GetRGB()
		{ return &rgb; }
	bool SetHSV(short hue, short sat, short value, short p= 0);
	bool SetRGB(RGB *rgb, short p= 0);
	bool SetRGB(short r, short g, short b, short p= 0);
	bool SetRed(short r)
		{ return SetRGB(r, rgb.green, rgb.blue, prec); }
	bool SetGreen(short g)
		{ return SetRGB(rgb.red, g, rgb.blue, prec); }
	bool SetBlue(short b)
		{ return SetRGB(rgb.red, rgb.green, b, prec); }
	bool SetPrec(short p)
		{ return SetRGB(rgb.red, rgb.green, rgb.blue, p); }
	int AsGreyLevel()
		{ return rgb.AsGreyLevel(); }

Back to the graphical layout description

Back to the main ET++ page