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

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

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

Revision 2 Revision 195
17mUn  17mUs 
2d"Times New RomanN1 2d"Times New RomanN1
3< *Koptekst 2L 3< *Koptekst 2L
4< *Koptekst 3L *OpsomtekenOSwissh3r h3r efdefLd.A[Sketch Section]Sketch SectionThis section contains the description of a picture. Its actual data is found in the embedded Paint Data Section.Offset Size Nornak Object0000 W Total X size of form X size as displayed0002 W Total Y size of form Y size as displayed0004 W X offset within form Always 00 00?0006 W Y offset within form Always 00 00?0008 W Always 00 00? X offset in form000A W Always 00 00? Yoffset in form000C W Always 00 00? Total X size of form000E W Always 00 00? Total Y size of form 0010 W Always 00 00?Paint Data Section W X magnification W Y magnification L Left cut L Right cut L Top cut L Bottom cutThe first 10 bytes can have two different meanings, depending on the fact whether the picture is standalone or an embedded object. Everything in it is counted in dots.The magnification factors determine whether the picture should be compressed or expanded. 03E8 (1000 decimal) is normal size; lower numbers compress, higher numbers expand. So 01F4 would mean halfsize.The cuts determine whether a portion of the picture should be hidden, on one of its four sides. Cuts are in fractions of C*Size. So 0000 means do no cut, and 0600 would hide half of a picture 0100 dots large."Times New Roman" Courier News"Arial @"Arial"Times New Roman " Courier New"Times New Roman"Times New Roman"Word.app C"y 4< *Koptekst 3L *OpsomtekenOSwissh3r h3r efdefLd.A"[Sketch Section]Sketch SectionThis section contains the description of a picture. Its actual data is found in the embedded Paint Data Section.Offset Size Normal Object0000 W X size as displayed0002 W Y size as displayed0004 W X offset of picture within displayed area0006 W Y offset of picture within displayed area0008 W X offset within form (0000 for non-objects)000A W Y offset within form (oo00 for non-objects)000C W X size of form (0000 for non-objects)000E W Y size of form (0000 for non-objects)0010 W Always 00 00?Paint Data Section W X magnification W Y magnification L Left cut L Right cut L Top cut L Bottom cutA picture is a rectangle which should be displayed. The proper picture is within this rectangle, surrounded by empty space. To keep down the file size, we put a (smaller) rectangle around the picture, and only encode the pixel data within this smaller rectangle. The (larger) rectangle is in its turn put on a (rectangular) form. So we have three rectangles within each other, from large to small: the form, the picture as displayed, and the pixel data.The first eight words encode the locations and sizes of these rectangles in pixel units. The last four words may all be set to zero, to indicate no form rectangle is used. All sizes are given without taking any magnification and cropping into account.The magnification factors determine whether the picture should be compressed or expanded. 03E8 (1000 decimal) is normal size; lower numbers compress, higher numbers expand. So 01F4 would mean halfsize. They just tell how the picture should be displayed, and changing the magnification factor will not change any of the other values. Note that the Sketch program does not read these values; they are only used for sketch objects.The cuts determine whether a portion of the picture should be hidden, on one of its four sides. Cuts are in fractions of C*Size. So 0000 means do no cut, and 0600 would hide half of a picture 0100 dots large. The displayed size (offset 0 and 2) is taken as a basis for this. Note that the Sketch program does not read these values; they are only used for sketch objects."Times New Roman" Courier News2254.. s @"Arial @"Arial"Times New Roman " Courier New"Times New Roman" Courier New"Times New Roman"Word.app C"y
5f

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

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