rescaleop.html

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

HTML
528
字号
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="../../../java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/lang/Object.html#clone()">clone</A>, <A HREF="../../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../../java/lang/Object.html#toString()">toString</A>, <A HREF="../../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= 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="RescaleOp(float[], float[], java.awt.RenderingHints)"><!-- --></A><H3>RescaleOp</H3><PRE>public <B>RescaleOp</B>(float[]&nbsp;scaleFactors,                 float[]&nbsp;offsets,                 <A HREF="../../../java/awt/RenderingHints.html">RenderingHints</A>&nbsp;hints)</PRE><DL><DD>Constructs a new RescaleOp with the desired scale factors and offsets.  The length of the scaleFactor and offset arrays must meet the restrictions stated in the class comments above. The RenderingHints argument may be null.</DL><HR><A NAME="RescaleOp(float, float, java.awt.RenderingHints)"><!-- --></A><H3>RescaleOp</H3><PRE>public <B>RescaleOp</B>(float&nbsp;scaleFactor,                 float&nbsp;offset,                 <A HREF="../../../java/awt/RenderingHints.html">RenderingHints</A>&nbsp;hints)</PRE><DL><DD>Constructs a new RescaleOp with the desired scale factor and offset.  The scaleFactor and offset will be applied to all bands in a source Raster and to all color (but not alpha) components in a BufferedImage. The RenderingHints argument may be null.</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="getScaleFactors(float[])"><!-- --></A><H3>getScaleFactors</H3><PRE>public final float[] <B>getScaleFactors</B>(float[]&nbsp;scaleFactors)</PRE><DL><DD>Returns the scale factors in the given array. The array is also returned for convenience.  If scaleFactors is null, a new array will be allocated.<DD><DL></DL></DD></DL><HR><A NAME="getOffsets(float[])"><!-- --></A><H3>getOffsets</H3><PRE>public final float[] <B>getOffsets</B>(float[]&nbsp;offsets)</PRE><DL><DD>Returns the offsets in the given array. The array is also returned for convenience.  If offsets is null, a new array will be allocated.<DD><DL></DL></DD></DL><HR><A NAME="getNumFactors()"><!-- --></A><H3>getNumFactors</H3><PRE>public final int <B>getNumFactors</B>()</PRE><DL><DD>Returns the number of scaling factors and offsets used in this RescaleOp.<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>Rescales the source BufferedImage.   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. An IllegalArgumentException may be thrown if the number of scaling factors/offsets in this object does not meet the restrictions stated in the class comments above, or if the source image has an IndexColorModel.<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></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>Rescales the pixel data in the source Raster. If the destination Raster is null, a new Raster will be created. The source and destination must have the same number of bands. Otherwise, an IllegalArgumentException is thrown. Note that the number of scaling factors/offsets in this object must meet the restrictions stated in the class comments above. Otherwise, an IllegalArgumentException is thrown.<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></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 rescaled 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 rescaled 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="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.<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.  If null, the                  ColorModel of the source will be used.</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="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/RescaleOp.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/ReplicateScaleFilter.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../java/awt/image/RGBImageFilter.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="RescaleOp.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;FIELD&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;FIELD&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 + -
显示快捷键?