O'Reilly logo

Filthy Rich Clients: Developing Animated and Graphical Effects for Desktop Java™ Applications by Romain Guy, Chet Haase

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required