|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.media.jai.OperationDescriptorImpl | +--javax.media.jai.operator.NotDescriptor
An OperationDescriptor
describing the "Not" operation.
The Not operation takes one rendered or renderable image, and performs bit-wise logical "not" on every pixel from every band of the source image. No additional parameters are required.
The source image must have an integral data type. By default, the destination image bound, data type, and number of bands are the same as the source image.
The following matrix defines the logical "not" operation.
src | Result |
---|---|
1 | 0 |
0 | 1 |
The destination pixel values are defined by the pseudocode:
dst[x][y][b] = ~src[x][y][b];
Name | Value |
---|---|
GlobalName | Not |
LocalName | Not |
Vendor | com.sun.media.jai |
Description | Logically "nots" an image. |
DocURL | http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/operator/NotDescriptor.html |
Version | 1.0 |
No parameters are needed for this operation.
OperationDescriptor
, Serialized FormFields inherited from class javax.media.jai.OperationDescriptorImpl |
resources, sourceNames, supportedModes |
Fields inherited from interface javax.media.jai.OperationDescriptor |
NO_PARAMETER_DEFAULT |
Constructor Summary | |
NotDescriptor()
Constructor. |
Method Summary | |
static RenderedOp |
create(RenderedImage source0,
RenderingHints hints)
Logically "nots" an image. |
static RenderableOp |
createRenderable(RenderableImage source0,
RenderingHints hints)
Logically "nots" an image. |
protected boolean |
validateSources(String modeName,
ParameterBlock args,
StringBuffer msg)
Validates the input source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NotDescriptor()
Method Detail |
protected boolean validateSources(String modeName, ParameterBlock args, StringBuffer msg)
In addition to the standard checks performed by the superclass method, this method checks that the source image is of integral data type.
validateSources
in class OperationDescriptorImpl
javax.media.jai.OperationDescriptorImpl
modeName
- the operation mode nameargs
- a ParameterBlock
that has the sourcesmsg
- A string that may contain error messages.IllegalArgumentException
- if any of the input parameters are null
.OperationDescriptorImpl.validateArguments(java.lang.String, java.awt.image.renderable.ParameterBlock, java.lang.StringBuffer)
public static RenderedOp create(RenderedImage source0, RenderingHints hints)
Creates a ParameterBlockJAI
from all
supplied arguments except hints
and invokes
JAI.create(String,ParameterBlock,RenderingHints)
.
source0
- RenderedImage
source 0.hints
- The RenderingHints
to use.
May be null
.RenderedOp
destination.IllegalArgumentException
- if source0
is null
.JAI
,
ParameterBlockJAI
,
RenderedOp
public static RenderableOp createRenderable(RenderableImage source0, RenderingHints hints)
Creates a ParameterBlockJAI
from all
supplied arguments except hints
and invokes
JAI.createRenderable(String,ParameterBlock,RenderingHints)
.
source0
- RenderableImage
source 0.hints
- The RenderingHints
to use.
May be null
.RenderableOp
destination.IllegalArgumentException
- if source0
is null
.JAI
,
ParameterBlockJAI
,
RenderableOp
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |