View RSS Feed

Java AWT

Java Abstract Window Toolkit (AWT)

  1. Stroking and Filling Graphics Primitives

    by , 03-06-2012 at 09:00 PM
    In this post, discussion will be done regarding the outlines and color which are applicable to the graphics. Stroking as well as filling will also be discussed.

    • lling To paint with color gradient or solid color.
    • Stroking Outline of shape is drawn by applying color attribute, stroke width and line style.

    Change paint attributes & stroke that are given in Graphics2D context. This is done before line styles are rendered or patterns are filled to the geometric ...