Resize the headlight
on an image of a car.
This “How-To” uses the
file bmw.tif as an example.
The file is located in the pix sub-directory in the Courseware project.
Open it by choosing File > Import > Canvas Image .
To copy the headlight
First, copy the detail
you want to resize; in this case, copy the headlight.
- Zoom and pan your view so you can see
the left headlight clearly.
- Choose Paint > Select > Marquee (rectangle).
- Drag a rectangle around the left headlight.
If you make a mistake, drag a new rectangle
around the headlight.
The pink color indicates regions of the active
layer that are not selected. (Regions that are not selected are
also referred to as masked regions.)
Regions that are not pink are selected regions
(or unmasked regions).
Now you can only modify the selected regions
(for example, painting, erasing, copying, and so on).
You cannot modify the
pink (masked) regions.
- Choose Edit > Copy Image to copy the selected regions
to the clipboard.
- Choose Windows > Editors > Canvas Layer Editor to open the Canvas
Layer Editor.
- Double-click on the layer containing
the image, and rename it bmw (if
not already the case).
- Choose Edit > Paste Image to paste the contents of
the clipboard into a new image layer.
Notice in the Canvas Layer Editor window that
there is now a new layer named ALIAS_PIX_CL.
- Double-click the ALIAS_PIX_CL layer, type headlight and press (Windows) or (Mac) to rename the layer.
To resize the headlight
Next you’ll resize the
headlight.
- Make sure the headlight layer
is active. It should be highlighted in purple in the Canvas
Layer Editor. If it is not, click it.
- Choose Edit > Transform
layer in the Canvas Layer Editor.
A manipulator appears
on the image layer.
- Drag the proportional scale handle to
increase the size of the headlight.
Release the proportional scale handle to preview
the transformation.
If you do not like the headlight’s new size,
drag the proportional scale handle again.
- Click Accept to
accept the transformation.
- Choose Pick > Object to clear the selection.
- In the Canvas Layer Editor window,
click the icon for the headlight layer
to hide the image layer so you can see the original image.
- In the Canvas Layer Editor window,
click the icon for the headlight layer
to show it again.
To remove paint around
the headlight
Next you’ll remove the
parts of the car body that surround the headlight.
- In the Canvas Layer Editor window,
click the icon for the bmw layer
to hide the image layer. Now you can clearly see the contents of
the headlight layer.
Make sure the headlight layer
is active. It should be highlighted in purple. If it is not, click
it.
- Zoom and pan your view so the headlight
fills the view.
- In the Canvas Layer editor,
click the new invisibility mask layer button.
- Click on the headlight layer
again to make it active.
- Link the invisibility mask layer (Invisibility-#)to
the headlight layer by clicking the icon to the right of the
invisibility mask layer name so that it becomes a icon.
- Click on the invisibility mask layer
to make it the active layer.
- Choose Paint > Solid Brush > Brush Felt.
Adjust the size of the
brush to give you control, and paint the car areas. Notice that
where you paint, a mustard-yellow color is laid down. This will
hide the parts of the car that you don’t want visible.
- Brush roughly around the headlight to
hide most of the car body.
If some of the headlight is covered by the yellow
invisibility mask, use the eraser tool to remove the mask in those
areas.
- Brush carefully around the headlight
to hide any remaining parts of the car body, adjusting the size
of the brush and eraser as needed.
- Click on the Headlight layer
to see how the Invisibility mask layer hides all areas covered in
yellow.
- In the Canvas Layer Editor,
click the icon for the bmw layer
to show it again.
- Zoom and pan your view so you can see
the entire car.
- In the Canvas Layer Editor,
click the icon for the headlight layer
to hide the image layer so you can see the original image.
- In the Canvas Layer Editor,
click the icon for the headlight layer
to show it again.
To merge and export the
final image
Finally you’ll merge
the image layers together and export the final image.
- Choose Layer > Merge Below from
the Canvas Layer Editor to merge
the active image layer (headlight)
with the image layer below it (bmw).
Notice that there is
once again only one image layer named bmw.
- Close the Canvas Layer Editor.
- Choose File > Export > Canvas Image/Mask Layer to open the File Browser and
save the final image.