Tomeric Posted August 20, 2019 Share Posted August 20, 2019 Hi, how do I protect transparent areas of a pixel layer against filling? Or in other words: How do I fill only the not-transparent parts on a pixel layer? (...without first applying a proper masking) Quote Link to comment Share on other sites More sharing options...
John Rostron Posted August 20, 2019 Share Posted August 20, 2019 29 minutes ago, Tomeric said: without first applying a proper masking Why do you not want to apply masking (proper or otherwise). The obvious solution would be to select the transparent area, invert the selection and then fill this non-transparent selection. John Quote Windows 10, Affinity Photo 1.10.5 Designer 1.10.5 and Publisher 1.10.5 (mainly Photo), now ex-Adobe CC CPU: AMD A6-3670. RAM: 16 GB DDR3 @ 666MHz, Graphics: 2047MB NVIDIA GeForce GT 630 Link to comment Share on other sites More sharing options...
Staff MEB Posted August 20, 2019 Staff Share Posted August 20, 2019 Hi Tomeric, cmd click the thumbnail of the pixel layer in the Layers panels to create a selection from its content then use Edit > Fill to fill it with the color you want (make sure the layers is selected in the layers panel). Alternatively switch to/use the Paint Brush Tool with a large brush size (no selection needed), tick the Protect Alpha checkbox in the context toolbar and paint over the object. James Mcilwraith 1 Quote A Guide to Learning Affinity Software | Affinity Quick Reference | Call for Camera Images Link to comment Share on other sites More sharing options...
PixelPest Posted August 20, 2019 Share Posted August 20, 2019 I guess you want just the shape to carry a new color. I´d probably go this route: 1. Select layer if its alone in a layer (or flood select for selection of interest) 2. add layer effect-> Color Overlay: adjust color James Mcilwraith 1 Quote Link to comment Share on other sites More sharing options...
Tomeric Posted August 20, 2019 Author Share Posted August 20, 2019 Thank you all! So unfortunately there is no function to protect the transparent surfaces like in PhotoShop. 1 hour ago, John Rostron said: Why do you not want to apply masking (proper or otherwise). The obvious solution would be to select the transparent area, invert the selection and then fill this non-transparent selection. If you want to apply a new color to some pixels, filling with transparency-protection can be the quickest way. PhotoShop has a checkbox for that in its "Fill"-popup and besides that a "protect transparency" option in its layers context menu. Both are quite useful. Example: Today I received a logo as a transparent PNG file in which I had to change some text, but only a part of the graphic. In the end, I made a selection of the entire content and deselected the area that wasn't to be colored. With simple filling it would have been faster. Quote Link to comment Share on other sites More sharing options...
PixelPest Posted August 20, 2019 Share Posted August 20, 2019 Protect Alpha won´t work for you? Note that you don´t need to select anything - just paint over. James Mcilwraith 1 Quote Link to comment Share on other sites More sharing options...
Tomeric Posted August 22, 2019 Author Share Posted August 22, 2019 Thanks Pixel, I didn't notice this Checkbox in the Brush-Context-Toolbar. It's a little more cumbersome than it should be, but that's acceptable to me. Quote Link to comment Share on other sites More sharing options...
PixelPest Posted August 22, 2019 Share Posted August 22, 2019 Layer effect: Color Overlay won´t work for you? Quote Link to comment Share on other sites More sharing options...
mac_heibu Posted August 22, 2019 Share Posted August 22, 2019 19 minutes ago, Tomeric said: Thanks Pixel, I didn't notice this Checkbox in the Brush-Context-Toolbar. It's a little more cumbersome than it should be, but that's acceptable to me. That is the „drama“ for all users, who expect a new application B working identically as application A. This is not the case, and if, it would be an evidence of incapacity for the software engineers of application B. Copycats seldomly are creative beings … James Mcilwraith 1 Quote Link to comment Share on other sites More sharing options...
Tomeric Posted August 22, 2019 Author Share Posted August 22, 2019 "Color overlay" ignores any selections. Currently the "Brush-trick" seems to be the quickest way... "New Adjustment Layer/ Recolour" could also be an alternative, but here we can't define the new color precisely; respectively not by RGB value or so. Quote Link to comment Share on other sites More sharing options...
Tomeric Posted August 22, 2019 Author Share Posted August 22, 2019 3 minutes ago, mac_heibu said: That is the „drama“ for all users, who expect a new application B working identically as application A. This is not the case, and if, it would be an evidence of incapacity for the software engineers of application B. Truly, but this is how you typically approach new software... or a new Microwave, Radio, Navi, Toaster, ... I think that's perfectly okay, and maybe for the developers of "B" it could be an indication that the developers of "A" had a good idea too that should be adopted. Quote Link to comment Share on other sites More sharing options...
mac_heibu Posted August 22, 2019 Share Posted August 22, 2019 5 minutes ago, Tomeric said: Truly, but this is how you typically approach new software... or a new Microwave, Radio, Navi, Toaster, ... Following this, the computer, the iPhone, … never would have been invented. 6 minutes ago, Tomeric said: I think that's perfectly okay, and maybe for the developers of "B" it could be an indication that the developers of "A" had a good idea too that should be adopted. So, you really want a copy of Photoshop? Are you looking for a cheaper version of Photoshop? Quote Link to comment Share on other sites More sharing options...
PixelPest Posted August 22, 2019 Share Posted August 22, 2019 18 minutes ago, Tomeric said: "New Adjustment Layer/ Recolour" could also be an alternative, but here we can't define the new color precisely; respectively not by RGB value or so. Ok Ok - here´s an ugly one but with RGB control when ambient lighting is killed: Quote Link to comment Share on other sites More sharing options...
Tomeric Posted August 22, 2019 Author Share Posted August 22, 2019 IMHO it's absoluty human to first try out what has worked before in a similar situation. > Following this, the computer, the iPhone, … never would have been invented. The computer as an example... originally paper tape was necessary. Necessary, but not a user-friendly idea. So they finally used what the users already knew since the 19th century: The keyboard. And this in an old layout that could have been improved in the process. (Dvorak keyboard for example.) A good decision, IMHO. When I create something new, I always consider user expectations, and only when I think there is a *really* better solution, I do implement that. > So, you really want a copy of Photoshop? Are you looking for a cheaper version of Photoshop? Not a copy, but: A software that has been developed for 30 years must contain some good ideas. Why not find them out and make them your own (speaking for Serif here)? By the way, the price is not why I don't want to use PhotoShop anymore: I don't like the rental software system. Because of AD (among others) I have cancelled my Adobe CC subscription in the meantime. Only the photographer subscription is left, because AP does not contain yet all features that are helpful for my jobs. Quote Link to comment Share on other sites More sharing options...
colindun Posted September 20, 2021 Share Posted September 20, 2021 On 8/20/2019 at 1:41 PM, MEB said: Hi Tomeric, cmd click the thumbnail of the pixel layer in the Layers panels to create a selection from its content then use Edit > Fill to fill it with the color you want (make sure the layers is selected in the layers panel). Alternatively switch to/use the Paint Brush Tool with a large brush size (no selection needed), tick the Protect Alpha checkbox in the context toolbar and paint over the object. How can I do this with a gradient? When I want to fill just the object on a layer and select the gradient tool, I don't see a 'protect alpha' box. Quote Link to comment Share on other sites More sharing options...
Alfred Posted September 20, 2021 Share Posted September 20, 2021 35 minutes ago, colindun said: How can I do this with a gradient? When I want to fill just the object on a layer and select the gradient tool, I don't see a 'protect alpha' box. Since there’s no ‘Protect Alpha’ option for the Gradient Tool, you have to use the pixel selection method. Quote Alfred Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 16.7.2 (iPad 7th gen) Link to comment Share on other sites More sharing options...
Lisbon Posted September 20, 2021 Share Posted September 20, 2021 I just uncheck Editable on the composite alpha. Am i missing something? Alfred 1 Quote Link to comment Share on other sites More sharing options...
NotMyFault Posted September 20, 2021 Share Posted September 20, 2021 1 minute ago, Lisbon said: I just uncheck Editable on the composite alpha. Am i missing something? Works for all painting tools and almost all destructive filters (did not check e.g. frequency separation). Does not work for adjustment layers and live filter layers. Lisbon 1 Quote Mac mini M1 A2348 LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 iPad Air Gen 5 (2022) A2589 Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps. Link to comment Share on other sites More sharing options...
Lisbon Posted September 20, 2021 Share Posted September 20, 2021 54 minutes ago, NotMyFault said: Works for all painting tools and almost all destructive filters (did not check e.g. frequency separation). Does not work for adjustment layers and live filter layers. Right. I was referring to the Gradient Tool question. I should have mentioned it. Sorry. My fault. NotMyFault and Alfred 1 1 Quote Link to comment Share on other sites More sharing options...
telemax Posted September 20, 2021 Share Posted September 20, 2021 3 hours ago, colindun said: How can I do this with a gradient? When I want to fill just the object on a layer and select the gradient tool, I don't see a 'protect alpha' box. The best way is non-destructive. Keeps the original, and allows you to edit the gradient after. Masking_&_Clipping.mp4 Lisbon, Alfred and NotMyFault 3 Quote Non-destructive Mask https://forum.affinity.serif.com/index.php?/topic/150439-non-destructive-mask/Image layer & Pixel layer https://forum.affinity.serif.com/index.php?/topic/146720-image-layer-and-pixel-layer/Brushes | Stars https://forum.affinity.serif.com/index.php?/topic/135202-brushes-stars/ Link to comment Share on other sites More sharing options...
PixelPest Posted September 20, 2021 Share Posted September 20, 2021 6 hours ago, colindun said: How can I do this with a gradient? When I want to fill just the object on a layer and select the gradient tool, I don't see a 'protect alpha' box. What kind of "object" is it? I mean in the case of the "Square star" above simply select and drag a gradient to it. No? Quote Link to comment Share on other sites More sharing options...
colindun Posted September 21, 2021 Share Posted September 21, 2021 19 hours ago, Lisbon said: I just uncheck Editable on the composite alpha. Am i missing something? Uh, I'm new here, so where do I find the compost alpha settings? ;0) Quote Link to comment Share on other sites More sharing options...
colindun Posted September 21, 2021 Share Posted September 21, 2021 In my case it was some text that I had rasterised. I then wanted to fill the text shape with a gradient, but when I select the gradient tool and set the colours it's filling the entire layer rather than just the rasterised shape on the layer. Is there a preserve alpha alpha control I am overlooking somewhere? Quote Link to comment Share on other sites More sharing options...
NotMyFault Posted September 21, 2021 Share Posted September 21, 2021 13 minutes ago, colindun said: In my case it was some text that I had rasterised. I then wanted to fill the text shape with a gradient, but when I select the gradient tool and set the colours it's filling the entire layer rather than just the rasterised shape on the layer. Is there a preserve alpha alpha control I am overlooking somewhere? In your case a different workflow leads to success: create a rectangle with a gradient. Should be large enough to cover the text. nest this layer under the rasterized text you can re-adjust the gradient any time later if required Quote Mac mini M1 A2348 LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 iPad Air Gen 5 (2022) A2589 Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps. Link to comment Share on other sites More sharing options...
colindun Posted September 21, 2021 Share Posted September 21, 2021 Thanks ;0) NotMyFault 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.