谨以此文献给那些热爱图像编程的朋友(由于内容较多,仅选7篇)6
pic format
pic format
pic files contain images in an uncompressed format. both the original animator
and animator pro from autodesk produce pic files. the file formats are
different; animator pro produces a hierarchial block oriented file, while the
original animator file is a simpler fixed format. see pic(pro) for further
information on the animator pro pic format.
the original animator uses this format to store a single-frame picture image.
this format description applies to both pic and original animator cel files. the
file begins with a 32 byte header, as follows:
offset count type description
0000h 1 word id=9119h
0002h 1 word width of image; pic files have always a width
of 320, cel images may have any value.
0004h 1 word height of image, 200 for a pic, any value for
a cel file.
0006h 1 word x offset of image, always 0 for a pic image,
may be nonzero in a cel image.
0008h 1 word y offset of image. zero for a pic file.
000ah 1 byte bits per pixel (8)
000bh 1 byte compresion flag, always zero
000ch 1 dword size of the image data in bytes
0010h 16 byte reserved(0)
immediately following the header is the color map. it contains all 256 palette
entries in rgb order. each of the r, g, and b components is a single byte in the
range of 0-63. following the color palette is the image data, one byte per
pixel, from left to right, top to bottom.
--------------------------------------------------------------------------------