📄 renderableimageop.html
字号:
<A NAME="getSources()"><!-- --></A><H3>getSources</H3><PRE>public <A HREF="../../../../java/util/Vector.html">Vector</A> <B>getSources</B>()</PRE><DL><DD>Returns a vector of RenderableImages that are the sources of image data for this RenderableImage. Note that this method may return an empty vector, to indicate that the image has no sources, or null, to indicate that no information is available.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../java/awt/image/renderable/RenderableImage.html#getSources()">getSources</A></CODE> in interface <CODE><A HREF="../../../../java/awt/image/renderable/RenderableImage.html">RenderableImage</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a (possibly empty) Vector of RenderableImages, or null.</DL></DD></DL><HR><A NAME="getProperty(java.lang.String)"><!-- --></A><H3>getProperty</H3><PRE>public <A HREF="../../../../java/lang/Object.html">Object</A> <B>getProperty</B>(<A HREF="../../../../java/lang/String.html">String</A> name)</PRE><DL><DD>Gets a property from the property set of this image. If the property name is not recognized, java.awt.Image.UndefinedProperty will be returned.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../java/awt/image/renderable/RenderableImage.html#getProperty(java.lang.String)">getProperty</A></CODE> in interface <CODE><A HREF="../../../../java/awt/image/renderable/RenderableImage.html">RenderableImage</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the property to get, as a String.<DT><B>Returns:</B><DD>a reference to the property Object, or the value java.awt.Image.UndefinedProperty.</DL></DD></DL><HR><A NAME="getPropertyNames()"><!-- --></A><H3>getPropertyNames</H3><PRE>public <A HREF="../../../../java/lang/String.html">String</A>[] <B>getPropertyNames</B>()</PRE><DL><DD>Return a list of names recognized by getProperty.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../java/awt/image/renderable/RenderableImage.html#getPropertyNames()">getPropertyNames</A></CODE> in interface <CODE><A HREF="../../../../java/awt/image/renderable/RenderableImage.html">RenderableImage</A></CODE></DL></DD></DL><HR><A NAME="isDynamic()"><!-- --></A><H3>isDynamic</H3><PRE>public boolean <B>isDynamic</B>()</PRE><DL><DD>Returns true if successive renderings (that is, calls to createRendering() or createScaledRendering()) with the same arguments may produce different results. This method may be used to determine whether an existing rendering may be cached and reused. The CRIF's isDynamic method will be called.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../java/awt/image/renderable/RenderableImage.html#isDynamic()">isDynamic</A></CODE> in interface <CODE><A HREF="../../../../java/awt/image/renderable/RenderableImage.html">RenderableImage</A></CODE></DL></DD></DL><HR><A NAME="getWidth()"><!-- --></A><H3>getWidth</H3><PRE>public float <B>getWidth</B>()</PRE><DL><DD>Gets the width in user coordinate space. By convention, the usual width of a RenderableImage is equal to the image's aspect ratio (width divided by height).<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../java/awt/image/renderable/RenderableImage.html#getWidth()">getWidth</A></CODE> in interface <CODE><A HREF="../../../../java/awt/image/renderable/RenderableImage.html">RenderableImage</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the width of the image in user coordinates.</DL></DD></DL><HR><A NAME="getHeight()"><!-- --></A><H3>getHeight</H3><PRE>public float <B>getHeight</B>()</PRE><DL><DD>Gets the height in user coordinate space. By convention, the usual height of a RenderedImage is equal to 1.0F.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../java/awt/image/renderable/RenderableImage.html#getHeight()">getHeight</A></CODE> in interface <CODE><A HREF="../../../../java/awt/image/renderable/RenderableImage.html">RenderableImage</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the height of the image in user coordinates.</DL></DD></DL><HR><A NAME="getMinX()"><!-- --></A><H3>getMinX</H3><PRE>public float <B>getMinX</B>()</PRE><DL><DD>Gets the minimum X coordinate of the rendering-independent image data.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../java/awt/image/renderable/RenderableImage.html#getMinX()">getMinX</A></CODE> in interface <CODE><A HREF="../../../../java/awt/image/renderable/RenderableImage.html">RenderableImage</A></CODE></DL></DD></DL><HR><A NAME="getMinY()"><!-- --></A><H3>getMinY</H3><PRE>public float <B>getMinY</B>()</PRE><DL><DD>Gets the minimum Y coordinate of the rendering-independent image data.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../java/awt/image/renderable/RenderableImage.html#getMinY()">getMinY</A></CODE> in interface <CODE><A HREF="../../../../java/awt/image/renderable/RenderableImage.html">RenderableImage</A></CODE></DL></DD></DL><HR><A NAME="setParameterBlock(java.awt.image.renderable.ParameterBlock)"><!-- --></A><H3>setParameterBlock</H3><PRE>public <A HREF="../../../../java/awt/image/renderable/ParameterBlock.html">ParameterBlock</A> <B>setParameterBlock</B>(<A HREF="../../../../java/awt/image/renderable/ParameterBlock.html">ParameterBlock</A> paramBlock)</PRE><DL><DD>Change the current ParameterBlock of the operation, allowing editing of image rendering chains. The effects of such a change will be visible when a new rendering is created from this RenderableImageOp or any dependent RenderableImageOp.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>paramBlock</CODE> - the new ParameterBlock.<DT><B>Returns:</B><DD>the old ParameterBlock.</DL></DD></DL><HR><A NAME="getParameterBlock()"><!-- --></A><H3>getParameterBlock</H3><PRE>public <A HREF="../../../../java/awt/image/renderable/ParameterBlock.html">ParameterBlock</A> <B>getParameterBlock</B>()</PRE><DL><DD>Returns a reference to the current parameter block.<DD><DL></DL></DD></DL><HR><A NAME="createScaledRendering(int, int, java.awt.RenderingHints)"><!-- --></A><H3>createScaledRendering</H3><PRE>public <A HREF="../../../../java/awt/image/RenderedImage.html">RenderedImage</A> <B>createScaledRendering</B>(int w, int h, <A HREF="../../../../java/awt/RenderingHints.html">RenderingHints</A> hints)</PRE><DL><DD>Creates a RenderedImage instance of this image with width w, and height h in pixels. The RenderContext is built automatically with an appropriate usr2dev transform and an area of interest of the full image. All the rendering hints come from hints passed in. <p> If w == 0, it will be taken to equal Math.round(h*(getWidth()/getHeight())). Similarly, if h == 0, it will be taken to equal Math.round(w*(getHeight()/getWidth())). One of w or h must be non-zero or else an IllegalArgumentException will be thrown. <p> The created RenderedImage may have a property identified by the String HINTS_OBSERVED to indicate which RenderingHints were used to create the image. In addition any RenderedImages that are obtained via the getSources() method on the created RenderedImage may have such a property.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../java/awt/image/renderable/RenderableImage.html#createScaledRendering(int, int, java.awt.RenderingHints)">createScaledRendering</A></CODE> in interface <CODE><A HREF="../../../../java/awt/image/renderable/RenderableImage.html">RenderableImage</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>w</CODE> - the width of rendered image in pixels, or 0.<DD><CODE>h</CODE> - the height of rendered image in pixels, or 0.<DD><CODE>hints</CODE> - a RenderingHints object containg hints.<DT><B>Returns:</B><DD>a RenderedImage containing the rendered data.</DL></DD></DL><HR><A NAME="createDefaultRendering()"><!-- --></A><H3>createDefaultRendering</H3><PRE>public <A HREF="../../../../java/awt/image/RenderedImage.html">RenderedImage</A> <B>createDefaultRendering</B>()</PRE><DL><DD>Gets a RenderedImage instance of this image with a default width and height in pixels. The RenderContext is built automatically with an appropriate usr2dev transform and an area of interest of the full image. All the rendering hints come from hints passed in. Implementors of this interface must be sure that there is a defined default width and height.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../java/awt/image/renderable/RenderableImage.html#createDefaultRendering()">createDefaultRendering</A></CODE> in interface <CODE><A HREF="../../../../java/awt/image/renderable/RenderableImage.html">RenderableImage</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a RenderedImage containing the rendered data.</DL></DD></DL><HR><A NAME="createRendering(java.awt.image.renderable.RenderContext)"><!-- --></A><H3>createRendering</H3><PRE>public <A HREF="../../../../java/awt/image/RenderedImage.html">RenderedImage</A> <B>createRendering</B>(<A HREF="../../../../java/awt/image/renderable/RenderContext.html">RenderContext</A> renderContext)</PRE><DL><DD>Creates a RenderedImage which represents this RenderableImageOp (including its Renderable sources) rendered according to the given RenderContext. <p> This method supports chaining of either Renderable or RenderedImage operations. If sources in the ParameterBlock used to construct the RenderableImageOp are RenderableImages, then a three step process is followed: <ol> <li> mapRenderContext() is called on the associated CRIF for each RenderableImage source; <li> createRendering() is called on each of the RenderableImage sources using the backwards-mapped RenderContexts obtained in step 1, resulting in a rendering of each source; <li> ContextualRenderedImageFactory.create() is called with a new ParameterBlock containing the parameters of the RenderableImageOp and the RenderedImages that were created by the createRendering() calls. </ol> <p> If the elements of the source Vector of the ParameterBlock used to construct the RenderableImageOp are instances of RenderedImage, then the CRIF.create() method is called immediately using the original ParameterBlock. This provides a basis case for the recursion. <p> The created RenderedImage may have a property identified by the String HINTS_OBSERVED to indicate which RenderingHints (from the RenderContext) were used to create the image. In addition any RenderedImages that are obtained via the getSources() method on the created RenderedImage may have such a property.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../java/awt/image/renderable/RenderableImage.html#createRendering(java.awt.image.renderable.RenderContext)">createRendering</A></CODE> in interface <CODE><A HREF="../../../../java/awt/image/renderable/RenderableImage.html">RenderableImage</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>renderContext</CODE> - The RenderContext to use to perform the rendering.<DT><B>Returns:</B><DD>a RenderedImage containing the desired output image.</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> </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/RenderableImageOp.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/renderable/ParameterBlock.html"><B>PREV CLASS</B></A> <A HREF="../../../../java/awt/image/renderable/RenderableImageProducer.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="RenderableImageOp.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -