graphics and rendering features of the Graphics 2D API. These features include:
- Rendering the outline of any geometry primitive, using the pen and brush attributes(draw method).
- Rendering any geometry primitive by filling its interior with the color or pattern specified by the brush attributes (fill method).
- Rendering any text string (drawString method). The font attribute is used to convert the string to glyphs, which are then filled with the color or pattern specified by the brush attributes.
- Rendering the specified image (drawImage method).
All methods that are represented above can be divided into two groups. First group contains methods to draw a shape. Second group contains methods to affect the rendering. The last group operates with a term attributes.
- To vary the stroke width (Pen)
- To change how strokes(Pen) are joined together
- To translate, rotate, scale, or shear objects when they are rendered
- To define colors and brushes to fill shapes with
No comments:
Post a Comment