⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 imagepresenter.html

📁 这个是java的quicktime for java 的详细使用文档
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<!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 Mon Jul 15 11:49:49 PDT 2002 --><TITLE>: Class  ImagePresenter</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>&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/ImagePresenter.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-all.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></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../quicktime/app/image/ImageDrawer.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../quicktime/app/image/ImageSequencer.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="ImagePresenter.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><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">quicktime.app.image</FONT><BR>Class  ImagePresenter</H2><PRE>java.lang.Object  |  +--<B>quicktime.app.image.ImagePresenter</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../quicktime/app/image/Compositable.html">Compositable</A>, <A HREF="../../../quicktime/app/display/Drawable.html">Drawable</A>, <A HREF="../../../quicktime/app/image/ImageSettable.html">ImageSettable</A>, <A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A>, <A HREF="../../../quicktime/app/spaces/Listener.html">Listener</A>, <A HREF="../../../quicktime/app/display/QTDrawable.html">QTDrawable</A>, <A HREF="../../../quicktime/app/image/Transformable.html">Transformable</A></DD></DL><DL><DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../quicktime/app/players/MoviePresenter.html">MoviePresenter</A>, <A HREF="../../../quicktime/app/image/QTEffectPresenter.html">QTEffectPresenter</A></DD></DL><HR><DL><DT>public class <B>ImagePresenter</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../quicktime/app/display/QTDrawable.html">QTDrawable</A>, <A HREF="../../../quicktime/app/image/Compositable.html">Compositable</A>, <A HREF="../../../quicktime/app/image/ImageSettable.html">ImageSettable</A></DL><P>This class represents an image that is loaded into memory. Its focus is on performance so if the image data that is presented to the ImagePresenter is in a format that is non-optimal for drawing the data will generally be converted to a format that is optimal, at the expense of a greater usage of memory (see setImageData methods). This process is controlled by the optimised redrawing flag, which if true (the default), may convert the image to a better format for drawing performance.<P><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== 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="../../../quicktime/app/image/ImagePresenter.html#ImagePresenter(quicktime.qd.QDRect)">ImagePresenter</A></B>(<A HREF="../../../quicktime/qd/QDRect.html">QDRect</A>&nbsp;initialSize)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates an emtpy ImagePresenter object - you will need to set the image data and description before this object is usable.</TD></TR></TABLE>&nbsp;<!-- ========== 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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/image/ImagePresenter.html#addedTo(java.lang.Object)">addedTo</A></B>(java.lang.Object&nbsp;interest)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method is called by the specified object when the instance of  the class that implements this interface is added to the object that is the source of the interest.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/image/ImagePresenter.html#doDraw()">doDraw</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is the method that blits the data directly to the destination QDGraphics.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../quicktime/app/image/ImagePresenter.html">ImagePresenter</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/image/ImagePresenter.html#fromFile(quicktime.io.QTFile)">fromFile</A></B>(<A HREF="../../../quicktime/io/QTFile.html">QTFile</A>&nbsp;qtFile)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This creates an ImagePresenter object from a file.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../quicktime/app/image/ImagePresenter.html">ImagePresenter</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/image/ImagePresenter.html#fromGraphicsImporter(quicktime.std.image.GraphicsImporter)">fromGraphicsImporter</A></B>(<A HREF="../../../quicktime/std/image/GraphicsImporter.html">GraphicsImporter</A>&nbsp;importer)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This creates an ImagePresenter object from a GraphicsImporter.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../quicktime/app/image/ImagePresenter.html">ImagePresenter</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/image/ImagePresenter.html#fromGraphicsImporterDrawer(quicktime.app.image.GraphicsImporterDrawer)">fromGraphicsImporterDrawer</A></B>(<A HREF="../../../quicktime/app/image/GraphicsImporterDrawer.html">GraphicsImporterDrawer</A>&nbsp;imageFile)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This creates an ImagePresenter object from an GraphicsImporterDrawer object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../quicktime/app/image/ImagePresenter.html">ImagePresenter</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/image/ImagePresenter.html#fromGWorld(quicktime.qd.QDGraphics)">fromGWorld</A></B>(<A HREF="../../../quicktime/qd/QDGraphics.html">QDGraphics</A>&nbsp;grafPort)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This creates an ImagePresenter object from the PixMap of the QDGraphics object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../quicktime/app/image/ImagePresenter.html">ImagePresenter</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/image/ImagePresenter.html#fromGWorld(quicktime.qd.QDGraphics, quicktime.qd.QDRect, int, int, int, quicktime.std.image.CodecComponent)">fromGWorld</A></B>(<A HREF="../../../quicktime/qd/QDGraphics.html">QDGraphics</A>&nbsp;port,           <A HREF="../../../quicktime/qd/QDRect.html">QDRect</A>&nbsp;rect,           int&nbsp;colorDepth,           int&nbsp;quality,           int&nbsp;codecType,           <A HREF="../../../quicktime/std/image/CodecComponent.html">CodecComponent</A>&nbsp;codec)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This creates an ImagePresenter object from PixMap source, bounds QDRect, color depth, compression quality, codec type,  and codec component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../quicktime/app/image/ImagePresenter.html">ImagePresenter</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/image/ImagePresenter.html#fromImageSequence(quicktime.app.image.ImageDataSequence, int)">fromImageSequence</A></B>(<A HREF="../../../quicktime/app/image/ImageDataSequence.html">ImageDataSequence</A>&nbsp;image,                  int&nbsp;nth)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This creates an ImagePresenter object from nth first image of any ImageDataSequence object</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../quicktime/app/image/ImagePresenter.html">ImagePresenter</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/image/ImagePresenter.html#fromImageSpec(quicktime.app.image.ImageSpec)">fromImageSpec</A></B>(<A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A>&nbsp;image)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This creates an ImagePresenter object from an ImageSpec object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../quicktime/app/image/ImagePresenter.html">ImagePresenter</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/image/ImagePresenter.html#fromPict(quicktime.qd.Pict)">fromPict</A></B>(<A HREF="../../../quicktime/qd/Pict.html">Pict</A>&nbsp;p)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This creates an ImagePresenter object from a Pict object that is stored in memory.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../quicktime/app/image/ImagePresenter.html">ImagePresenter</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/image/ImagePresenter.html#fromQTImage(quicktime.util.EncodedImage, quicktime.std.image.ImageDescription)">fromQTImage</A></B>(<A HREF="../../../quicktime/util/EncodedImage.html">EncodedImage</A>&nbsp;data,            <A HREF="../../../quicktime/std/image/ImageDescription.html">ImageDescription</A>&nbsp;desc)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This creates an ImagePresenter object from raw image data and ImageDescription.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../quicktime/qd/Region.html">Region</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/image/ImagePresenter.html#getClip()">getClip</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a region that defines the current clipping region for the object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../quicktime/std/image/ImageDescription.html">ImageDescription</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/image/ImagePresenter.html#getDescription()">getDescription</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method should return an ImageDescription that describes the image data that the class contains.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../quicktime/qd/QDRect.html">QDRect</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/image/ImagePresenter.html#getDisplayBounds()">getDisplayBounds</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;QTCanvas calls this method when it needs to ask the client for its boundary.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../quicktime/std/image/DSequence.html">DSequence</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/image/ImagePresenter.html#getDSequence()">getDSequence</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the DSequence that is used by the ImagePresenter.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../quicktime/std/image/GraphicsMode.html">GraphicsMode</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/image/ImagePresenter.html#getGraphicsMode()">getGraphicsMode</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This gets the current GraphicsMode for the compositor.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../quicktime/qd/QDGraphics.html">QDGraphics</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/image/ImagePresenter.html#getGWorld()">getGWorld</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;QTCanvas calls this method to get the destination QDGraphics of its client.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../quicktime/util/EncodedImage.html">EncodedImage</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/app/image/ImagePresenter.html#getImage()">getImage</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method returns the actual image data.</TD>

⌨️ 快捷键说明

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