Add figures to illustrate the enhancement methods (courtesy of Thomas Freitag)

This commit is contained in:
Yuri Chornoivan 2013-03-10 21:55:10 +02:00
parent b1283fee89
commit 62ae537984
6 changed files with 75 additions and 1 deletions

BIN
doc/enhance-lowcontrast.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
doc/enhance-shape.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4 KiB

BIN
doc/enhance-solid.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

BIN
doc/enhance-thinline.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8 KiB

View file

@ -1535,15 +1535,88 @@ Add a 'Find Previous' entry
<para>
Drawing lines in &okular; is implemented in two steps: generation of the clipping path and filling this clipping path. When the line in the original document is less than one pixel this two step implementation could cause problems. For those lines, the clipping path is filled with the filling color that depends on the thickness of the line part inside the clipping area. If the part of the line inside the clipping area gets very small the contrast between the shape and the background color can become too low for the line to be recognizable. The grids of such lines then looks very unpretty.
</para>
<informaltable>
<tgroup cols="2">
<tbody>
<row>
<entry>
<para>
<screenshot>
<screeninfo>
</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="enhance-thinline.png" format="PNG"/>
</imageobject>
</mediaobject>
</screenshot>
</para>
</entry>
<entry>
<para>
<screenshot>
<screeninfo>
</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="enhance-lowcontrast.png" format="PNG"/>
</imageobject>
</mediaobject>
</screenshot>
</para>
</entry>
</row>
<row>
<entry>Thin line (red), its clipping path (dashed line) and pixel boundaries (black solid lines)</entry>
<entry>Thin line shown at a low contrast</entry>
</row>
</tbody>
</tgroup>
</informaltable>
<para>
To enhance the look of the thin lines &okular; implements two options.
</para>
<para>
The first option is <guimenuitem>Solid</guimenuitem>. With this option &okular; adjusts clipping path and line position so that clipping path and line are on the same pixel boundary, &ie; &okular; enlarges the thin lines to one pixel on the output device. This mode is similar to the <guilabel>Enhance thin lines</guilabel> in <trademark class="registered">Adobe</trademark> <trademark class="registered">Reader</trademark>. If this option is chosen, the thin lines are always enlarged.
The first option is <guimenuitem>Solid</guimenuitem>. With this option &okular; adjusts clipping path and line position so that clipping path and line are on the same pixel boundary, &ie; &okular; enlarges the thin lines to one pixel on the output device. This mode is similar to the <guilabel>Enhance thin lines</guilabel> in <trademark class="registered">Adobe</trademark>
<trademark class="registered">Reader</trademark>. If this option is chosen, the thin lines are always enlarged.
</para>
<para>
<screenshot>
<screeninfo>
</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="enhance-solid.png" format="PNG"/>
</imageobject>
<textobject>
<phrase>Thin line with <guimenuitem>Solid</guimenuitem> enhancement</phrase>
</textobject>
<caption>
<para>Thin line with <guimenuitem>Solid</guimenuitem> enhancement</para>
</caption>
</mediaobject>
</screenshot>
</para>
<para>
The second option is <guimenuitem>Shape</guimenuitem>. With this option the clipping path and line are adjusted to pixel boundary as well, but the line intensity is corrected according to its width.
</para>
<para>
<screenshot>
<screeninfo>
</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="enhance-shape.png" format="PNG"/>
</imageobject>
<textobject>
<phrase>Thin line with <guimenuitem>Shape</guimenuitem> enhancement</phrase>
</textobject>
<caption>
<para>Thin line with <guimenuitem>Shape</guimenuitem> enhancement</para>
</caption>
</mediaobject>
</screenshot>
</para>
<para>
The thin lines are not enhanced by default (option <guimenuitem>No</guimenuitem>).
</para>
@ -1552,6 +1625,7 @@ Add a 'Find Previous' entry
</variablelist>
</para>
</sect1>
</sect1>
</chapter>
<chapter id="configure">
<title>Configuring &okular;</title>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 744 B