7.51. Tamanho dos limites da camada

In GIMP, a layer is not always the same size as the others. This command changes the dimensions of a layer, but it does not scale its contents.

7.51.1. Ativando o comando

You can access this command from the main menu through LayerLayer Boundary Size.

7.51.2. Descrição do diálogo do Tamanho dos limites da camada

Figura 16.119. O diálogo de Tamanho dos limites da camada

O diálogo de “Tamanho dos limites da camada”

Tamanho da camada
Largura; Altura

Quando o diálogo é exibido, as dimensões originais da camada ativa são mostradas. Você pode alterá-las usando as duas caixas de texto. Se essas caixas estão ligadas entre si com uma corrente, a relação largura-altura é mantida automaticamente. Se você quebrar a corrente, clicando sobre ela, você pode definir as dimensões de forma independente uma da outra.

A unidade de medida padrão é o pixels. Você pode mudar isso usando o menu suspenso. Por exemplo, você pode usar uma percentagem (%) do tamanho atual.

Deslocamento X; Deslocamento Y

These coordinates are relative to the layer, not to the image. They are used to move a frame that determines which part of the layer content will be selected for the resized layer. In our example, the layer and the content have the same dimensions, and, of course, you have no frame to move. If you reduce Width and Height , the frame of the resized layer appears in the preview.

Below the coordinates, a preview represents the layer with the frame of the resized layer. You can move this frame using the X and Y offsets and also dragging the cross-shaped moving pointer that appears when the mouse pointer overflies the layer area.

The Center button

This button allows you to place the frame at the center of the layer.

7.51.3. Resizing Layer

Resizing a layer larger

You can't resize a layer to bigger dimensions than that of the image.

If the layer is smaller than the image, you can enlarge Width and/or Height . There is no good reason to do that, except if you want to enlarge the layer to the size of the image; but, in that case, it's better to use Layer to Image Size.

Resizing a layer smaller

You can resize the layer to a smaller dimension to eliminate unwanted parts.

Figura 16.120. Exemplo

Exemplo

Original image with 2 layers

Exemplo

The two layers


Figura 16.121. Exemplo

Exemplo

The selected layer for resizing

Exemplo

The frame representing the new layer size. It has been placed at the center of the layer using the Center button.


Figura 16.122. Result

Result

If the image has only one layer, it's better to use the Crop tool.