📄 imageworker.html
字号:
<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#retainBands(int)">retainBands</A></B>(int numBands)</CODE><BR> Retains inconditionnaly the first of <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#retainBands(int[])">retainBands</A></B>(int[] bands)</CODE><BR> Retains inconditionnaly certain bands of <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#retainFirstBand()">retainFirstBand</A></B>()</CODE><BR> Retains inconditionnaly the first band of <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#retainLastBand()">retainLastBand</A></B>()</CODE><BR> Retains inconditionnaly the last band of <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#setImage(java.awt.image.RenderedImage)">setImage</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> Prepare this builder for the specified 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#setRenderingHint(java.awt.RenderingHints.Key, java.lang.Object)">setRenderingHint</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/RenderingHints.Key.html" title="class or interface in java.awt">RenderingHints.Key</A> key, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> value)</CODE><BR> Set a rendering hint tile to use for all images to be computed by this class. </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#setROI(javax.media.jai.ROI)">setROI</A></B>(<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> roi)</CODE><BR> Set the <cite>region of interest</cite> (ROI). </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#show()">show</A></B>()</CODE><BR> Shows the current <A HREF="../../../org/geotools/image/ImageWorker.html#image">image</A> in a window together with the operation chain as a <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/JTree.html" title="class or interface in javax.swing">tree</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#tile()">tile</A></B>()</CODE><BR> If the was not already tiled, tile it. </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#tileCacheEnabled(boolean)">tileCacheEnabled</A></B>(boolean status)</CODE><BR> If , disables the tile cache. </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#write(java.io.File)">write</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> output)</CODE><BR> Writes the <A HREF="../../../org/geotools/image/ImageWorker.html#image">image</A> to the specified file. </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#writeGIF(java.lang.Object, java.lang.String, float)">writeGIF</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> destination, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> compression, float compressionRate)</CODE><BR> Writes outs the image contained into this <A HREF="../../../org/geotools/image/ImageWorker.html" title="class in org.geotools.image"><CODE>ImageWorker</CODE></A> as a GIF using the provided destination , compression and compression rate. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/image/ImageWorker.html#writeJPEG(java.lang.Object, java.lang.String, float, boolean)">writeJPEG</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> destination, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> compression, float compressionRate, boolean nativeAcc)</CODE><BR> Writes outs the image contained into this <A HREF="../../../org/geotools/image/ImageWorker.html" title="class in org.geotools.image"><CODE>ImageWorker</CODE></A> as a JPEG using the provided destination , compression and compression rate. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/image/ImageWorker.html#writePNG(java.lang.Object, java.lang.String, float, boolean, boolean)">writePNG</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> destination, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> compression, float compressionRate, boolean nativeAcc, boolean paletted)</CODE><BR> Writes outs the image contained into this <A HREF="../../../org/geotools/image/ImageWorker.html" title="class in org.geotools.image"><CODE>ImageWorker</CODE></A> as a PNG using the provided destination , compression and compression rate. </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#xorConst(int[])">xorConst</A></B>(int[] values)</CODE><BR> The xorConst operation takes one rendered or renderable image and an array of integer constants, and performs a bit-wise logical "xor" between every pixel in the same band of the source and the constant from the corresponding array entry. </TD></TR></TABLE> <A NAME="methods_inherited_from_class_Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="TILING_ALLOWED"><!-- --></A><H3>TILING_ALLOWED</H3><PRE>public static final <A HREF="../../../org/geotools/factory/Hints.Key.html" title="class in org.geotools.factory">Hints.Key</A> <B>TILING_ALLOWED</B></PRE><DL><DD>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. The default is <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Boolean.html#TRUE" title="class or interface in java.lang"><CODE>TRUE</CODE></A>. The value is sometime useful for exporting images to some formats that doesn't support tiling (e.g. GIF).<P><DL><DT><B>See Also:</B><DD><A HREF="../../../org/geotools/image/ImageWorker.html#setRenderingHint(java.awt.RenderingHints.Key, java.lang.Object)"><CODE>setRenderingHint(java.awt.RenderingHints.Key, java.lang.Object)</CODE></A></DL></DL><HR><A NAME="image"><!-- --></A><H3>image</H3><PRE>protected <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> <B>image</B></PRE><DL><DD>The image being built.<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="ImageWorker(java.awt.image.RenderedImage)"><!-- --></A><H3>ImageWorker</H3><PRE>public <B>ImageWorker</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)</PRE><DL><DD>Creates a new builder for the specified image. The images to be computed
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -