-
Notifications
You must be signed in to change notification settings - Fork 0
The ColorUtils class
Ralph Niemitz edited this page May 18, 2017
·
1 revision
The ColorUtils
class provides some handy methods for fast pixel manipulation.
The most important methods are getAlpha(int)
, getRed(int)
, getGreen(int)
, getBlue(int)
and getARGB(int,int,int,int)
.
These methods have the same effect of wrapping the RGB value into an instance of java.awt.Color
but use less memory and are a little faster as they do not create objects with
overhead.