1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
|
.TH egd 3 "percept 0.7.2" "Ericsson AB" "ERLANG MODULE DEFINITION"
.SH MODULE
egd \- egd - erlang graphical drawer\&.
.SH DESCRIPTION
.LP
egd - erlang graphical drawer
.SH DATA TYPES
.RS 2
.TP 4
.B
\fIcolor()\fR:
.TP 4
.B
\fIegd_image()\fR:
.TP 4
.B
\fIpoint() = {integer(), integer()}\fR:
.TP 4
.B
\fIrender_option() = {render_engine, opaque} | {render_engine, alpha}\fR:
.RE
.SH EXPORTS
.LP
.B
color(Color::{byte(), byte(), byte()}) -> color()
.br
.RS
.LP
Creates a color reference\&.
.RE
.LP
.B
create(Width::integer(), Height::integer()) -> egd_image()
.br
.RS
.LP
Creates an image area and returns its reference\&.
.RE
.LP
.B
destroy(Image::egd_image()) -> ok
.br
.RS
.LP
Destroys the image\&.
.RE
.LP
.B
filledEllipse(Image::egd_image(), P1::point(), P2::point(), Color::color()) -> ok
.br
.RS
.LP
Creates a filled ellipse object\&.
.RE
.LP
.B
filledRectangle(Image::egd_image(), P1::point(), P2::point(), Color::color()) -> ok
.br
.RS
.LP
Creates a filled rectangle object\&.
.RE
.LP
.B
line(Image::egd_image(), P1::point(), P2::point, Color::color()) -> ok
.br
.RS
.LP
Creates a line object from P1 to P2 in the image\&.
.RE
.LP
.B
rectangle(Image::egd_image(), P1::point(), P2::point(), Color::color()) -> ok
.br
.RS
.LP
Creates a rectangle object\&.
.RE
.LP
.B
render(Image::egd_image()) -> binary()
.br
.RS
.LP
Equivalent to render(Image, png, [{render_engine, opaque}])\&.
.RE
.LP
.B
render(Image::egd_image(), Type::png | raw_bitmap) -> binary()
.br
.RS
.LP
Equivalent to render(Image, Type, [{render_engine, opaque}])\&.
.RE
.LP
.B
render(Image::egd_image(), Type::png | raw_bitmap, Options::[render_option()]) -> binary()
.br
.RS
.LP
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\&.
.RE
.LP
.B
save(Binary::binary(), Filename::string()) -> ok
.br
.RS
.LP
Saves the binary to file\&.
.RE
.LP
.B
text(Image::egd_image(), P::point(), Font::font(), Text::string(), Color::color()) -> ok
.br
.RS
.LP
Creates a text object\&.
.RE
|