Chapter 6. Composites

COMPOSITES are very important tools for programmers of Filthy Rich Clients. A composite can be thought of as a rule that determines how to store or combine the colors of a drawing primitive into the destination. A composite could, for instance, state that only the red components of the drawing primitive can be copied onto the graphics area. Composites are also known as blending modes in graphics editing applications like Adobe Photoshop or The GIMP, in which they are often used to create complex lighting effects. In Java, a Composite is an instance of the interface java.awt.Composite and can be set on a Graphics2D by calling setComposite().

AlphaComposite

The Java platform comes with only one implementation of Composite, ...

Get Filthy Rich Clients: Developing Animated and Graphical Effects for Desktop Java™ Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.