Translation by Artem Sereda with my minor changes
[kde-ru.git] / docs / koffice / krita / using-layers.docbook
blob544518db17b66e28df76123890c985d3e8cc9fa5
1 <chapter id="layers">
2 <title>Layers</title>
4 <para>
5 This chapter gives an overview of how layers work in &krita;, with special
6 notice of adjustment layers.
7 </para>
9 <sect1 id="layers-background">
10 <title>Background information on layers</title>
12 <para>
13 Extensive use of &krita; will almost require you to have some knowledge of
14 layers. Using layers, you can work on one part of the image without touching
15 the rest of it, and most effects are best applied on a layer, instead of on
16 the whole image. Of course, if you do want to apply an effect to an entire
17 image, &krita; does offer you that possibility, and there is nothing against
18 it.
19 </para><para>
20 The idea behind layers is quite simple. As the name suggests, layers lie on
21 top of each other, and together form the layer stack. The final resulting
22 image is that what you see when looking through the stack from top to bottom.
23 This means that usually the upper layers of your image will have more or less
24 transparency, since you cannot look through a layer which has no transparency
25 (or as &krita; denotes it, is 100 percent opaque). A layer higher in the stack
26 gets applied later than one lower in the stack. For example, the effect that
27 layer number 4 adds to the image, is applied to the result from applying
28 layers 1 through 3.
29 </para><para>
30 Every image you edit in &krita; contains layers. When you create a new image,
31 the layer box (usually shown at the bottom right of your screen, see <link
32 linkend="commands-palettes-layers-layers">this section</link>) will contain
33 one layer. The painting and editing you do is then applied to that layer. Once
34 you add more layers, you can choose on which part of the image you want to
35 work, by selecting the respective layer. All further painting is then applied
36 to that layer.
37 </para><para>
38 Layers are also an excellent way to check whether adding certain effects (or
39 applying certain image modifications) come out right. Add a layer which
40 contains what you want to try out, and show or hide it with the eye icon in
41 the layer box. You can especially profit from this method if you have multiple
42 effects: show and hide them in any combination, and decide which you like
43 best. And since you can move the layers around, you can also experiment with
44 the order in which the effects are applied.
45 </para><para>
46 See the <link linkend="tutorial-select-layer">Selections and layers
47 tutorial</link> for a small hands-on introduction.
48 </para>
49 </sect1>
51 <sect1 id="layers-adjustment">
52 <title>Adjustment Layers</title>
54 <para>Adjustment Layers are layers that consist of a filter and an optional
55 selection. The filter effect is applied to the composite image of all
56 layers under the adjustmentlayer in the current layergroup. The big
57 thing is, adjustment layers apply these effects non-destructively. The
58 original image data is not modified.
59 </para><para>
60 Almost all &krita; filters are suitable for use in adjustment
61 layers -- even filters that would downgrade the image quality. For instance,
62 the raindrops filter converts to 8-bit RGB before working its magic. If you
63 would try to use this filter directly on a 16-bit L*a*b* layer, &krita; would
64 warn you about the conversion to RGB and back again this filter would cause.
65 Not so with adjustment layers: the original data isn't touched, so applying
66 the filter is safe.
67 </para><para>
68 What about the colorspace of an adjustment layer then? In order to examine
69 this issue, you need to know what happens when &krita; renders an adjustment
70 layer.
71 </para>
73 <sect2 id="layers-adjustment-selections">
74 <title>Adjustment Layers and selections</title>
76 <para>If the currently active layer has an active selection, then that selection
77 will be copied and used as a mask for the adjustment layer. If there is no
78 active selection, then there will be no mask and the adjustment will apply to
79 the entire extent of the layers under the adjustment layer in the current
80 group. There is <emphasis>no</emphasis> way of adding a mask to an existing
81 adjustment layer.
82 </para><para>
83 If there is a mask in the adjustment layer, you can edit the mask using the
84 ordinary painting tools and painting operations.
85 </para>
87 </sect2>
89 <sect2 id="layers-adjustment-projection">
90 <title>A note on projections</title>
92 <para>
93 &krita; composites the layers bottom to top, within each layer group. The
94 aggregate -- or the projection as we hackers call it -- is then filtered by
95 the adjustment layer. If there are layers on top of the adjustment layer,
96 those are composited onto the projection. &krita; converts all layer data before
97 compositing, so if the bottom-most layer in an image is grayscale, all layers
98 are converted to grayscale before compositing -- and that means that the
99 adjustment layer projection will be grayscale, too.
100 </para><para>
101 With this knowledge you'll understand why &krita; can often offer better
102 performance working with layers on top of an adjustmentlayer which is on top
103 of a complex layer structure: &krita; uses the projection and doesn't even look
104 anymore at the layers under the adjustment layer. Unless, of course, you
105 change one of them.
106 </para>
107 </sect2>
109 </sect1>
111 </chapter>