egd
MODULE
MODULE SUMMARY
DESCRIPTION
egd - erlang graphical drawer
DATA TYPES
EXPORTS
color(Color::Value | Name) -> color()
Types:
create(Width::integer(), Height::integer()) -> egd_image()
destroy(Image::egd_image()) -> ok
filledEllipse(Image::egd_image(), P1::point(), P2::point(), Color::color()) -> ok
filledRectangle(Image::egd_image(), P1::point(), P2::point(), Color::color()) -> ok
line(Image::egd_image(), P1::point(), P2::point(), Color::color()) -> ok
rectangle(Image::egd_image(), P1::point(), P2::point(), Color::color()) -> ok
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_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(Binary::binary(), Filename::string()) -> ok
text(Image::egd_image(), P::point(), Font::font(), Text::string(), Color::color()) -> ok