📄 imageworker.html
字号:
<BR> If <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Boolean.html#FALSE" title="class or interface in java.lang"><CODE>FALSE</CODE></A>, image operators are not allowed to produce tiled images. </TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/geotools/image/ImageWorker.html#ImageWorker()">ImageWorker</A></B>()</CODE><BR> Creates a new uninitialized builder for an image read.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/geotools/image/ImageWorker.html#ImageWorker(java.io.File)">ImageWorker</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/File.html" title="class or interface in java.io">File</A> input)</CODE><BR> Creates a new builder for an image read from the specified file.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/geotools/image/ImageWorker.html#ImageWorker(java.awt.image.RenderedImage)">ImageWorker</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/RenderedImage.html" title="class or interface in java.awt.image">RenderedImage</A> image)</CODE><BR> Creates a new builder for the specified image. </TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/geotools/image/ImageWorker.html" title="class in org.geotools.image">ImageWorker</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/image/ImageWorker.html#addImage(java.awt.image.RenderedImage)">addImage</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/RenderedImage.html" title="class or interface in java.awt.image">RenderedImage</A> renderedImage)</CODE><BR> The Add operation takes two rendered or renderable source images, and adds every pair of pixels, one from each source image of the corresponding position and band. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/geotools/image/ImageWorker.html" title="class in org.geotools.image">ImageWorker</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/image/ImageWorker.html#addTransparencyToIndexColorModel(java.awt.image.RenderedImage, boolean)">addTransparencyToIndexColorModel</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/RenderedImage.html" title="class or interface in java.awt.image">RenderedImage</A> alphaChannel, boolean errorDiffusion)</CODE><BR> Adds transparency to a preexisting image whose color model is <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/IndexColorModel.html" title="class or interface in java.awt.image">index color model</A>. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/geotools/image/ImageWorker.html" title="class in org.geotools.image">ImageWorker</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/image/ImageWorker.html#addTransparencyToIndexColorModel(java.awt.image.RenderedImage, boolean, int, boolean)">addTransparencyToIndexColorModel</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/RenderedImage.html" title="class or interface in java.awt.image">RenderedImage</A> alphaChannel, boolean translucent, int transparent, boolean errorDiffusion)</CODE><BR> Adds transparency to a preexisting image whose color model is <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/IndexColorModel.html" title="class or interface in java.awt.image">index color model</A>. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/geotools/image/ImageWorker.html" title="class in org.geotools.image">ImageWorker</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/image/ImageWorker.html#bandMerge(int)">bandMerge</A></B>(int writeband)</CODE><BR> Add the bands to the Component Color Model</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/geotools/image/ImageWorker.html" title="class in org.geotools.image">ImageWorker</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/image/ImageWorker.html#binarize()">binarize</A></B>()</CODE><BR> Binarizes the <A HREF="../../../org/geotools/image/ImageWorker.html#image">image</A>. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/geotools/image/ImageWorker.html" title="class in org.geotools.image">ImageWorker</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/image/ImageWorker.html#binarize(double)">binarize</A></B>(double threshold)</CODE><BR> Binarizes the <A HREF="../../../org/geotools/image/ImageWorker.html#image">image</A>. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/geotools/image/ImageWorker.html" title="class in org.geotools.image">ImageWorker</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/image/ImageWorker.html#binarize(int, int)">binarize</A></B>(int value0, int value1)</CODE><BR> Binarizes the <A HREF="../../../org/geotools/image/ImageWorker.html#image">image</A> (if not already done) and replace all 0 values by and all 1 values by . </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/geotools/image/ImageWorker.html" title="class in org.geotools.image">ImageWorker</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/image/ImageWorker.html#forceBitmaskIndexColorModel()">forceBitmaskIndexColorModel</A></B>()</CODE><BR> Reduces the color model to <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/IndexColorModel.html" title="class or interface in java.awt.image">index color model</A> with <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Transparency.html#OPAQUE" title="class or interface in java.awt">opaque</A> or <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Transparency.html#BITMASK" title="class or interface in java.awt">bitmask</A> transparency. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/geotools/image/ImageWorker.html" title="class in org.geotools.image">ImageWorker</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/image/ImageWorker.html#forceBitmaskIndexColorModel(int, boolean)">forceBitmaskIndexColorModel</A></B>(int transparent, boolean errorDiffusion)</CODE><BR> Reduces the color model to <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/IndexColorModel.html" title="class or interface in java.awt.image">index color model</A> with <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Transparency.html#OPAQUE" title="class or interface in java.awt">opaque</A> or <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Transparency.html#BITMASK" title="class or interface in java.awt">bitmask</A> transparency. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/geotools/image/ImageWorker.html" title="class in org.geotools.image">ImageWorker</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/image/ImageWorker.html#forceColorSpaceGRAYScale()">forceColorSpaceGRAYScale</A></B>()</CODE><BR> Forces the <A HREF="../../../org/geotools/image/ImageWorker.html#image">image</A> color model to the <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/color/ColorSpace.html#CS_GRAY" title="class or interface in java.awt.color">GRAYScale color space</A>. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/geotools/image/ImageWorker.html" title="class in org.geotools.image">ImageWorker</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/image/ImageWorker.html#forceColorSpaceRGB()">forceColorSpaceRGB</A></B>()</CODE><BR> Forces the <A HREF="../../../org/geotools/image/ImageWorker.html#image">image</A> color model to the <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/color/ColorSpace.html#CS_sRGB" title="class or interface in java.awt.color">RGB color space</A>. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/geotools/image/ImageWorker.html" title="class in org.geotools.image">ImageWorker</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/image/ImageWorker.html#forceComponentColorModel()">forceComponentColorModel</A></B>()</CODE><BR> Reformats the <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/ColorModel.html" title="class or interface in java.awt.image">color model</A> to a <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/ComponentColorModel.html" title="class or interface in java.awt.image">component color model</A> preserving transparency. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/geotools/image/ImageWorker.html" title="class in org.geotools.image">ImageWorker</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/image/ImageWorker.html#forceComponentColorModel(boolean)">forceComponentColorModel</A></B>(boolean checkTransparent)</CODE><BR> Reformats the <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/ColorModel.html" title="class or interface in java.awt.image">color model</A> to a <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/ComponentColorModel.html" title="class or interface in java.awt.image">component color model</A> preserving transparency. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/geotools/image/ImageWorker.html" title="class in org.geotools.image">ImageWorker</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/image/ImageWorker.html#forceIndexColorModel(boolean)">forceIndexColorModel</A></B>(boolean error)</CODE><BR> Reduces the color model to <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/IndexColorModel.html" title="class or interface in java.awt.image">index color model</A>. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/geotools/image/ImageWorker.html" title="class in org.geotools.image">ImageWorker</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/image/ImageWorker.html#forceIndexColorModelForGIF(boolean)">forceIndexColorModelForGIF</A></B>(boolean errorDiffusion)</CODE><BR> Converts the image to a GIF-compliant image. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/geotools/image/ImageWorker.html" title="class in org.geotools.image">ImageWorker</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/image/ImageWorker.html#format(int)">format</A></B>(int dataType)</CODE><BR> Formats the underlying image to the provided data type.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/ROI.html" title="class or interface in javax.media.jai">ROI</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/image/ImageWorker.html#getImageAsROI()">getImageAsROI</A></B>()</CODE><BR> Returns a <A HREF="http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/ROI.html" title="class or interface in javax.media.jai">Region Of Interest</A> built from the current <A HREF="../../../org/geotools/image/ImageWorker.html#getRenderedImage()">image</A>. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/image/ImageWorker.html#getMaximums()">getMaximums</A></B>()</CODE><BR> Returns the maximal values found in every <A HREF="../../../org/geotools/image/ImageWorker.html#image">image</A> bands. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/image/ImageWorker.html#getMinimums()">getMinimums</A></B>()</CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -