| erasedrawable |
([double alpha]) |
typedict.Graphics |
| |
Paints
drawable
with its
background
color and
backgroundimage
using the optional
alpha
argument, which should be a number between
0.0
and
1.0,
as the alpha value.
erasedrawable
makes no use of or changes to the current
path
but it is affected by the current clipping path.
erasedrawable
also does not trigger a call of the
paint
function that may be defined in a
drawable,
which means it is safe to use in a
paint
function.
| |
| Example: |
The program,
import yoix.*.*;
JFrame f = {
Color background = Color.black;
paint(Rectangle rect) {
graphics { // "named block"
gsave();
setrgbcolor(1, 0, 0);
rectfill(rect);
arc(144, 144, 72, 0, 360);
clip();
erasedrawable();
grestore();
}
}
};
f.visible = TRUE;
defines a paint function in a frame that fills the frame with red,
establishes a small circular clipping path which
erasedrawable
fills with the frame's background color.
| | |
| Return: |
none
| | |
| See Also: |
clip,
clippath,
drawablebbox,
eoclip,
eoerase,
eofill,
erase,
fill,
ineofill,
infill,
instroke,
rectbutton,
rectclip,
rectcopy,
recterase,
rectfill,
rectmove,
rectstroke,
stroke,
strokepath
|
|
Yoix is a registered trademark of AT&T Inc.
|