|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--GpadFilter
The GpadFilter
class represents a filter operation applied
to the Paintlet canvas by a GraphicPad component. Filter
types are defined as static integer constants. The region to filter
can be specified. The GpadFilter
object is passed as an
argument to the gpApplyFilter
method of the GpadComponent
class.
GpadComponent
Field Summary | |
static int |
BLEACH
Bleach filter type. |
static int |
BLUE
Blue filter type. |
static int |
BLUR
Blur filter type. |
static int |
BW
Black and white filter type. |
static int |
COLORWEAVE
Color weave filter type. |
static int |
EMBOSS
Emboss filter type. |
static int |
FLAKE
Flake filter type. |
static int |
FRAME
Frame filter type. |
static int |
GRAY
Gray filter type. |
static int |
GREEN
Green filter type. |
static int |
HAZE
Haze filter type. |
static int |
HEIGHT
The Paintlet canvas height |
static int |
IDENTITY
Identity filter type. |
static int |
NEGATIVE
Negative filter type. |
static int |
RED
Red filter type. |
static int |
REFLECT
Reflect filter type. |
static int |
RGB
Red, green and blue filter type. |
static int |
RGB2
Red, green and blue filter type. |
static int |
ROTATE
Rotate filter type. |
static int |
SCALEDOWN
Scale filter type. |
static int |
SHARPEN
Sharpen filter type. |
static int |
SINEWAVE
Sine wave filter type. |
static int |
SINEWAVE2
Sine wave filter type. |
static int |
SPOTLIGHT
Spotlight filter type. |
static int |
SPOTLIGHT2
Spotlight filter type. |
static int |
SPOTLIGHT3
Spotlight filter type. |
static int |
WIDTH
The Paintlet canvas width |
Constructor Summary | |
GpadFilter()
Creates a new GpadFilter object. |
Method Summary | |
int |
getFilterHeight()
Gets the filter height. |
int |
getFilterType()
Gets the filter type. |
int |
getFilterVal()
Gets the filter value. |
int |
getFilterWidth()
Gets the filter width. |
int |
getFilterX()
Gets the x coordinate of the filter area's anchor point. |
int |
getFilterY()
Gets the y coordinate of the filter area's anchor point. |
void |
setFilterHeight(int h)
Sets the height of the filter area to the specified value. |
void |
setFilterRegion(int x,
int y,
int w,
int h)
Sets the region to filter. |
void |
setFilterType(int filter)
Sets the filter type. |
void |
setFilterVal(int v)
Sets the filter strength value. |
void |
setFilterWidth(int w)
Sets the width of the filter area to the specified value. |
void |
setFilterX(int x)
Sets the x coordinate of the filter area's anchor point to the specified value. |
void |
setFilterY(int y)
Sets the y coordinate of the filter area's anchor point to the specified value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int BLEACH
public static final int HAZE
public static final int GRAY
public static final int BLUR
public static final int NEGATIVE
public static final int SHARPEN
public static final int RED
public static final int ROTATE
public static final int BLUE
public static final int REFLECT
public static final int GREEN
public static final int EMBOSS
public static final int COLORWEAVE
public static final int FLAKE
public static final int BW
public static final int SINEWAVE
public static final int RGB
public static final int SINEWAVE2
public static final int RGB2
public static final int SCALEDOWN
public static final int FRAME
public static final int SPOTLIGHT
public static final int SPOTLIGHT2
public static final int SPOTLIGHT3
public static final int IDENTITY
public static final int WIDTH
public static final int HEIGHT
Constructor Detail |
public GpadFilter()
GpadFilter
object. The default filter type is
identity. Default filter strength is 50.Method Detail |
public void setFilterWidth(int w)
w
- the filter widthWIDTH
,
getFilterWidth()
public int getFilterWidth()
getFilterWidth()
public void setFilterHeight(int h)
h
- the filter heightHEIGHT
,
getFilterHeight()
public int getFilterHeight()
setFilterHeight(int)
public void setFilterX(int x)
x
- the x coordinate of the anchor pointgetFilterX()
public int getFilterX()
setFilterX(int)
public void setFilterY(int y)
y
- the y coordinate of the anchor pointgetFilterY()
public int getFilterY()
setFilterY(int)
public void setFilterRegion(int x, int y, int w, int h)
x
- the x coordinate of the anchor pointy
- the y coordinate of the anchor pointw
- the width of the filter regionh
- the height of the filter regionsetFilterX(int)
,
setFilterY(int)
,
setFilterWidth(int)
,
setFilterHeight(int)
public void setFilterVal(int v)
v
- the filter valuepublic int getFilterVal()
setFilterVal(int)
public void setFilterType(int filter)
filter
- the filter typegetFilterType()
public int getFilterType()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |