本文整理匯總了Java中javax.media.jai.JAI.createRenderable方法的典型用法代碼示例。如果您正苦於以下問題:Java JAI.createRenderable方法的具體用法?Java JAI.createRenderable怎麽用?Java JAI.createRenderable使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類javax.media.jai.JAI
的用法示例。
在下文中一共展示了JAI.createRenderable方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: createRenderable
import javax.media.jai.JAI; //導入方法依賴的package包/類
/**
* Composites two images based on an alpha mask.
*
* <p>Creates a <code>ParameterBlockJAI</code> from all
* supplied arguments except <code>hints</code> and invokes
* {@link JAI#createRenderable(String,ParameterBlock,RenderingHints)}.
*
* @see JAI
* @see ParameterBlockJAI
* @see RenderableOp
*
* @param source0 <code>RenderableImage</code> source 0.
* @param source1 <code>RenderableImage</code> source 1.
* @param source1Alpha The alpha image for the first source.
* @param source2Alpha The alpha image for the second source.
* May be <code>null</code>.
* @param alphaPremultiplied True if alpha has been premultiplied to both sources and the destination.
* May be <code>null</code>.
* @param destAlpha Indicates if the destination image should include an extra alpha channel, and if so, should it be the first or last band.
* May be <code>null</code>.
* @param hints The <code>RenderingHints</code> to use.
* May be <code>null</code>.
* @return The <code>RenderableOp</code> destination.
* @throws IllegalArgumentException if <code>source0</code> is <code>null</code>.
* @throws IllegalArgumentException if <code>source1</code> is <code>null</code>.
* @throws IllegalArgumentException if <code>source1Alpha</code> is <code>null</code>.
*/
public static RenderableOp createRenderable(RenderableImage source0,
RenderableImage source1,
RenderableImage source1Alpha,
RenderableImage source2Alpha,
Boolean alphaPremultiplied,
CompositeDestAlpha destAlpha,
RenderingHints hints) {
ParameterBlockJAI pb =
new ParameterBlockJAI("Composite",
RenderableRegistryMode.MODE_NAME);
pb.setSource("source0", source0);
pb.setSource("source1", source1);
pb.setParameter("source1Alpha", source1Alpha);
pb.setParameter("source2Alpha", source2Alpha);
pb.setParameter("alphaPremultiplied", alphaPremultiplied);
pb.setParameter("destAlpha", destAlpha);
return JAI.createRenderable("Composite", pb, hints);
}
示例2: createRenderable
import javax.media.jai.JAI; //導入方法依賴的package包/類
/**
* Subsamples an image by averaging over a moving window.
*
* <p>Creates a <code>ParameterBlockJAI</code> from all
* supplied arguments except <code>hints</code> and invokes
* {@link JAI#createRenderable(String,ParameterBlock,RenderingHints)}.
*
* @see JAI
* @see ParameterBlockJAI
* @see RenderableOp
*
* @param source0 <code>RenderableImage</code> source 0.
* @param scaleX The X scale factor.
* May be <code>null</code>.
* @param scaleY The Y scale factor.
* May be <code>null</code>.
* @param hints The <code>RenderingHints</code> to use.
* May be <code>null</code>.
* @return The <code>RenderableOp</code> destination.
* @throws IllegalArgumentException if <code>source0</code> is <code>null</code>.
*/
public static RenderableOp createRenderable(RenderableImage source0,
Double scaleX,
Double scaleY,
RenderingHints hints) {
ParameterBlockJAI pb =
new ParameterBlockJAI("SubsampleAverage",
RenderableRegistryMode.MODE_NAME);
pb.setSource("source0", source0);
pb.setParameter("scaleX", scaleX);
pb.setParameter("scaleY", scaleY);
return JAI.createRenderable("SubsampleAverage", pb, hints);
}
示例3: createRenderable
import javax.media.jai.JAI; //導入方法依賴的package包/類
/**
* Resizes an image.
*
* <p>Creates a <code>ParameterBlockJAI</code> from all
* supplied arguments except <code>hints</code> and invokes
* {@link JAI#createRenderable(String,ParameterBlock,RenderingHints)}.
*
* @see JAI
* @see ParameterBlockJAI
* @see RenderableOp
*
* @param source0 <code>RenderableImage</code> source 0.
* @param xScale The X scale factor.
* May be <code>null</code>.
* @param yScale The Y scale factor.
* May be <code>null</code>.
* @param xTrans The X translation.
* May be <code>null</code>.
* @param yTrans The Y translation.
* May be <code>null</code>.
* @param interpolation The interpolation method for resampling.
* May be <code>null</code>.
* @param hints The <code>RenderingHints</code> to use.
* May be <code>null</code>.
* @return The <code>RenderableOp</code> destination.
* @throws IllegalArgumentException if <code>source0</code> is <code>null</code>.
*/
public static RenderableOp createRenderable(RenderableImage source0,
Float xScale,
Float yScale,
Float xTrans,
Float yTrans,
Interpolation interpolation,
RenderingHints hints) {
ParameterBlockJAI pb =
new ParameterBlockJAI("Scale",
RenderableRegistryMode.MODE_NAME);
pb.setSource("source0", source0);
pb.setParameter("xScale", xScale);
pb.setParameter("yScale", yScale);
pb.setParameter("xTrans", xTrans);
pb.setParameter("yTrans", yTrans);
pb.setParameter("interpolation", interpolation);
return JAI.createRenderable("Scale", pb, hints);
}
示例4: createRenderable
import javax.media.jai.JAI; //導入方法依賴的package包/類
/**
* Clamps the pixel values of an image to a specified range.
*
* <p>Creates a <code>ParameterBlockJAI</code> from all
* supplied arguments except <code>hints</code> and invokes
* {@link JAI#createRenderable(String,ParameterBlock,RenderingHints)}.
*
* @see JAI
* @see ParameterBlockJAI
* @see RenderableOp
*
* @param source0 <code>RenderableImage</code> source 0.
* @param low The lower boundary for each band.
* May be <code>null</code>.
* @param high The upper boundary for each band.
* May be <code>null</code>.
* @param hints The <code>RenderingHints</code> to use.
* May be <code>null</code>.
* @return The <code>RenderableOp</code> destination.
* @throws IllegalArgumentException if <code>source0</code> is <code>null</code>.
*/
public static RenderableOp createRenderable(RenderableImage source0,
double[] low,
double[] high,
RenderingHints hints) {
ParameterBlockJAI pb =
new ParameterBlockJAI("Clamp",
RenderableRegistryMode.MODE_NAME);
pb.setSource("source0", source0);
pb.setParameter("low", low);
pb.setParameter("high", high);
return JAI.createRenderable("Clamp", pb, hints);
}
示例5: createRenderable
import javax.media.jai.JAI; //導入方法依賴的package包/類
/**
* Computes the discrete cosine transform of an image.
*
* <p>Creates a <code>ParameterBlockJAI</code> from all
* supplied arguments except <code>hints</code> and invokes
* {@link JAI#createRenderable(String,ParameterBlock,RenderingHints)}.
*
* @see JAI
* @see ParameterBlockJAI
* @see RenderableOp
*
* @param source0 <code>RenderableImage</code> source 0.
* @param hints The <code>RenderingHints</code> to use.
* May be <code>null</code>.
* @return The <code>RenderableOp</code> destination.
* @throws IllegalArgumentException if <code>source0</code> is <code>null</code>.
*/
public static RenderableOp createRenderable(RenderableImage source0,
RenderingHints hints) {
ParameterBlockJAI pb =
new ParameterBlockJAI("DCT",
RenderableRegistryMode.MODE_NAME);
pb.setSource("source0", source0);
return JAI.createRenderable("DCT", pb, hints);
}
示例6: createRenderable
import javax.media.jai.JAI; //導入方法依賴的package包/類
/**
* Applies a piecewise pixel value mapping.
*
* <p>Creates a <code>ParameterBlockJAI</code> from all
* supplied arguments except <code>hints</code> and invokes
* {@link JAI#createRenderable(String,ParameterBlock,RenderingHints)}.
*
* @see JAI
* @see ParameterBlockJAI
* @see RenderableOp
*
* @param source0 <code>RenderableImage</code> source 0.
* @param breakPoints The breakpoint array.
* May be <code>null</code>.
* @param hints The <code>RenderingHints</code> to use.
* May be <code>null</code>.
* @return The <code>RenderableOp</code> destination.
* @throws IllegalArgumentException if <code>source0</code> is <code>null</code>.
*/
public static RenderableOp createRenderable(RenderableImage source0,
float[][][] breakPoints,
RenderingHints hints) {
ParameterBlockJAI pb =
new ParameterBlockJAI("Piecewise",
RenderableRegistryMode.MODE_NAME);
pb.setSource("source0", source0);
pb.setParameter("breakPoints", breakPoints);
return JAI.createRenderable("Piecewise", pb, hints);
}
示例7: createRenderable
import javax.media.jai.JAI; //導入方法依賴的package包/類
/**
* An operation which does no processing.
*
* <p>Creates a <code>ParameterBlockJAI</code> from all
* supplied arguments except <code>hints</code> and invokes
* {@link JAI#createRenderable(String,ParameterBlock,RenderingHints)}.
*
* @see JAI
* @see ParameterBlockJAI
* @see RenderableOp
*
* @param source0 <code>RenderableImage</code> source 0.
* @param hints The <code>RenderingHints</code> to use.
* May be <code>null</code>.
* @return The <code>RenderableOp</code> destination.
* @throws IllegalArgumentException if <code>source0</code> is <code>null</code>.
*/
public static RenderableOp createRenderable(RenderableImage source0,
RenderingHints hints) {
ParameterBlockJAI pb =
new ParameterBlockJAI("Null",
RenderableRegistryMode.MODE_NAME);
pb.setSource("source0", source0);
return JAI.createRenderable("Null", pb, hints);
}
示例8: createRenderable
import javax.media.jai.JAI; //導入方法依賴的package包/類
/**
* Merge (possibly multi-banded)images into a multibanded image.
*
* <p>Creates a <code>ParameterBlockJAI</code> from all
* supplied arguments except <code>hints</code> and invokes
* {@link JAI#createRenderable(String,ParameterBlock,RenderingHints)}.
*
* @see JAI
* @see ParameterBlockJAI
* @see RenderableOp
*
* @param source0 <code>RenderableImage</code> source 0.
* @param source1 <code>RenderableImage</code> source 1.
* @param hints The <code>RenderingHints</code> to use.
* May be <code>null</code>.
* @return The <code>RenderableOp</code> destination.
* @throws IllegalArgumentException if <code>source0</code> is <code>null</code>.
* @throws IllegalArgumentException if <code>source1</code> is <code>null</code>.
*/
public static RenderableOp createRenderable(RenderableImage source0,
RenderableImage source1,
RenderingHints hints) {
ParameterBlockJAI pb =
new ParameterBlockJAI("BandMerge",
RenderableRegistryMode.MODE_NAME);
pb.setSource("source0", source0);
pb.setSource("source1", source1);
return JAI.createRenderable("BandMerge", pb, hints);
}
示例9: createRenderable
import javax.media.jai.JAI; //導入方法依賴的package包/類
/**
* Computes the natural logarithm of the pixel values of an image.
*
* <p>Creates a <code>ParameterBlockJAI</code> from all
* supplied arguments except <code>hints</code> and invokes
* {@link JAI#createRenderable(String,ParameterBlock,RenderingHints)}.
*
* @see JAI
* @see ParameterBlockJAI
* @see RenderableOp
*
* @param source0 <code>RenderableImage</code> source 0.
* @param hints The <code>RenderingHints</code> to use.
* May be <code>null</code>.
* @return The <code>RenderableOp</code> destination.
* @throws IllegalArgumentException if <code>source0</code> is <code>null</code>.
*/
public static RenderableOp createRenderable(RenderableImage source0,
RenderingHints hints) {
ParameterBlockJAI pb =
new ParameterBlockJAI("Log",
RenderableRegistryMode.MODE_NAME);
pb.setSource("source0", source0);
return JAI.createRenderable("Log", pb, hints);
}
示例10: createRenderable
import javax.media.jai.JAI; //導入方法依賴的package包/類
/**
* Computes a complex image from a magnitude and a phase image.
*
* <p>Creates a <code>ParameterBlockJAI</code> from all
* supplied arguments except <code>hints</code> and invokes
* {@link JAI#createRenderable(String,ParameterBlock,RenderingHints)}.
*
* @see JAI
* @see ParameterBlockJAI
* @see RenderableOp
*
* @param source0 <code>RenderableImage</code> source 0.
* @param source1 <code>RenderableImage</code> source 1.
* @param hints The <code>RenderingHints</code> to use.
* May be <code>null</code>.
* @return The <code>RenderableOp</code> destination.
* @throws IllegalArgumentException if <code>source0</code> is <code>null</code>.
* @throws IllegalArgumentException if <code>source1</code> is <code>null</code>.
*/
public static RenderableOp createRenderable(RenderableImage source0,
RenderableImage source1,
RenderingHints hints) {
ParameterBlockJAI pb =
new ParameterBlockJAI("PolarToComplex",
RenderableRegistryMode.MODE_NAME);
pb.setSource("source0", source0);
pb.setSource("source1", source1);
return JAI.createRenderable("PolarToComplex", pb, hints);
}
示例11: createRenderable
import javax.media.jai.JAI; //導入方法依賴的package包/類
/**
* Adds a collection of images.
*
* <p>Creates a <code>ParameterBlockJAI</code> from all
* supplied arguments except <code>hints</code> and invokes
* {@link JAI#createRenderable(String,ParameterBlock,RenderingHints)}.
*
* @see JAI
* @see ParameterBlockJAI
* @see RenderableOp
*
* @param source0 <code>Collection</code> source 0.
* @param hints The <code>RenderingHints</code> to use.
* May be <code>null</code>.
* @return The <code>RenderableOp</code> destination.
* @throws IllegalArgumentException if <code>source0</code> is <code>null</code>.
*/
public static RenderableOp createRenderable(Collection source0,
RenderingHints hints) {
ParameterBlockJAI pb =
new ParameterBlockJAI("AddCollection",
RenderableRegistryMode.MODE_NAME);
pb.setSource("source0", source0);
return JAI.createRenderable("AddCollection", pb, hints);
}
示例12: createRenderable
import javax.media.jai.JAI; //導入方法依賴的package包/類
/**
* Computes the squared magnitude of each pixel of a complex image.
*
* <p>Creates a <code>ParameterBlockJAI</code> from all
* supplied arguments except <code>hints</code> and invokes
* {@link JAI#createRenderable(String,ParameterBlock,RenderingHints)}.
*
* @see JAI
* @see ParameterBlockJAI
* @see RenderableOp
*
* @param source0 <code>RenderableImage</code> source 0.
* @param hints The <code>RenderingHints</code> to use.
* May be <code>null</code>.
* @return The <code>RenderableOp</code> destination.
* @throws IllegalArgumentException if <code>source0</code> is <code>null</code>.
*/
public static RenderableOp createRenderable(RenderableImage source0,
RenderingHints hints) {
ParameterBlockJAI pb =
new ParameterBlockJAI("MagnitudeSquared",
RenderableRegistryMode.MODE_NAME);
pb.setSource("source0", source0);
return JAI.createRenderable("MagnitudeSquared", pb, hints);
}
示例13: createRenderable
import javax.media.jai.JAI; //導入方法依賴的package包/類
/**
* Performs general table lookup on an image.
*
* <p>Creates a <code>ParameterBlockJAI</code> from all
* supplied arguments except <code>hints</code> and invokes
* {@link JAI#createRenderable(String,ParameterBlock,RenderingHints)}.
*
* @see JAI
* @see ParameterBlockJAI
* @see RenderableOp
*
* @param source0 <code>RenderableImage</code> source 0.
* @param table The lookup table the source image is passed through.
* @param hints The <code>RenderingHints</code> to use.
* May be <code>null</code>.
* @return The <code>RenderableOp</code> destination.
* @throws IllegalArgumentException if <code>source0</code> is <code>null</code>.
* @throws IllegalArgumentException if <code>table</code> is <code>null</code>.
*/
public static RenderableOp createRenderable(RenderableImage source0,
LookupTableJAI table,
RenderingHints hints) {
ParameterBlockJAI pb =
new ParameterBlockJAI("Lookup",
RenderableRegistryMode.MODE_NAME);
pb.setSource("source0", source0);
pb.setParameter("table", table);
return JAI.createRenderable("Lookup", pb, hints);
}
示例14: createRenderable
import javax.media.jai.JAI; //導入方法依賴的package包/類
/**
* Compute the complex quotient of two images.
*
* <p>Creates a <code>ParameterBlockJAI</code> from all
* supplied arguments except <code>hints</code> and invokes
* {@link JAI#createRenderable(String,ParameterBlock,RenderingHints)}.
*
* @see JAI
* @see ParameterBlockJAI
* @see RenderableOp
*
* @param source0 <code>RenderableImage</code> source 0.
* @param source1 <code>RenderableImage</code> source 1.
* @param hints The <code>RenderingHints</code> to use.
* May be <code>null</code>.
* @return The <code>RenderableOp</code> destination.
* @throws IllegalArgumentException if <code>source0</code> is <code>null</code>.
* @throws IllegalArgumentException if <code>source1</code> is <code>null</code>.
*/
public static RenderableOp createRenderable(RenderableImage source0,
RenderableImage source1,
RenderingHints hints) {
ParameterBlockJAI pb =
new ParameterBlockJAI("DivideComplex",
RenderableRegistryMode.MODE_NAME);
pb.setSource("source0", source0);
pb.setSource("source1", source1);
return JAI.createRenderable("DivideComplex", pb, hints);
}
示例15: createRenderable
import javax.media.jai.JAI; //導入方法依賴的package包/類
/**
* Reformats an image.
*
* <p>Creates a <code>ParameterBlockJAI</code> from all
* supplied arguments except <code>hints</code> and invokes
* {@link JAI#createRenderable(String,ParameterBlock,RenderingHints)}.
*
* @see JAI
* @see ParameterBlockJAI
* @see RenderableOp
*
* @param source0 <code>RenderableImage</code> source 0.
* @param dataType The output data type (from java.awt.image.DataBuffer).
* May be <code>null</code>.
* @param hints The <code>RenderingHints</code> to use.
* May be <code>null</code>.
* @return The <code>RenderableOp</code> destination.
* @throws IllegalArgumentException if <code>source0</code> is <code>null</code>.
*/
public static RenderableOp createRenderable(RenderableImage source0,
Integer dataType,
RenderingHints hints) {
ParameterBlockJAI pb =
new ParameterBlockJAI("Format",
RenderableRegistryMode.MODE_NAME);
pb.setSource("source0", source0);
pb.setParameter("dataType", dataType);
return JAI.createRenderable("Format", pb, hints);
}