/[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 194 Revision 195
17mU} 17mUs 
2 
3d"Times New RomanN1 2d"Times New RomanN1
4< *Koptekst 2L 3< *Koptekst 2L
5< *Koptekst 3L *OpsomtekenOSwissh3r h3r efdefLd.Aketch Section]Sketch SectionThis section contains the description of a picture. Its actual data is found i n the embedded Paint Data Section.Offset Size Normal Object0000 W Xsize as displayed (form size for normal pics)0002 W Y size as displayed (form size for normal pics)0004 W X offset of picture within displayed area0006 W Y offset of picture within displayed area0008 W Xoffset within circumventing area000A W Yoffset within circumventing area000C W X size of circumventing area (0000 if not applicable)000E W Y size of circumventing area (0000 if not applicable)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 cutEverything within the first 12 bytes is counted in dots. For normal pictures, only the displayed size and offset is set; for objects, the circumventing (form) size and offset are also set.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 Newts @"Arial @"Arial"Times New Roman " Courier New"Times New Romanr"Times New Roman"Word.app C"yp 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
6 5f

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

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