Search found 12 matches

by Bert
2018-09-11T00:48:59-07:00
Forum: Magick.NET
Topic: Fade text (label) on transparent background to transparent.
Replies: 5
Views: 4686

Re: Fade text (label) on transparent background to transparent.

Fixed it. Using CopyAlpha was the right direction, but I had to make sure the Alpha was the entire 'text', not just the gradient. So the following https://i.imgur.com/pqUu7Ol.png with the following Alpha (using CopyAlpha on the image above) https://i.imgur.com/nia2iqS.png Comes to this: https://i.im...
by Bert
2018-09-06T11:12:57-07:00
Forum: Magick.NET
Topic: Fade text (label) on transparent background to transparent.
Replies: 5
Views: 4686

Re: Fade text (label) on transparent background to transparent.

The code I've provided is just what I use for my examples. I've changed filledMaskText to MagickColors.Red and GradientMaskText to gradient:red-none but when I composite multiply them I get the 'redder red' version, whereas I just want actual red (255 0 0) fading to transparent.
by Bert
2018-09-06T10:33:16-07:00
Forum: Magick.NET
Topic: Fade text (label) on transparent background to transparent.
Replies: 5
Views: 4686

Re: Fade text (label) on transparent background to transparent.

alas, that's what I've also tried (with the second example). It looks good, but the red is more 'redder'. so I've tried white-transparent and red-transparent (and just the CopyAlpha with a white-black) The original should have RGB(255,0,0), but if I multiply a transparent-red gradient over it the re...
by Bert
2018-09-06T10:10:00-07:00
Forum: Magick.NET
Topic: Fade text (label) on transparent background to transparent.
Replies: 5
Views: 4686

Fade text (label) on transparent background to transparent.

Hello I'm trying to create the following: Text (in any color) on a transparent background which in itself starts fading into nothing (transparency) starting from a certain width. This is an example that I've made in Photoshop (using a Layer Mask) and what it should be: https://i.imgur.com/cp4gmvs.pn...
by Bert
2018-08-09T04:56:44-07:00
Forum: Magick.NET
Topic: Rough anti-aliasing
Replies: 2
Views: 3270

Re: Rough anti-aliasing

And now I have solved the issue, heh... I've changed completeTextBox.Composite(completeMask, 0, 0); to completeTextBox.Composite(completeMask, 0, 0, CompositeOperator.Multiply); Which is logical, when you think about it but I didn't make the connection that opacity might get screwed up when using co...
by Bert
2018-08-09T02:10:11-07:00
Forum: Magick.NET
Topic: Rough anti-aliasing
Replies: 2
Views: 3270

Re: Rough anti-aliasing

-snip-

I thought I solved the issue, but I just put Dissolve to zero (which just removes the 'overlay'), so that's not the way to go.
by Bert
2018-08-09T00:37:06-07:00
Forum: Magick.NET
Topic: Rough anti-aliasing
Replies: 2
Views: 3270

Rough anti-aliasing

Hello I'm using the following code to put text on a gradient background: using ImageMagick; namespace TextToPicture { class Slideshow { static void Main(string[] args) { using (var image = new MagickImage(MagickColors.White, 320, 240)) { image.Density = new Density(300); image.Format = MagickFormat....
by Bert
2018-07-03T21:53:00-07:00
Forum: Magick.NET
Topic: Gradient direction
Replies: 2
Views: 3533

Re: Gradient direction

That did the trick. Thank you very much!
by Bert
2018-07-03T03:31:12-07:00
Forum: Magick.NET
Topic: Gradient direction
Replies: 2
Views: 3533

Gradient direction

See following ImageMagick command (taken from https://www.imagemagick.org/script/gradient.php ) magick -size 256x128 -define gradient:direction=east gradient:black-white linear_gradient_east.png I've managed to translate it to .NET, except the gradient:direction part I've tried various things as see...
by Bert
2018-07-03T03:20:09-07:00
Forum: Magick.NET
Topic: Magick.NET - Fade to transparent
Replies: 3
Views: 3919

Re: Magick.NET - Fade to transparent

I've managed to solve it, I had to set the masking color to the font color instead of black, and the font color to white.

My mask was also a gradient from black to white, and it should be from the color you want the font to be to transparent (none).
by Bert
2018-06-30T06:37:42-07:00
Forum: Magick.NET
Topic: Magick.NET - Fade to transparent
Replies: 3
Views: 3919

Re: Magick.NET - Fade to transparent

No idea, I've been trying to 'translate' the command used for overlapping photos here: https://www.imagemagick.org/Usage/photos/#overlap I'm trying to combine a caption 'text-box' and an empty, transparent image with a masking image so that the text at the predefined edges start to fade into nothing...
by Bert
2018-06-29T05:24:20-07:00
Forum: Magick.NET
Topic: Magick.NET - Fade to transparent
Replies: 3
Views: 3919

Magick.NET - Fade to transparent

Hello I'm currently writing a C# application which should print (wordwrapped) text over a predefined height and width where the extreme edges should fade into transparency. I am using the latest C# MagickImage package (AnyCpu, Q8, 7.5.0) at the time of writing. These parameters are provided (shorten...