📄 ani.htm
字号:
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<title>windows95 animated cursor file format</title>
<meta name="generator" content="microsoft frontpage 3.0">
</head>
<body background="../jpg/di1.JPG">
<p align="center"><font size="5" color="#0000ff">windows95 animated cursor file format</font></p>
<div align="center"><center>
<table border="0" width="88%">
<tr>
<td width="100%"><br>
ani (windows95 animated cursor file format)<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
<br>
this is a paraphrase of the format. it is essetially just a riff file =<br>
with extensions... (view this monospaced)<br>
this info basically comes from the mmdk (multimedia devkit). i don't =<br>
have it in front of me, so i'm going backwards from a vb program i wrote =<br>
to decode .ani files.<br>
<br>
"riff" {length of file}<br>
"acon"<br>
"list" {length of list}<br>
"inam" {length of title} {data}<br>
"iart" {length of author} {data}<br>
"fram"<br>
"icon" {length of icon} {data} ; 1st in list<br>
...<br>
"icon" {length of icon} {data} ; last in list (1 to cframes)<br>
"anih" {length of ani header (36 bytes)} {data} ; (see ani header typedef )<br>
"rate" {length of rate block} {data} ; ea. rate is a long (length is 1 to
csteps)<br>
"seq " {length of sequence block} {data} ; ea. seq is a long (length is 1 to
csteps)<br>
<br>
-end-<br>
<br>
- any of the blocks ("acon", "anih", "rate", or "seq
") can appear in any <br>
order. i've never seen "rate" or "seq " appear before
"anih", though. you<br>
need the csteps value from "anih" to read "rate" and "seq ".
the order i <br>
usually see the frames is: "riff", "acon", "list",
"inam", "iart", "anih",<br>
"rate", "seq ", "list", "icon". you can see the
"list" tag is repeated and<br>
the "icon" tag is repeated once for every embedded icon. the data pulled <br>
from the "icon" tag is always in the standard 766-byte .ico file format.<br>
<br>
- all {length of...} are 4byte dwords.<br>
<br>
- ani header typedef:<br>
<br>
struct taganiheader {<br>
dword cbsizeof; // num bytes in aniheader (36 bytes)<br>
dword cframes; // number of unique icons in this cursor<br>
dword csteps; // number of blits before the animation cycles<br>
dword cx, cy; // reserved, must be zero.<br>
dword cbitcount, cplanes; // reserved, must be zero.<br>
dword jifrate; // default jiffies (1/60th of a second) if rate chunk not present.<br>
dword flags; // animation flag (see af_ constants)<br>
} aniheader;<br>
<br>
#define af_icon =3d 0x0001l // windows format icon/cursor animation<br>
<br>
<br>
r. james houghtaling</td>
</tr>
</table>
</center></div>
<p align="center"><a href="../index.htm">返回</a></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -