replicatescalefilter.html
来自「API資料大全」· HTML 代码 · 共 539 行 · 第 1/2 页
HTML
539 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Thu Apr 27 23:34:13 PDT 2000 --><TITLE>Java 2 Platform SE v1.3: Class ReplicateScaleFilter</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ReplicateScaleFilter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../java/awt/image/Raster.html"><B>PREV CLASS</B></A> <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> <A HREF="ReplicateScaleFilter.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">java.awt.image</FONT><BR>Class ReplicateScaleFilter</H2><PRE><A HREF="../../../java/lang/Object.html">java.lang.Object</A> | +--<A HREF="../../../java/awt/image/ImageFilter.html">java.awt.image.ImageFilter</A> | +--<B>java.awt.image.ReplicateScaleFilter</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../java/lang/Cloneable.html">Cloneable</A>, <A HREF="../../../java/awt/image/ImageConsumer.html">ImageConsumer</A></DD></DL><DL><DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../java/awt/image/AreaAveragingScaleFilter.html">AreaAveragingScaleFilter</A></DD></DL><HR><DL><DT>public class <B>ReplicateScaleFilter</B><DT>extends <A HREF="../../../java/awt/image/ImageFilter.html">ImageFilter</A></DL><P>An ImageFilter class for scaling images using the simplest algorithm. This class extends the basic ImageFilter Class to scale an existing image and provide a source for a new image containing the resampled image. The pixels in the source image are sampled to produce pixels for an image of the specified size by replicating rows and columns of pixels to scale up or omitting rows and columns of pixels to scale down. It is meant to be used in conjunction with a FilteredImageSource object to produce scaled versions of existing images.<P><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/image/FilteredImageSource.html"><CODE>FilteredImageSource</CODE></A>, <A HREF="../../../java/awt/image/ImageFilter.html"><CODE>ImageFilter</CODE></A></DL><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Field Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/ReplicateScaleFilter.html#destHeight">destHeight</A></B></CODE><BR> The target height to scale the image.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/ReplicateScaleFilter.html#destWidth">destWidth</A></B></CODE><BR> The target width to scale the image.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../java/lang/Object.html">Object</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/ReplicateScaleFilter.html#outpixbuf">outpixbuf</A></B></CODE><BR> 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>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected int[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/ReplicateScaleFilter.html#srccols">srccols</A></B></CODE><BR> An <code>int</code> array containing information about a column of pixels.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/ReplicateScaleFilter.html#srcHeight">srcHeight</A></B></CODE><BR> The height of the source image.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected int[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/ReplicateScaleFilter.html#srcrows">srcrows</A></B></CODE><BR> An <code>int</code> array containing information about a row of pixels.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/ReplicateScaleFilter.html#srcWidth">srcWidth</A></B></CODE><BR> The width of the source image.</TD></TR></TABLE> <A NAME="fields_inherited_from_class_java.awt.image.ImageFilter"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields inherited from class java.awt.image.<A HREF="../../../java/awt/image/ImageFilter.html">ImageFilter</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/awt/image/ImageFilter.html#consumer">consumer</A></CODE></TD></TR></TABLE> <A NAME="fields_inherited_from_class_java.awt.image.ImageConsumer"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields inherited from interface java.awt.image.<A HREF="../../../java/awt/image/ImageConsumer.html">ImageConsumer</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/awt/image/ImageConsumer.html#COMPLETESCANLINES">COMPLETESCANLINES</A>, <A HREF="../../../java/awt/image/ImageConsumer.html#IMAGEABORTED">IMAGEABORTED</A>, <A HREF="../../../java/awt/image/ImageConsumer.html#IMAGEERROR">IMAGEERROR</A>, <A HREF="../../../java/awt/image/ImageConsumer.html#RANDOMPIXELORDER">RANDOMPIXELORDER</A>, <A HREF="../../../java/awt/image/ImageConsumer.html#SINGLEFRAME">SINGLEFRAME</A>, <A HREF="../../../java/awt/image/ImageConsumer.html#SINGLEFRAMEDONE">SINGLEFRAMEDONE</A>, <A HREF="../../../java/awt/image/ImageConsumer.html#SINGLEPASS">SINGLEPASS</A>, <A HREF="../../../java/awt/image/ImageConsumer.html#STATICIMAGEDONE">STATICIMAGEDONE</A>, <A HREF="../../../java/awt/image/ImageConsumer.html#TOPDOWNLEFTRIGHT">TOPDOWNLEFTRIGHT</A></CODE></TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><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="../../../java/awt/image/ReplicateScaleFilter.html#ReplicateScaleFilter(int, int)">ReplicateScaleFilter</A></B>(int width, int height)</CODE><BR> Constructs a ReplicateScaleFilter that scales the pixels from its source Image as specified by the width and height parameters.</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/ReplicateScaleFilter.html#setDimensions(int, int)">setDimensions</A></B>(int w, int h)</CODE><BR> Override the dimensions of the source image and pass the dimensions of the new scaled size to the ImageConsumer.</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="../../../java/awt/image/ReplicateScaleFilter.html#setPixels(int, int, int, int, java.awt.image.ColorModel, byte[], int, int)">setPixels</A></B>(int x, int y, int w, int h, <A HREF="../../../java/awt/image/ColorModel.html">ColorModel</A> model, byte[] pixels, int off, int scansize)</CODE><BR> 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.</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="../../../java/awt/image/ReplicateScaleFilter.html#setPixels(int, int, int, int, java.awt.image.ColorModel, int[], int, int)">setPixels</A></B>(int x, int y, int w, int h, <A HREF="../../../java/awt/image/ColorModel.html">ColorModel</A> model, int[] pixels, int off, int scansize)</CODE><BR> 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.</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="../../../java/awt/image/ReplicateScaleFilter.html#setProperties(java.util.Hashtable)">setProperties</A></B>(<A HREF="../../../java/util/Hashtable.html">Hashtable</A> props)</CODE><BR> Passes along the properties from the source object after adding a property indicating the scale applied.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.awt.image.ImageFilter"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.awt.image.<A HREF="../../../java/awt/image/ImageFilter.html">ImageFilter</A></B></TD></TR>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?