java - Composite Mode "Add" (and more) -


for implementing colored lightning in exercise-engine need composite mode add.

there no mention of mode (and many other commonly used subtract, average, burn, etc...) here: https://docs.oracle.com/javase/tutorial/2d/advanced/compositing.html

i don't find experimenting.

since pretty new java suppose doing wrong.

could please point me in right direction?

i prefer not doing in software (mainly because don't want loose hardware-acceleration, secondly because don't know how).

you right, alphacomposite cannot blending modes typically found in image editors. there 2 java2d libraries provide extended composite implementations:

  1. jhlabs filters
  2. swingx

or if using javafx, has them out of box

don't worry performance, pretty fast.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -