📄 imageutil.html
字号:
<DL><DD>This is the OSType that is used to create hit test data for kAnimationCodec compressed images</DL><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ 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="makeTransparent(quicktime.app.image.ImageSpec, quicktime.qd.QDColor)"><!-- --></A><H3>makeTransparent</H3><PRE>public static <A HREF="../../../quicktime/app/image/ImageDataSequence.html">ImageDataSequence</A> <B>makeTransparent</B>(<A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A> image, <A HREF="../../../quicktime/qd/QDColor.html">QDColor</A> keyColor) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Takes an ImageSpec object and recompresses the images so that the images have the keyColor set as a transparent colour that will not draw. It uses the animation codec to do this, and there is no loss in quality. This will also have a default behaviour of setting the hit test region of the image data to the pixels that are drawn when the hitTestImageData flags are specified. The images will be compressed at a default setting of 16bit resolution.<DD><DL><DT><B>Parameters:</B><DD><CODE>images</CODE> - the images to be worked<DD><CODE>keyColor</CODE> - the color that will be removed from the images appearance<DT><B>Returns:</B><DD>an ImageDataSequence object that contains the new images</DL></DD></DL><HR><A NAME="makeTransparent(quicktime.app.image.ImageSpec, quicktime.qd.QDColor, quicktime.qd.QDGraphics)"><!-- --></A><H3>makeTransparent</H3><PRE>public static <A HREF="../../../quicktime/app/image/ImageDataSequence.html">ImageDataSequence</A> <B>makeTransparent</B>(<A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A> image, <A HREF="../../../quicktime/qd/QDColor.html">QDColor</A> keyColor, <A HREF="../../../quicktime/qd/QDGraphics.html">QDGraphics</A> gw) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Takes an ImageSpec object and recompresses the images so that the images have the keyColor set as a transparent colour that will not draw. It uses the animation codec to do this, and there is no loss in quality. This will use the depth of the supplied QDGraphics to compress into - pixel sizes other than 8, 16, or 32 will throw an exception. This will also have a default behaviour of setting the hit test region of the image data to the pixels that are drawn when the hitTestImageData flags are specified.<DD><DL><DT><B>Parameters:</B><DD><CODE>keyColor</CODE> - the color that will be removed from the images appearance<DD><CODE>gw</CODE> - the QDGraphics that is used to contain the depth and pixel data of the recompressed image(s). This graphics should be the size of the image (or a portion) that will be used to determine which parts of the image are compressed.<DT><B>Returns:</B><DD>an ImageDataSequence object that contains the new images</DL></DD></DL><HR><A NAME="makeTransparent(quicktime.app.image.ImageSpec, quicktime.qd.QDColor, quicktime.qd.QDGraphics, quicktime.qd.Region)"><!-- --></A><H3>makeTransparent</H3><PRE>public static <A HREF="../../../quicktime/app/image/ImageDataSequence.html">ImageDataSequence</A> <B>makeTransparent</B>(<A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A> image, <A HREF="../../../quicktime/qd/QDColor.html">QDColor</A> keyColor, <A HREF="../../../quicktime/qd/QDGraphics.html">QDGraphics</A> gw, <A HREF="../../../quicktime/qd/Region.html">Region</A> r) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Takes an ImageSpec object and recompresses the images so that the images have the keyColor set as a transparent colour that will not draw. It uses the animation codec to do this, and there is no loss in quality. This will use the depth of the supplied QDGraphics to compress into - pixel sizes other than 8, 16, or 32 will throw an exception. The r parameter allows the application to specify a Region that is used as a hit-test region - whether pixels are visible from this image at those locations or not. The hit-test Region will be applied to all of the images.<DD><DL><DT><B>Parameters:</B><DD><CODE>images</CODE> - the images to be worked<DD><CODE>keyColor</CODE> - the color that will be removed from the images appearance<DD><CODE>gw</CODE> - the QDGraphics that is used to contain the depth and pixel data of the recompressed image(s). This graphics should be the size of the image (or a portion) that will be used to determine which parts of the image are compressed.<DD><CODE>r</CODE> - a hit test Region<DT><B>Returns:</B><DD>an ImageDataSequence object that contains the new images</DL></DD></DL><HR><A NAME="makeTransparent(quicktime.app.image.ImageDataSequence, quicktime.qd.QDColor, quicktime.qd.QDGraphics, quicktime.qd.Region[])"><!-- --></A><H3>makeTransparent</H3><PRE>public static <A HREF="../../../quicktime/app/image/ImageDataSequence.html">ImageDataSequence</A> <B>makeTransparent</B>(<A HREF="../../../quicktime/app/image/ImageDataSequence.html">ImageDataSequence</A> image, <A HREF="../../../quicktime/qd/QDColor.html">QDColor</A> keyColor, <A HREF="../../../quicktime/qd/QDGraphics.html">QDGraphics</A> gw, <A HREF="../../../quicktime/qd/Region.html">Region</A>[] r) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Takes an ImageSpec object and recompresses the images so that the images have the keyColor set as a transparent colour that will not draw. It uses the animation codec to do this, and there is no loss in quality. This will use the depth of the source image to map the colour into. This will use the depth of the supplied QDGraphics to compress into - pixel sizes other than 8, 16, or 32 will throw an exception. The r parameter allows the application to specify an array of Regions that are used as hit-test regions - whether pixels are visible from this image at those locations or not. This array must at least be the same length as the number of images in the sequence. As each image is recompressed the corresponding element of the Region array will be used as the hit-test Region for that image.<DD><DL><DT><B>Parameters:</B><DD><CODE>images</CODE> - the images to be worked<DD><CODE>keyColor</CODE> - the color that will be removed from the images appearance<DD><CODE>gw</CODE> - the QDGraphics that is used to contain the depth and pixel data of the recompressed image(s). This graphics should be the size of the image (or a portion) that will be used to determine which parts of the image are compressed.<DD><CODE>r</CODE> - an array of Regions that supply hit test data for each image in the sequence.<DT><B>Returns:</B><DD>an ImageDataSequence object that contains the new images</DL></DD></DL><HR><A NAME="createSequence(quicktime.std.movies.Track)"><!-- --></A><H3>createSequence</H3><PRE>public static <A HREF="../../../quicktime/app/image/ImageDataSequence.html">ImageDataSequence</A> <B>createSequence</B>(<A HREF="../../../quicktime/std/movies/Track.html">Track</A> imageTrack) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This routine will create an ImageDataSeqeuence object from specified Track of a Movie. This method gets image data that matches the first sample description that is contained in the track, loads the individual frames into memory and returns an ImageDataSequence that contains the image data as described by this ImageDescription.<DD><DL><DT><B>Parameters:</B><DD><CODE>imageTrack</CODE> - this track contains image data - it must contain a VideoMedia object.<DT><B>Returns:</B><DD>a ImageDataSequence object that contains a sequence of image data and a single description that defines the compression, bounds, etc. that is common to all of the image data objects</DL></DD></DL><HR><A NAME="createSequence(java.io.File)"><!-- --></A><H3>createSequence</H3><PRE>public static <A HREF="../../../quicktime/app/image/ImageDataSequence.html">ImageDataSequence</A> <B>createSequence</B>(java.io.File matchFile) throws java.io.IOException, <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This routine will create an ImageDataSeqeuence object from the collection of files that are found in the specified directory that begin with the specified fileName. The default FileFilter object is passed in as the filter. The default ImageUtil object is passed in as the image processor object.<DD><DL><DT><B>Parameters:</B><DD><CODE>matchFile</CODE> - this should be the full path specification of a file that will be used as a pattern to match against the other files that are contained in the directory that the match file is found in.<DT><B>Returns:</B><DD>a ImageDataSequence object that contains a sequence of image data and a single description that defines the compression, bounds, etc. that is common to all of the image data objects<DT><B>See Also: </B><DD><A HREF="../../../quicktime/app/image/FileFilter.html"><CODE>for a description of the format of the file name that this filter will deal with.</CODE></A></DL></DD></DL><HR><A NAME="createSequence(java.io.File, quicktime.app.image.FileFilter)"><!-- --></A><H3>createSequence</H3><PRE>public static <A HREF="../../../quicktime/app/image/ImageDataSequence.html">ImageDataSequence</A> <B>createSequence</B>(java.io.File matchFile, <A HREF="../../../quicktime/app/image/FileFilter.html">FileFilter</A> ff) throws java.io.IOException, <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This routine will create an ImageDataSeqeuence object from the collection of files that are found in the specified directory that begin with the specified fileName. You supply a FileFilter object to do custom filter operations. The default ImageUtil object is passed in as the image processor object.<DD><DL><DT><B>Parameters:</B><DD><CODE>matchFile</CODE> - this should be the full path specification of a file that will be used as a pattern to match against the other files that are contained in the directory that the match file is found in.<DD><CODE>ff</CODE> - the file filter object<DT><B>Returns:</B><DD>a ImageDataSequence object that contains a sequence of image data and a single description that defines the compression, bounds, etc. that is common to all of the image data objects<DT><B>See Also: </B><DD><A HREF="../../../quicktime/app/image/FileFilter.html"><CODE>for a description of the format of the file name that this filter will deal with and the methods that can be overridden or extended.</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> </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/ImageUtil.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-all.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></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../quicktime/app/image/ImageSequencer.html"><B>PREV CLASS</B></A> <A HREF="../../../quicktime/app/image/ImageViewer.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="ImageUtil.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> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -