Module egd

egd - erlang graphical drawer.

Description

egd - erlang graphical drawer

Data Types

color()

color() = {float(), float(), float(), float()}

egd_image()

egd_image() = pid()

font()

abstract datatype: font()

point()

point() = {non_neg_integer(), non_neg_integer()}

render_option()

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

Function Index

color/1Creates a color reference.
create/2Creates an image area and returns its reference.
destroy/1Destroys the image.
filledEllipse/4Creates a filled ellipse object.
filledRectangle/4Creates a filled rectangle object.
line/4Creates a line object from P1 to P2 in the image.
rectangle/4Creates a rectangle object.
render/1Equivalent to render(Image, png, [{render_engine, opaque}]).
render/2Equivalent to render(Image, Type, [{render_engine, opaque}]).
render/3Renders a binary from the primitives specified by egd_image().
save/2Saves the binary to file.
text/5Creates a text object.

Function Details

color/1

color(Value::{byte(), byte(), byte()} | {byte(), byte(), byte(), byte()} | atom()) -> color()

Creates a color reference.

create/2

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

Creates an image area and returns its reference.

destroy/1

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

Destroys the image.

filledEllipse/4

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

Creates a filled ellipse object.

filledRectangle/4

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

Creates a filled rectangle object.

line/4

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

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

rectangle/4

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

Creates a rectangle object.

render/1

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

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

render/2

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

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

render/3

render(Image::egd_image(), Type::png | raw_bitmap | eps, Options::[render_option()]) -> 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/2

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

Saves the binary to file.

text/5

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

Creates a text object.


Generated by EDoc