Home » Archimedes archive » Acorn User » AU 1995-02.adf » !DTPAids_DTP » !SizeFrame/!Help

!SizeFrame/!Help

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Acorn User » AU 1995-02.adf » !DTPAids_DTP
Filename: !SizeFrame/!Help
Read OK:
File size: 05E0 bytes
Load address: 0000
Exec address: 0000
File contents
DTP Graphic Frame Sizer
by Mark Moxon

This application calculates the size a graphic frame should be to fit a
(square) graphic into it exactly, so there are no ugly white gaps
between the graphic and the border of the graphic frame.

To use the application with Impression, first run the application and
click on the icon bar icon to bring up a window. Now enter the width you
want your picture frame to be into the 'Frame width' icon - you will
almost always know the frame width you require as pictures are normally
fitted to multiples of column width.

Next, double-click on the picture frame to bring up the 'Alter graphic'
dialogue box. Click on 'Information' and enter the 'Width' and 'Height'
values from this dialogue box into the 'Sprite size' icons in the
SizeFrame window, and press Return. The frame height is calculated and
displayed, so alter the frame to this height (using Impression's 'Alter
frame' dialogue box), double-click on the graphic with Adjust to scale
to fit, and the graphic will now fit to frame exactly.

NOTE: At time of writing, there is a bug in Impression Style amnd
Publisher which makes the graphic fit to an area slightly smaller than
the frame, so there is a thin gap between the border and graphic. To get
round this, double-click on the picture frame to bring up the 'Alter
graphic' dialogue box and manually bump up the scale size so the X and Y
values are as close to zero as possible (and negative rather than
positive if exact zero values can't be obtained.
00000000  44 54 50 20 47 72 61 70  68 69 63 20 46 72 61 6d  |DTP Graphic Fram|
00000010  65 20 53 69 7a 65 72 0a  62 79 20 4d 61 72 6b 20  |e Sizer.by Mark |
00000020  4d 6f 78 6f 6e 0a 0a 54  68 69 73 20 61 70 70 6c  |Moxon..This appl|
00000030  69 63 61 74 69 6f 6e 20  63 61 6c 63 75 6c 61 74  |ication calculat|
00000040  65 73 20 74 68 65 20 73  69 7a 65 20 61 20 67 72  |es the size a gr|
00000050  61 70 68 69 63 20 66 72  61 6d 65 20 73 68 6f 75  |aphic frame shou|
00000060  6c 64 20 62 65 20 74 6f  20 66 69 74 20 61 0a 28  |ld be to fit a.(|
00000070  73 71 75 61 72 65 29 20  67 72 61 70 68 69 63 20  |square) graphic |
00000080  69 6e 74 6f 20 69 74 20  65 78 61 63 74 6c 79 2c  |into it exactly,|
00000090  20 73 6f 20 74 68 65 72  65 20 61 72 65 20 6e 6f  | so there are no|
000000a0  20 75 67 6c 79 20 77 68  69 74 65 20 67 61 70 73  | ugly white gaps|
000000b0  0a 62 65 74 77 65 65 6e  20 74 68 65 20 67 72 61  |.between the gra|
000000c0  70 68 69 63 20 61 6e 64  20 74 68 65 20 62 6f 72  |phic and the bor|
000000d0  64 65 72 20 6f 66 20 74  68 65 20 67 72 61 70 68  |der of the graph|
000000e0  69 63 20 66 72 61 6d 65  2e 0a 0a 54 6f 20 75 73  |ic frame...To us|
000000f0  65 20 74 68 65 20 61 70  70 6c 69 63 61 74 69 6f  |e the applicatio|
00000100  6e 20 77 69 74 68 20 49  6d 70 72 65 73 73 69 6f  |n with Impressio|
00000110  6e 2c 20 66 69 72 73 74  20 72 75 6e 20 74 68 65  |n, first run the|
00000120  20 61 70 70 6c 69 63 61  74 69 6f 6e 20 61 6e 64  | application and|
00000130  0a 63 6c 69 63 6b 20 6f  6e 20 74 68 65 20 69 63  |.click on the ic|
00000140  6f 6e 20 62 61 72 20 69  63 6f 6e 20 74 6f 20 62  |on bar icon to b|
00000150  72 69 6e 67 20 75 70 20  61 20 77 69 6e 64 6f 77  |ring up a window|
00000160  2e 20 4e 6f 77 20 65 6e  74 65 72 20 74 68 65 20  |. Now enter the |
00000170  77 69 64 74 68 20 79 6f  75 0a 77 61 6e 74 20 79  |width you.want y|
00000180  6f 75 72 20 70 69 63 74  75 72 65 20 66 72 61 6d  |our picture fram|
00000190  65 20 74 6f 20 62 65 20  69 6e 74 6f 20 74 68 65  |e to be into the|
000001a0  20 27 46 72 61 6d 65 20  77 69 64 74 68 27 20 69  | 'Frame width' i|
000001b0  63 6f 6e 20 2d 20 79 6f  75 20 77 69 6c 6c 0a 61  |con - you will.a|
000001c0  6c 6d 6f 73 74 20 61 6c  77 61 79 73 20 6b 6e 6f  |lmost always kno|
000001d0  77 20 74 68 65 20 66 72  61 6d 65 20 77 69 64 74  |w the frame widt|
000001e0  68 20 79 6f 75 20 72 65  71 75 69 72 65 20 61 73  |h you require as|
000001f0  20 70 69 63 74 75 72 65  73 20 61 72 65 20 6e 6f  | pictures are no|
00000200  72 6d 61 6c 6c 79 0a 66  69 74 74 65 64 20 74 6f  |rmally.fitted to|
00000210  20 6d 75 6c 74 69 70 6c  65 73 20 6f 66 20 63 6f  | multiples of co|
00000220  6c 75 6d 6e 20 77 69 64  74 68 2e 0a 0a 4e 65 78  |lumn width...Nex|
00000230  74 2c 20 64 6f 75 62 6c  65 2d 63 6c 69 63 6b 20  |t, double-click |
00000240  6f 6e 20 74 68 65 20 70  69 63 74 75 72 65 20 66  |on the picture f|
00000250  72 61 6d 65 20 74 6f 20  62 72 69 6e 67 20 75 70  |rame to bring up|
00000260  20 74 68 65 20 27 41 6c  74 65 72 20 67 72 61 70  | the 'Alter grap|
00000270  68 69 63 27 0a 64 69 61  6c 6f 67 75 65 20 62 6f  |hic'.dialogue bo|
00000280  78 2e 20 43 6c 69 63 6b  20 6f 6e 20 27 49 6e 66  |x. Click on 'Inf|
00000290  6f 72 6d 61 74 69 6f 6e  27 20 61 6e 64 20 65 6e  |ormation' and en|
000002a0  74 65 72 20 74 68 65 20  27 57 69 64 74 68 27 20  |ter the 'Width' |
000002b0  61 6e 64 20 27 48 65 69  67 68 74 27 0a 76 61 6c  |and 'Height'.val|
000002c0  75 65 73 20 66 72 6f 6d  20 74 68 69 73 20 64 69  |ues from this di|
000002d0  61 6c 6f 67 75 65 20 62  6f 78 20 69 6e 74 6f 20  |alogue box into |
000002e0  74 68 65 20 27 53 70 72  69 74 65 20 73 69 7a 65  |the 'Sprite size|
000002f0  27 20 69 63 6f 6e 73 20  69 6e 20 74 68 65 0a 53  |' icons in the.S|
00000300  69 7a 65 46 72 61 6d 65  20 77 69 6e 64 6f 77 2c  |izeFrame window,|
00000310  20 61 6e 64 20 70 72 65  73 73 20 52 65 74 75 72  | and press Retur|
00000320  6e 2e 20 54 68 65 20 66  72 61 6d 65 20 68 65 69  |n. The frame hei|
00000330  67 68 74 20 69 73 20 63  61 6c 63 75 6c 61 74 65  |ght is calculate|
00000340  64 20 61 6e 64 0a 64 69  73 70 6c 61 79 65 64 2c  |d and.displayed,|
00000350  20 73 6f 20 61 6c 74 65  72 20 74 68 65 20 66 72  | so alter the fr|
00000360  61 6d 65 20 74 6f 20 74  68 69 73 20 68 65 69 67  |ame to this heig|
00000370  68 74 20 28 75 73 69 6e  67 20 49 6d 70 72 65 73  |ht (using Impres|
00000380  73 69 6f 6e 27 73 20 27  41 6c 74 65 72 0a 66 72  |sion's 'Alter.fr|
00000390  61 6d 65 27 20 64 69 61  6c 6f 67 75 65 20 62 6f  |ame' dialogue bo|
000003a0  78 29 2c 20 64 6f 75 62  6c 65 2d 63 6c 69 63 6b  |x), double-click|
000003b0  20 6f 6e 20 74 68 65 20  67 72 61 70 68 69 63 20  | on the graphic |
000003c0  77 69 74 68 20 41 64 6a  75 73 74 20 74 6f 20 73  |with Adjust to s|
000003d0  63 61 6c 65 0a 74 6f 20  66 69 74 2c 20 61 6e 64  |cale.to fit, and|
000003e0  20 74 68 65 20 67 72 61  70 68 69 63 20 77 69 6c  | the graphic wil|
000003f0  6c 20 6e 6f 77 20 66 69  74 20 74 6f 20 66 72 61  |l now fit to fra|
00000400  6d 65 20 65 78 61 63 74  6c 79 2e 0a 0a 4e 4f 54  |me exactly...NOT|
00000410  45 3a 20 41 74 20 74 69  6d 65 20 6f 66 20 77 72  |E: At time of wr|
00000420  69 74 69 6e 67 2c 20 74  68 65 72 65 20 69 73 20  |iting, there is |
00000430  61 20 62 75 67 20 69 6e  20 49 6d 70 72 65 73 73  |a bug in Impress|
00000440  69 6f 6e 20 53 74 79 6c  65 20 61 6d 6e 64 0a 50  |ion Style amnd.P|
00000450  75 62 6c 69 73 68 65 72  20 77 68 69 63 68 20 6d  |ublisher which m|
00000460  61 6b 65 73 20 74 68 65  20 67 72 61 70 68 69 63  |akes the graphic|
00000470  20 66 69 74 20 74 6f 20  61 6e 20 61 72 65 61 20  | fit to an area |
00000480  73 6c 69 67 68 74 6c 79  20 73 6d 61 6c 6c 65 72  |slightly smaller|
00000490  20 74 68 61 6e 0a 74 68  65 20 66 72 61 6d 65 2c  | than.the frame,|
000004a0  20 73 6f 20 74 68 65 72  65 20 69 73 20 61 20 74  | so there is a t|
000004b0  68 69 6e 20 67 61 70 20  62 65 74 77 65 65 6e 20  |hin gap between |
000004c0  74 68 65 20 62 6f 72 64  65 72 20 61 6e 64 20 67  |the border and g|
000004d0  72 61 70 68 69 63 2e 20  54 6f 20 67 65 74 0a 72  |raphic. To get.r|
000004e0  6f 75 6e 64 20 74 68 69  73 2c 20 64 6f 75 62 6c  |ound this, doubl|
000004f0  65 2d 63 6c 69 63 6b 20  6f 6e 20 74 68 65 20 70  |e-click on the p|
00000500  69 63 74 75 72 65 20 66  72 61 6d 65 20 74 6f 20  |icture frame to |
00000510  62 72 69 6e 67 20 75 70  20 74 68 65 20 27 41 6c  |bring up the 'Al|
00000520  74 65 72 0a 67 72 61 70  68 69 63 27 20 64 69 61  |ter.graphic' dia|
00000530  6c 6f 67 75 65 20 62 6f  78 20 61 6e 64 20 6d 61  |logue box and ma|
00000540  6e 75 61 6c 6c 79 20 62  75 6d 70 20 75 70 20 74  |nually bump up t|
00000550  68 65 20 73 63 61 6c 65  20 73 69 7a 65 20 73 6f  |he scale size so|
00000560  20 74 68 65 20 58 20 61  6e 64 20 59 0a 76 61 6c  | the X and Y.val|
00000570  75 65 73 20 61 72 65 20  61 73 20 63 6c 6f 73 65  |ues are as close|
00000580  20 74 6f 20 7a 65 72 6f  20 61 73 20 70 6f 73 73  | to zero as poss|
00000590  69 62 6c 65 20 28 61 6e  64 20 6e 65 67 61 74 69  |ible (and negati|
000005a0  76 65 20 72 61 74 68 65  72 20 74 68 61 6e 0a 70  |ve rather than.p|
000005b0  6f 73 69 74 69 76 65 20  69 66 20 65 78 61 63 74  |ositive if exact|
000005c0  20 7a 65 72 6f 20 76 61  6c 75 65 73 20 63 61 6e  | zero values can|
000005d0  27 74 20 62 65 20 6f 62  74 61 69 6e 65 64 2e 0a  |'t be obtained..|
000005e0