Canvas API maintenance (Blend Modes)

Richard Bair richard.bair at oracle.com
Fri May 18 13:56:30 PDT 2012


Probably should update the javadoc too ;-)

On May 18, 2012, at 1:53 PM, Joe Andresen wrote:

> In addition to ImageOps... We had decided later on that we would drop the strange behavior of the CompositeOperations in Canvas and simply support the JavaFX BlendModes.
> 
> We decided BlendMode was a better name than composite because it is consistent with other JavaFX API.
> 
> Trivial Change to the API can be seen below:
> 
> import javafx.scene.effect.BlendMode;
> 
> ...
> 
>   /**
>     * Sets the Global Composite Operation of the current state.
>     * 
>     * @param op
>     */
>    public void setGlobalBlendMode(BlendMode op);
> 
>    /**
>     * Gets the Global Composite Operation of the current state.
>     * 
>     * @return CompositeOperation 
>     */
>    public BlendMode getGlobalBlendMode();
> 
> -Joe



More information about the openjfx-dev mailing list