replicatescalefilter.html

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

HTML
539
字号
<TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/awt/image/ImageFilter.html#clone()">clone</A>, <A HREF="../../../java/awt/image/ImageFilter.html#getFilterInstance(java.awt.image.ImageConsumer)">getFilterInstance</A>, <A HREF="../../../java/awt/image/ImageFilter.html#imageComplete(int)">imageComplete</A>, <A HREF="../../../java/awt/image/ImageFilter.html#resendTopDownLeftRight(java.awt.image.ImageProducer)">resendTopDownLeftRight</A>, <A HREF="../../../java/awt/image/ImageFilter.html#setColorModel(java.awt.image.ColorModel)">setColorModel</A>, <A HREF="../../../java/awt/image/ImageFilter.html#setHints(int)">setHints</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><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#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 =========== --><A NAME="field_detail"><!-- --></A><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="srcWidth"><!-- --></A><H3>srcWidth</H3><PRE>protected int <B>srcWidth</B></PRE><DL><DD>The width of the source image.</DL><HR><A NAME="srcHeight"><!-- --></A><H3>srcHeight</H3><PRE>protected int <B>srcHeight</B></PRE><DL><DD>The height of the source image.</DL><HR><A NAME="destWidth"><!-- --></A><H3>destWidth</H3><PRE>protected int <B>destWidth</B></PRE><DL><DD>The target width to scale the image.</DL><HR><A NAME="destHeight"><!-- --></A><H3>destHeight</H3><PRE>protected int <B>destHeight</B></PRE><DL><DD>The target height to scale the image.</DL><HR><A NAME="srcrows"><!-- --></A><H3>srcrows</H3><PRE>protected int[] <B>srcrows</B></PRE><DL><DD>An <code>int</code> array containing information about a  row of pixels.</DL><HR><A NAME="srccols"><!-- --></A><H3>srccols</H3><PRE>protected int[] <B>srccols</B></PRE><DL><DD>An <code>int</code> array containing information about a column of pixels.</DL><HR><A NAME="outpixbuf"><!-- --></A><H3>outpixbuf</H3><PRE>protected <A HREF="../../../java/lang/Object.html">Object</A> <B>outpixbuf</B></PRE><DL><DD>A <code>byte</code> array initialized with a size of <A HREF="../../../java/awt/image/ReplicateScaleFilter.html#destWidth"><CODE>destWidth</CODE></A> and used to deliver a row of pixel data to the <A HREF="../../../java/awt/image/ImageConsumer.html"><CODE>ImageConsumer</CODE></A>.</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="ReplicateScaleFilter(int, int)"><!-- --></A><H3>ReplicateScaleFilter</H3><PRE>public <B>ReplicateScaleFilter</B>(int&nbsp;width,                            int&nbsp;height)</PRE><DL><DD>Constructs a ReplicateScaleFilter that scales the pixels from its source Image as specified by the width and height parameters.<DD><DL><DT><B>Parameters:</B><DD><CODE>width</CODE> - the target width to scale the image<DD><CODE>height</CODE> - the target height to scale the image<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if <code>width</code> equals          zero or <code>height</code> equals zero</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="setProperties(java.util.Hashtable)"><!-- --></A><H3>setProperties</H3><PRE>public void <B>setProperties</B>(<A HREF="../../../java/util/Hashtable.html">Hashtable</A>&nbsp;props)</PRE><DL><DD>Passes along the properties from the source object after adding a property indicating the scale applied. <p> Note: This method is intended to be called by the  <code>ImageProducer</code> of the <code>Image</code> whose pixels  are being filtered. Developers using this class to filter pixels from an image should avoid calling this method directly since that operation could interfere with the filtering operation.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/awt/image/ImageFilter.html#setProperties(java.util.Hashtable)">setProperties</A></CODE> in class <CODE><A HREF="../../../java/awt/image/ImageFilter.html">ImageFilter</A></CODE></DL></DD></DL><HR><A NAME="setDimensions(int, int)"><!-- --></A><H3>setDimensions</H3><PRE>public void <B>setDimensions</B>(int&nbsp;w,                          int&nbsp;h)</PRE><DL><DD>Override the dimensions of the source image and pass the dimensions of the new scaled size to the ImageConsumer. <p> Note: This method is intended to be called by the  <code>ImageProducer</code> of the <code>Image</code> whose pixels  are being filtered. Developers using this class to filter pixels from an image should avoid calling this method directly since that operation could interfere with the filtering operation.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/awt/image/ImageFilter.html#setDimensions(int, int)">setDimensions</A></CODE> in class <CODE><A HREF="../../../java/awt/image/ImageFilter.html">ImageFilter</A></CODE></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/image/ImageConsumer.html"><CODE>ImageConsumer</CODE></A></DL></DD></DL><HR><A NAME="setPixels(int, int, int, int, java.awt.image.ColorModel, byte[], int, int)"><!-- --></A><H3>setPixels</H3><PRE>public void <B>setPixels</B>(int&nbsp;x,                      int&nbsp;y,                      int&nbsp;w,                      int&nbsp;h,                      <A HREF="../../../java/awt/image/ColorModel.html">ColorModel</A>&nbsp;model,                      byte[]&nbsp;pixels,                      int&nbsp;off,                      int&nbsp;scansize)</PRE><DL><DD>Choose which rows and columns of the delivered byte pixels are needed for the destination scaled image and pass through just those rows and columns that are needed, replicated as necessary. <p> Note: This method is intended to be called by the  <code>ImageProducer</code> of the <code>Image</code> whose pixels  are being filtered. Developers using this class to filter pixels from an image should avoid calling this method directly since that operation could interfere with the filtering operation.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/awt/image/ImageFilter.html#setPixels(int, int, int, int, java.awt.image.ColorModel, byte[], int, int)">setPixels</A></CODE> in class <CODE><A HREF="../../../java/awt/image/ImageFilter.html">ImageFilter</A></CODE></DL></DD><DD>Following copied from class: <CODE>java.awt.image.ImageFilter</CODE></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/image/ImageConsumer.html#setPixels(int, int, int, int, java.awt.image.ColorModel, byte[], int, int)"><CODE>ImageConsumer.setPixels(int, int, int, int, java.awt.image.ColorModel, byte[], int, int)</CODE></A></DL></DD></DL><HR><A NAME="setPixels(int, int, int, int, java.awt.image.ColorModel, int[], int, int)"><!-- --></A><H3>setPixels</H3><PRE>public void <B>setPixels</B>(int&nbsp;x,                      int&nbsp;y,                      int&nbsp;w,                      int&nbsp;h,                      <A HREF="../../../java/awt/image/ColorModel.html">ColorModel</A>&nbsp;model,                      int[]&nbsp;pixels,                      int&nbsp;off,                      int&nbsp;scansize)</PRE><DL><DD>Choose which rows and columns of the delivered int pixels are needed for the destination scaled image and pass through just those rows and columns that are needed, replicated as necessary. <p> Note: This method is intended to be called by the  <code>ImageProducer</code> of the <code>Image</code> whose pixels  are being filtered. Developers using this class to filter pixels from an image should avoid calling this method directly since that operation could interfere with the filtering operation.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/awt/image/ImageFilter.html#setPixels(int, int, int, int, java.awt.image.ColorModel, int[], int, int)">setPixels</A></CODE> in class <CODE><A HREF="../../../java/awt/image/ImageFilter.html">ImageFilter</A></CODE></DL></DD><DD>Following copied from class: <CODE>java.awt.image.ImageFilter</CODE></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/image/ImageConsumer.html#setPixels(int, int, int, int, java.awt.image.ColorModel, byte[], int, int)"><CODE>ImageConsumer.setPixels(int, int, int, int, java.awt.image.ColorModel, byte[], int, int)</CODE></A></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/ReplicateScaleFilter.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/Raster.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../java/awt/image/RescaleOp.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="ReplicateScaleFilter.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 + -
显示快捷键?