Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
egd(3)			   Erlang Module Definition			egd(3)

NAME
       egd - egd - erlang graphical drawer.

DESCRIPTION
       egd - erlang graphical drawer

DATA TYPES
	 color():

	 egd_image():

	 font():

	 point() = {integer(), integer()}:

	 render_option() = {render_engine, opaque} | {render_engine, alpha}:

EXPORTS
       color(Color::Value | Name) -> color()

	      Types:

		 Value	=  {byte(), byte(), byte()} | {byte(), byte(), byte(),
		 byte()}
		 Name =	black |	silver | gray |	white |	maroon | red |	purple
		 | fuchia | green | lime | olive | yellow | navy | blue	| teal
		 | aqua

	      Creates a	color reference.

       create(Width::integer(),	Height::integer()) -> egd_image()

	      Creates an image area and	returns	its reference.

       destroy(Image::egd_image()) -> ok

	      Destroys the image.

       filledEllipse(Image::egd_image(),       P1::point(),	  P2::point(),
       Color::color()) -> ok

	      Creates a	filled ellipse object.

       filledRectangle(Image::egd_image(),	P1::point(),	  P2::point(),
       Color::color()) -> ok

	      Creates a	filled rectangle object.

       line(Image::egd_image(),	P1::point(), P2::point(),  Color::color())  ->
       ok

	      Creates a	line object from P1 to P2 in the image.

       rectangle(Image::egd_image(), P1::point(), P2::point(), Color::color())
       -> ok

	      Creates a	rectangle object.

       render(Image::egd_image()) -> binary()

	      Equivalent to render(Image, png, [{render_engine,	opaque}]).

       render(Image::egd_image(), Type::png | raw_bitmap) -> binary()

	      Equivalent to render(Image, Type,	[{render_engine, opaque}]).

       render(Image::egd_image(), Type::png | raw_bitmap, Options::[render_op-
       tion()])	-> binary()

	      Renders  a  binary from the primitives specified by egd_image().
	      The binary can either be a raw bitmap with rgb  tripplets	 or  a
	      binary in	png format.

       save(Binary::binary(), Filename::string()) -> ok

	      Saves the	binary to file.

       text(Image::egd_image(),	  P::point(),	Font::font(),  Text::string(),
       Color::color()) -> ok

	      Creates a	text object.

AUTHORS
       __

				percept	0.8.11				egd(3)

NAME | DESCRIPTION | DATA TYPES | EXPORTS | AUTHORS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=egd&sektion=3&manpath=FreeBSD+11.0-RELEASE+and+Ports>

home | help