Jump to content

How to make a vector mask containing a hole in Photo?

Recommended Posts

How do you make a vector mask containing a hole in Affinity Photo?

Assume I want to mask a photo of a doughnut in Affinity Photo.  I want a vector mask so I can modify it with precision at any time.

I use the pen tool to draw a closed curve around the perimeter of the doughnut , then fill the curve black.

I present my filled curve to the doughnut layer and get the short blue vertical line.  The mask works as expected, but of course the hole has not been addressed.

How do I deal with the hole?  Nothing I have tried works, except the following:

I draw another closed curve for the doughnut hole and fill it black.  I position this layer below the doughnut / mask layers described above, and change its Mode to Erase.

Now I have the doughnut , a transparent background and transparent hole. This is exactly what I want, with the ability to edit both the doughnut perimeter and the hole, using the node tool.

This technique seems to work well, but it feels like a work-around. Is this the only way to make a vector mask containing a hole?

Link to comment
Share on other sites

Look at the APh shape tools, there is one with a donut shape, also the cog shape tool offers a lot of customizations (can also be made a ring). Try to reuse those for your mask. - Or draw two circles with the shape tools (a smaller on a bigger one) and then geometrical substract those, you will get a donut like shape too then.

☛ Affinity Designer 1.10.6 ◆ Affinity Photo 1.10.6 ◆ Affinity Publisher 1.10.6 ◆ OSX El Capitan
☛ Affinity V2 apps still not installed and thus momentary not in use under MacOS

Link to comment
Share on other sites

Thank you.  The donut shape can be made to work as a mask after converting it to curves, adding many points, and moving each node to conform to the object I wish to mask.  That is a lot of work.

I really need to stay with closed curves which I draw myself.  How do I geometrical subtract two closed curves in Affinity Photo?

Link to comment
Share on other sites

2 hours ago, edferg said:

How do I geometrical subtract two closed curves in Affinity Photo?

Layer > Geometry: Subtract 

or use the top tool menu: 1008100154_ScreenShot2019-03-22at07_43_08.png.a10950ef360c5d73c56264a0303454ab.png 

You might have to customise the menu to get this, so right-click  and choose customise Menu, you can drag the geometry strip onto the menu.

iMac 27" Late 2019 Fully Loaded and running Monterey 12.6.3, iMac 27" Late 2013 running Catalina 10.15.7 - Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9 B|  

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

Thanks everyone!  Layer>Geometry: Subtract converted my two curves into a single layer, which allowed me to mask my image with a hole in the center.

I had never even noticed the Geometry options in the Layers menu before.

Link to comment
Share on other sites

  • 5 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

Please note there is currently a delay in replying to some post. See pinned thread in the Questions forum. These are the Terms of Use you will be asked to agree to if you join the forum. | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.