/[public]/psiconv/trunk/formats/psion/Paint_Data_Section.psi
ViewVC logotype

Diff of /psiconv/trunk/formats/psion/Paint_Data_Section.psi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2 Revision 86
17mþŸU »  17mþŸU › 
2dÈ"Times New RomanN1 ð 2dÈ"Times New RomanN1 ð
3< *Koptekst 2Lð ð 3< *Koptekst 2Lð ð
4< *Koptekst 3L *OpsomtekenO³•Swissÿÿÿÿh3r h3r ÐР efdefLdý‚.ÆA [Paint Data Section]Paint Data SectionThis section contains all the data of a picture. Size Description L Size of «Paint Data Section» (including this long) L Offset within «Sketch Section» of pixel data. Always 28 00 00 00 ? L X Size of picture in dots L Y Size of picture in dots L Always 00 00 00 00 ? L Always 00 00 00 00 ? L Always 02 00 00 00 ? L Always 00 00 00 00 ? L Always 00 00 00 00 ? L Always 00 00 00 00 ? Pixel dataPixel data consist sequences of marker bytes with data bytes. A marker byte of 01 to 7F means that the next byte should be repeated that many times. A marker byte of 80 to FF means that (100-marker) bytes of data follow.Each byte encodes four pixels. A pixel is two bits wide, and can range from black to invisible: Value Color 0 Black 1 Dark grey 2 Light grey 3 InvisibleThe lowest two bits are for the leftmost pixel, the highest two bits are for the rightmost pixel: Bits Pixel 0,1 Leftmost 2,3 Left middle 4,5 Right middle 6,7 Rightmostð " Courier New ð"Times New Roman  " Courier New @"Arial " Courier New " Courier New " Courier New  " Courier New " Courier New   " Courier New  " Courier New  " Courier Newð   " Courier New " Courier New " Courier New"Word.app C"y‰  4< *Koptekst 3L *OpsomtekenO³•Swissÿÿÿÿh3r h3r ÐР efdefLdý‚.ÆA…[Paint Data Section]Paint Data SectionThis section contains all the data of a picture. Size Description L Size of «Paint Data Section» (including this long) L Offset within «Paint Data Section» of pixel data. Always 28 00 00 00 ? L X Size of picture in dots L Y Size of picture in dots «Length» XSize of the picture in twips. 00 00 00 00 means unspecified. «Length» Y Size of the picture in twips. 00 00 00 00 means unspecified. L Number of bits in a dot. Usually 02 00 00 00 L Always 00 00 00 00 ? L Always 00 00 00 00 ? L 01 00 00 00 if RLEencoded, 00 00 00 00 if plain data L (CA) Always FF FF FF FF ? L (CA) Always 44 00 00 00 ? Pixel dataThe two longs marked (CA) are only found in a «Clip Art File». Their use is unknown. They are not included in the size of the section (first long) and the offset of the pixel data(second long): you should add 8 to both of them.RLE encoding consists of sequences of marker bytes with data bytes. A marker byte of 00 to 7F means that the next byte should be repeated that many times and once more. A marker byte of 80 to FF means that (100-marker) bytes of data follow.Though all lines have the same length, this length can be a little larger than the picture X size. The remaining padding should be discarded. The length of a line is always a whole number of bytes (after RLEdecoding).Each byte can encode several pixels. The number of bits per pixel is usualy 2, and I presume only values of 1, 2, 4 and 8 are valid. If others are valid, I do not know how they are exactly stuffed into bytes.If the number of bits per pixel equals 2 (I never saw a file wich had another value), each byte encodes four pixels. A pixel is two bits wide, and can range from black to invisible: Value Color 0 Black 1 Dark grey 2 Light grey 3 InvisibleThe lowest two bits are for the leftmost pixel, the highest two bits are for the rightmost pixel: Bits Pixel 0,1 Leftmost 2,3 Left middle 4,5 Right middle 6,7 Rightmostð " Courier New ð"Times New Roman  " Courier New" @"Arial " Courier New " Courier New " Courier New  " Courier New " Courier New   " Courier New  " Courier New  " Courier Newð   " Courier New " Courier New " Courier New"Word.app C"yã ‰÷ 

Legend:
Removed from v.2  
changed lines
  Added in v.86

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26