Known Direct Subclasses
PixelConverter.Argb,
PixelConverter.ArgbBm,
PixelConverter.ArgbPre,
PixelConverter.Bgrx,
PixelConverter.ByteGray,
PixelConverter.Rgba,
PixelConverter.RgbaPre,
PixelConverter.Rgbx,
PixelConverter.Ushort4444Argb,
PixelConverter.Ushort555Rgb,
PixelConverter.Ushort555Rgbx,
PixelConverter.Ushort565Rgb,
PixelConverter.Xbgr,
PixelConverter.Xrgb
|
Known Indirect Subclasses
|
Class Overview
This class provides utilities for converting between the standard
rgb colorspace specification and the equivalent value for a pixel
of a given surface type. The class was designed for use by the
SurfaceType objects, since the conversion between pixel values
and rgb values is inherently tied to the type of surface we are
dealing with. Some conversions cannot be done automatically,
however (for example, the AnyInt or AnyDCM surface types), so
we require the caller to pass in a ColorModel object so that
we can calculate the pixel values in these generic cases as well.
Summary
Fields |
protected
int |
alphaMask |
|
public
static
final
PixelConverter |
instance |
Default object, used as a fallback for any surface types where
we do not know enough about the surface to calculate the
conversions directly. |
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
Fields
public
static
final
PixelConverter
instance
Default object, used as a fallback for any surface types where
we do not know enough about the surface to calculate the
conversions directly. We use the ColorModel object to assist
us in these cases.
Protected Constructors
protected
PixelConverter
()
Public Methods
public
final
int
getAlphaMask
()