convolveop.html

来自「API資料大全」· HTML 代码 · 共 549 行 · 第 1/2 页

HTML
549
字号
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="EDGE_ZERO_FILL"><!-- --></A><H3>EDGE_ZERO_FILL</H3><PRE>public static final int <B>EDGE_ZERO_FILL</B></PRE><DL><DD>Pixels at the edge of the destination image are set to zero.  This is the default.</DL><HR><A NAME="EDGE_NO_OP"><!-- --></A><H3>EDGE_NO_OP</H3><PRE>public static final int <B>EDGE_NO_OP</B></PRE><DL><DD>Pixels at the edge of the source image are copied to the corresponding pixels in the destination without modification.</DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="ConvolveOp(java.awt.image.Kernel, int, java.awt.RenderingHints)"><!-- --></A><H3>ConvolveOp</H3><PRE>public <B>ConvolveOp</B>(<A HREF="../../../java/awt/image/Kernel.html">Kernel</A>&nbsp;kernel,                  int&nbsp;edgeCondition,                  <A HREF="../../../java/awt/RenderingHints.html">RenderingHints</A>&nbsp;hints)</PRE><DL><DD>Constructs a ConvolveOp given a Kernel, an edge condition, and a RenderingHints object (which may be null).<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/image/Kernel.html"><CODE>Kernel</CODE></A>, <A HREF="../../../java/awt/image/ConvolveOp.html#EDGE_NO_OP"><CODE>EDGE_NO_OP</CODE></A>, <A HREF="../../../java/awt/image/ConvolveOp.html#EDGE_ZERO_FILL"><CODE>EDGE_ZERO_FILL</CODE></A>, <A HREF="../../../java/awt/RenderingHints.html"><CODE>RenderingHints</CODE></A></DL></DD></DL><HR><A NAME="ConvolveOp(java.awt.image.Kernel)"><!-- --></A><H3>ConvolveOp</H3><PRE>public <B>ConvolveOp</B>(<A HREF="../../../java/awt/image/Kernel.html">Kernel</A>&nbsp;kernel)</PRE><DL><DD>Constructs a ConvolveOp given a Kernel.  The edge condition will be EDGE_ZERO_FILL.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/image/Kernel.html"><CODE>Kernel</CODE></A>, <A HREF="../../../java/awt/image/ConvolveOp.html#EDGE_ZERO_FILL"><CODE>EDGE_ZERO_FILL</CODE></A></DL></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getEdgeCondition()"><!-- --></A><H3>getEdgeCondition</H3><PRE>public int <B>getEdgeCondition</B>()</PRE><DL><DD>Returns the edge condition.<DD><DL></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/image/ConvolveOp.html#EDGE_NO_OP"><CODE>EDGE_NO_OP</CODE></A>, <A HREF="../../../java/awt/image/ConvolveOp.html#EDGE_ZERO_FILL"><CODE>EDGE_ZERO_FILL</CODE></A></DL></DD></DL><HR><A NAME="getKernel()"><!-- --></A><H3>getKernel</H3><PRE>public final <A HREF="../../../java/awt/image/Kernel.html">Kernel</A> <B>getKernel</B>()</PRE><DL><DD>Returns the Kernel.<DD><DL></DL></DD></DL><HR><A NAME="filter(java.awt.image.BufferedImage, java.awt.image.BufferedImage)"><!-- --></A><H3>filter</H3><PRE>public final <A HREF="../../../java/awt/image/BufferedImage.html">BufferedImage</A> <B>filter</B>(<A HREF="../../../java/awt/image/BufferedImage.html">BufferedImage</A>&nbsp;src,                                  <A HREF="../../../java/awt/image/BufferedImage.html">BufferedImage</A>&nbsp;dst)</PRE><DL><DD>Performs a convolution on BufferedImages.  Each component of the source image will be convolved (including the alpha component, if present). If the color model in the source image is not the same as that in the destination image, the pixels will be converted in the destination.  If the destination image is null, a BufferedImage will be created with the source ColorModel. The IllegalArgumentException may be thrown if the source is the same as the destination.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/awt/image/BufferedImageOp.html#filter(java.awt.image.BufferedImage, java.awt.image.BufferedImage)">filter</A></CODE> in interface <CODE><A HREF="../../../java/awt/image/BufferedImageOp.html">BufferedImageOp</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>src</CODE> - the source <code>BufferedImage</code> to filter<DD><CODE>dst</CODE> - the destination <code>BufferedImage</code> for the         filtered <code>src</code><DT><B>Returns:</B><DD>the filtered <code>BufferedImage</code><DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/NullPointerException.html">NullPointerException</A></CODE> - if <code>src</code> is <code>null</code><DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if <code>src</code> equals         <code>dst</code><DD><CODE><A HREF="../../../java/awt/image/ImagingOpException.html">ImagingOpException</A></CODE> - if <code>src</code> cannot be filtered</DL></DD></DL><HR><A NAME="filter(java.awt.image.Raster, java.awt.image.WritableRaster)"><!-- --></A><H3>filter</H3><PRE>public final <A HREF="../../../java/awt/image/WritableRaster.html">WritableRaster</A> <B>filter</B>(<A HREF="../../../java/awt/image/Raster.html">Raster</A>&nbsp;src,                                   <A HREF="../../../java/awt/image/WritableRaster.html">WritableRaster</A>&nbsp;dst)</PRE><DL><DD>Performs a convolution on Rasters.  Each band of the source Raster will be convolved. The source and destination must have the same number of bands. If the destination Raster is null, a new Raster will be created. The IllegalArgumentException may be thrown if the source is the same as the destination.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/awt/image/RasterOp.html#filter(java.awt.image.Raster, java.awt.image.WritableRaster)">filter</A></CODE> in interface <CODE><A HREF="../../../java/awt/image/RasterOp.html">RasterOp</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>src</CODE> - the source <code>Raster</code> to filter<DD><CODE>dst</CODE> - the destination <code>WritableRaster</code> for the         filtered <code>src</code><DT><B>Returns:</B><DD>the filtered <code>WritableRaster</code><DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/NullPointerException.html">NullPointerException</A></CODE> - if <code>src</code> is <code>null</code><DD><CODE><A HREF="../../../java/awt/image/ImagingOpException.html">ImagingOpException</A></CODE> - if <code>src</code> and <code>dst</code>         do not have the same number of bands<DD><CODE><A HREF="../../../java/awt/image/ImagingOpException.html">ImagingOpException</A></CODE> - if <code>src</code> cannot be filtered<DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if <code>src</code> equals          <code>dst</code></DL></DD></DL><HR><A NAME="createCompatibleDestImage(java.awt.image.BufferedImage, java.awt.image.ColorModel)"><!-- --></A><H3>createCompatibleDestImage</H3><PRE>public <A HREF="../../../java/awt/image/BufferedImage.html">BufferedImage</A> <B>createCompatibleDestImage</B>(<A HREF="../../../java/awt/image/BufferedImage.html">BufferedImage</A>&nbsp;src,                                               <A HREF="../../../java/awt/image/ColorModel.html">ColorModel</A>&nbsp;destCM)</PRE><DL><DD>Creates a zeroed destination image with the correct size and number  of bands.  If destCM is null, an appropriate ColorModel will be used.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/awt/image/BufferedImageOp.html#createCompatibleDestImage(java.awt.image.BufferedImage, java.awt.image.ColorModel)">createCompatibleDestImage</A></CODE> in interface <CODE><A HREF="../../../java/awt/image/BufferedImageOp.html">BufferedImageOp</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>src</CODE> - Source image for the filter operation.<DD><CODE>destCM</CODE> - ColorModel of the destination.  Can be null.</DL></DD></DL><HR><A NAME="createCompatibleDestRaster(java.awt.image.Raster)"><!-- --></A><H3>createCompatibleDestRaster</H3><PRE>public <A HREF="../../../java/awt/image/WritableRaster.html">WritableRaster</A> <B>createCompatibleDestRaster</B>(<A HREF="../../../java/awt/image/Raster.html">Raster</A>&nbsp;src)</PRE><DL><DD>Creates a zeroed destination Raster with the correct size and number  of bands, given this source.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/awt/image/RasterOp.html#createCompatibleDestRaster(java.awt.image.Raster)">createCompatibleDestRaster</A></CODE> in interface <CODE><A HREF="../../../java/awt/image/RasterOp.html">RasterOp</A></CODE></DL></DD></DL><HR><A NAME="getBounds2D(java.awt.image.BufferedImage)"><!-- --></A><H3>getBounds2D</H3><PRE>public final <A HREF="../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A> <B>getBounds2D</B>(<A HREF="../../../java/awt/image/BufferedImage.html">BufferedImage</A>&nbsp;src)</PRE><DL><DD>Returns the bounding box of the filtered destination image.  Since this is not a geometric operation, the bounding box does not change.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/awt/image/BufferedImageOp.html#getBounds2D(java.awt.image.BufferedImage)">getBounds2D</A></CODE> in interface <CODE><A HREF="../../../java/awt/image/BufferedImageOp.html">BufferedImageOp</A></CODE></DL></DD></DL><HR><A NAME="getBounds2D(java.awt.image.Raster)"><!-- --></A><H3>getBounds2D</H3><PRE>public final <A HREF="../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A> <B>getBounds2D</B>(<A HREF="../../../java/awt/image/Raster.html">Raster</A>&nbsp;src)</PRE><DL><DD>Returns the bounding box of the filtered destination Raster.  Since this is not a geometric operation, the bounding box does not change.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/awt/image/RasterOp.html#getBounds2D(java.awt.image.Raster)">getBounds2D</A></CODE> in interface <CODE><A HREF="../../../java/awt/image/RasterOp.html">RasterOp</A></CODE></DL></DD></DL><HR><A NAME="getPoint2D(java.awt.geom.Point2D, java.awt.geom.Point2D)"><!-- --></A><H3>getPoint2D</H3><PRE>public final <A HREF="../../../java/awt/geom/Point2D.html">Point2D</A> <B>getPoint2D</B>(<A HREF="../../../java/awt/geom/Point2D.html">Point2D</A>&nbsp;srcPt,                                <A HREF="../../../java/awt/geom/Point2D.html">Point2D</A>&nbsp;dstPt)</PRE><DL><DD>Returns the location of the destination point given a point in the source.  If dstPt is non-null, it will be used to hold the return value.  Since this is not a geometric operation, the srcPt will equal the dstPt.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/awt/image/BufferedImageOp.html#getPoint2D(java.awt.geom.Point2D, java.awt.geom.Point2D)">getPoint2D</A></CODE> in interface <CODE><A HREF="../../../java/awt/image/BufferedImageOp.html">BufferedImageOp</A></CODE></DL></DD></DL><HR><A NAME="getRenderingHints()"><!-- --></A><H3>getRenderingHints</H3><PRE>public final <A HREF="../../../java/awt/RenderingHints.html">RenderingHints</A> <B>getRenderingHints</B>()</PRE><DL><DD>Returns the rendering hints for this op.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/awt/image/BufferedImageOp.html#getRenderingHints()">getRenderingHints</A></CODE> in interface <CODE><A HREF="../../../java/awt/image/BufferedImageOp.html">BufferedImageOp</A></CODE></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ConvolveOp.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../java/awt/image/ComponentSampleModel.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../java/awt/image/CropImageFilter.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="ConvolveOp.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation  contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font></BODY></HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?