public class HImageMatte extends Object implements HMatte
HImageMatte
class represents a
matte that varies over space but is constant over time, it can be
specified by an "image mask" (a single channel image)
where the pixels indicate matte transparency.
Parameter | Description | Default value | Set method | Get method |
---|---|---|---|---|
data | The transparency value for this image matte. | null (the matte should be treated as being spatially unvarying and opaque) | setMatteData(java.awt.Image) |
getMatteData() |
Description | Default value | Set method | Get method |
---|---|---|---|
The pixel offset for the image matte, relative to the top, left corner of its associated component. | A java.awt.Point (0, 0) | setOffset(java.awt.Point) |
getOffset() |
Constructor and Description |
---|
HImageMatte()
Creates an
HImageMatte
object. |
HImageMatte(Image data)
Creates an
HImageMatte
object. |
Modifier and Type | Method and Description |
---|---|
Image |
getMatteData()
Returns the data used for this matte.
|
Point |
getOffset()
Get the offset of the matte relative to its component in
pixels.
|
void |
setMatteData(Image data)
Sets the data for this matte.
|
void |
setOffset(Point p)
Set the offset of the matte relative to its component in
pixels.
|
public HImageMatte()
HImageMatte
object. See the class description for details of constructor
parameters and default values.public HImageMatte(Image data)
HImageMatte
object. See the class description for details of constructor
parameters and default values.public void setMatteData(Image data)
Note that if the size of the image is smaller than the size of the component to which the matte is applied, the empty space behaves as if it were an opaque flat matte of value 1.0. By default images are aligned at the top left corner of the component. This can be changed with the setOffset method.
data
- the data for this matte. Specify a null object to
remove the associated data for this matte.public Image getMatteData()
public void setOffset(Point p)
p
- the offset of the matte relative to its component in
pixels. If p is null a NullPointerException is thrown.public Point getOffset()
Copyright © 2013 CableLabs. All rights reserved.