📄 gifframe.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.4.2_04) on Wed Dec 15 18:51:45 EET 2004 -->
<TITLE>
GifFrame
</TITLE>
<META NAME="keywords" CONTENT="com.gif4j.light.GifFrame class">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
parent.document.title="GifFrame";
}
</SCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<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/GifFrame.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>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../com/gif4j/light/GifEncoder.html" title="class in com.gif4j.light"><B>PREV CLASS</B></A>
<A HREF="../../../com/gif4j/light/GifImage.html" title="class in com.gif4j.light"><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="GifFrame.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | <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>
<A NAME="skip-navbar_top"></A><!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.gif4j.light</FONT>
<BR>
Class GifFrame</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../resources/inherit.gif" ALT="extended by"><B>com.gif4j.light.GifFrame</B>
</PRE>
<HR>
<DL>
<DT>public class <B>GifFrame</B><DT>extends java.lang.Object</DL>
<P>
<p>An instance of this class is used as a container to aggregate and encode the gif format specific information about a single image frame. This information includes:<br> <li>Image Data (bitmap) - is represented by <code>Image</code> instance</li> <li>Frame Position - indicates the position inside the <A HREF="../../../com/gif4j/light/GifImage.html" title="class in com.gif4j.light"><CODE>GifImage</CODE></A> logical screen. This position can be set absolutely by <CODE>Point</CODE> instance or relatively by layout constraint (see <A HREF="../../../com/gif4j/light/GifFrame.html#LAYOUT_TOP_LEFT"><CODE>LAYOUT_TOP_LEFT</CODE></A> etc). </li> <li> Disposal Method - indicates the way in which the graphic is to be treated after being displayed. (see <A HREF="../../../com/gif4j/light/GifFrame.html#DISPOSAL_METHOD_NOT_SPECIFIED"><CODE>DISPOSAL_METHOD_NOT_SPECIFIED</CODE></A>, <A HREF="../../../com/gif4j/light/GifFrame.html#DISPOSAL_METHOD_DO_NOT_DISPOSE"><CODE>DISPOSAL_METHOD_DO_NOT_DISPOSE</CODE></A>, <A HREF="../../../com/gif4j/light/GifFrame.html#DISPOSAL_METHOD_RESTORE_TO_PREVIOUS"><CODE>DISPOSAL_METHOD_RESTORE_TO_PREVIOUS</CODE></A>, <A HREF="../../../com/gif4j/light/GifFrame.html#DISPOSAL_METHOD_RESTORE_TO_BACKGROUND_COLOR"><CODE>DISPOSAL_METHOD_RESTORE_TO_BACKGROUND_COLOR</CODE></A> ) </li> <li> Delay Time - If not 0, this field specifies the number of hundredths (1/100) of a second to wait before continuing with the processing of the Data Stream. The clock starts ticking immediately after the graphic is rendered. This field may be used in conjunction with the User Input Flag field. </li> <li> Local Color Table (OPTIONAL see information about Global Color Table <A HREF="../../../com/gif4j/light/GifImage.html" title="class in com.gif4j.light"><CODE>GifImage</CODE></A>) - This block contains a color table, which is a sequence of bytes representing red-green-blue color triplets. The Local Color Table is used by the image that immediately follows. If present, this color table temporarily becomes the active color table and the following image should be processed using it. One color from this table can be marked as transparent. </li> </p>
<P>
<P>
<DL>
<DT><B>Version:</B></DT> <DD>1.0</DD><DT><B>Author:</B></DT> <DD><a href="http://www.gif4j.com">Gif4J Software - Java GIF image processing solutions</a></DD><DT><B>See Also:</B><DD><A HREF="../../../com/gif4j/light/GifImage.html" title="class in com.gif4j.light"><CODE>GifImage</CODE></A>, <CODE>Image</CODE>, <CODE>ColorModel</CODE>, <CODE>IndexColorModel</CODE></DL>
<HR>
<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->
<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<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>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/gif4j/light/GifFrame.html#DISPOSAL_METHOD_DO_NOT_DISPOSE">DISPOSAL_METHOD_DO_NOT_DISPOSE</A></B></CODE>
<BR>
Do not dispose. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/gif4j/light/GifFrame.html#DISPOSAL_METHOD_NOT_SPECIFIED">DISPOSAL_METHOD_NOT_SPECIFIED</A></B></CODE>
<BR>
No disposal specified. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/gif4j/light/GifFrame.html#DISPOSAL_METHOD_RESTORE_TO_BACKGROUND_COLOR">DISPOSAL_METHOD_RESTORE_TO_BACKGROUND_COLOR</A></B></CODE>
<BR>
Restore to background color. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/gif4j/light/GifFrame.html#DISPOSAL_METHOD_RESTORE_TO_PREVIOUS">DISPOSAL_METHOD_RESTORE_TO_PREVIOUS</A></B></CODE>
<BR>
Restore to previous. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/gif4j/light/GifFrame.html#LAYOUT_BOTTOM_CENTER">LAYOUT_BOTTOM_CENTER</A></B></CODE>
<BR>
The bottom-center layout constraint.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/gif4j/light/GifFrame.html#LAYOUT_BOTTOM_LEFT">LAYOUT_BOTTOM_LEFT</A></B></CODE>
<BR>
The bottom-left layout constraint.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/gif4j/light/GifFrame.html#LAYOUT_BOTTOM_RIGHT">LAYOUT_BOTTOM_RIGHT</A></B></CODE>
<BR>
The bottom-right layout constraint.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/gif4j/light/GifFrame.html#LAYOUT_MIDDLE_CENTER">LAYOUT_MIDDLE_CENTER</A></B></CODE>
<BR>
The middle-center layout constraint.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/gif4j/light/GifFrame.html#LAYOUT_MIDDLE_LEFT">LAYOUT_MIDDLE_LEFT</A></B></CODE>
<BR>
The middle-left layout constraint.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/gif4j/light/GifFrame.html#LAYOUT_MIDDLE_RIGHT">LAYOUT_MIDDLE_RIGHT</A></B></CODE>
<BR>
The middle-right layout constraint.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/gif4j/light/GifFrame.html#LAYOUT_TOP_CENTER">LAYOUT_TOP_CENTER</A></B></CODE>
<BR>
The top-center layout constraint</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/gif4j/light/GifFrame.html#LAYOUT_TOP_LEFT">LAYOUT_TOP_LEFT</A></B></CODE>
<BR>
The top-left layout constraint.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/gif4j/light/GifFrame.html#LAYOUT_TOP_RIGHT">LAYOUT_TOP_RIGHT</A></B></CODE>
<BR>
The top-right layout constraint.</TD>
</TR>
</TABLE>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<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="../../../com/gif4j/light/GifFrame.html#GifFrame(java.awt.Image)">GifFrame</A></B>(java.awt.Image image)</CODE>
<BR>
Constructs <code>GifFrame</code> from the specified <code>Image</code> with the absolute position (0,0), indefinite delay and <A HREF="../../../com/gif4j/light/GifFrame.html#DISPOSAL_METHOD_DO_NOT_DISPOSE"><CODE>DISPOSAL_METHOD_DO_NOT_DISPOSE</CODE></A> disposal method.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../com/gif4j/light/GifFrame.html#GifFrame(java.awt.Image, int)">GifFrame</A></B>(java.awt.Image image, int layoutConstraint)</CODE>
<BR>
Constructs <code>GifFrame</code> from the specified <code>Image</code> with the relative position (final position is calculated according to one of the predifined layout constraint before the final encoding process starts), indefinite delay and <A HREF="../../../com/gif4j/light/GifFrame.html#DISPOSAL_METHOD_DO_NOT_DISPOSE"><CODE>DISPOSAL_METHOD_DO_NOT_DISPOSE</CODE></A> disposal method.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../com/gif4j/light/GifFrame.html#GifFrame(java.awt.Image, int, int)">GifFrame</A></B>(java.awt.Image image, int layoutConstraint, int disposalMethod)</CODE>
<BR>
Constructs <code>GifFrame</code> from the specified <code>Image</code> with the relative position (final position is calculated according to one of the predifined layout constraint before the final encoding process starts), indefinite delay and one of the predefined disposal methods.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../com/gif4j/light/GifFrame.html#GifFrame(java.awt.Image, int, int, int)">GifFrame</A></B>(java.awt.Image image, int layoutConstraint, int disposalMethod,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -