Search found 11 matches

by Pit Sullivan
2015-04-21T14:52:13-07:00
Forum: Users
Topic: How do I use Magick++ API to create a radial gradient?
Replies: 8
Views: 5460

Re: How do I use Magick++ API to create a radial gradient?

That's cool! I got it. Thus I don't have to use MagickCore API for that. Thank you so much!
by Pit Sullivan
2015-04-21T14:29:56-07:00
Forum: Users
Topic: How do I use Magick++ API to create a radial gradient?
Replies: 8
Views: 5460

Re: How do I use Magick++ API to create a radial gradient?

'radial-gradient:inner-outer' is the name of the 'file' on the command line. So you can just do something like this: size_t W=100; size_t H=100; Magick::Image img; img.size(Geometry(W, H)); img.read("radial-gradient:purple-yellow"); img.write("result.png"); edit: Updated my example after Fred his ...
by Pit Sullivan
2015-04-21T13:16:09-07:00
Forum: Users
Topic: How do I use Magick++ API to create a radial gradient?
Replies: 8
Views: 5460

Re: How do I use Magick++ API to create a radial gradient?

I have tried to reproduce this: convert -size WxH radial-gradient:inner-outer result Here is a code I wrote that reproduces it: void retrieveColor(Magick::PixelPacket& to, const Magick::Color& from) { to.blue = from.blueQuantum(); to.green = from.greenQuantum(); to.red = from.redQuantum(); to ...
by Pit Sullivan
2015-04-21T06:35:30-07:00
Forum: Users
Topic: How do I use Magick++ API to create a radial gradient?
Replies: 8
Views: 5460

How do I use Magick++ API to create a radial gradient?

Hey, guys! I've been looking for any image gradients methods in the Magick++ API but I can't find anything. I need to add a radial gradient to an image. Although I found ImageGradient method in MagickCore API, but I haven't seen into it yet. Is there any method in Magick++ API that does what I want ...
by Pit Sullivan
2015-04-18T13:40:58-07:00
Forum: Users
Topic: How to divide this command into separate sub-commands?
Replies: 9
Views: 5800

Re: How to divide this command into separate sub-commands?

UPD: Finally I have found a trial-and-error solution. I'm gonna put it here but first I need to figure out why when the negate option is disabled in my program but enabled in command-line and vice versa, I get the same result. Do you have any ideas?
by Pit Sullivan
2015-04-14T22:35:20-07:00
Forum: Users
Topic: How to divide this command into separate sub-commands?
Replies: 9
Views: 5800

Re: How to divide this command into separate sub-commands?

I've already tried, but if I swap them, I will get wrong result in previous case (calling composite with default composition operator).
by Pit Sullivan
2015-04-14T20:43:10-07:00
Forum: Users
Topic: How to divide this command into separate sub-commands?
Replies: 9
Views: 5800

Re: How to divide this command into separate sub-commands?

UPD: I have finally figured it out. There is no limitation. Let's examine this command: convert background.jpg source.jpg mask.jpg -composite result.jpg We have three images here - background, source and masking image which limit the area affected by the 'compose' method. Magick++ library provides a ...
by Pit Sullivan
2015-04-14T20:14:57-07:00
Forum: Magick++
Topic: Which object should I use to invoke 'defineValue' method?
Replies: 0
Views: 8824

Which object should I use to invoke 'defineValue' method?

Here is the problem. I have a command: convert background.jpg source.jpg mask.jpg -compose blend -define compose:args=50,50 - composite result.jpg As you can see, there is a 'define' option in this command. I wrote a C++ program which let me do the same thing, but I don't know how to specify the ...
by Pit Sullivan
2015-04-13T20:32:20-07:00
Forum: Users
Topic: How to divide this command into separate sub-commands?
Replies: 9
Views: 5800

Re: How to divide this command into separate sub-commands?

I will contact the IM developers and see if this is truly a limitation of Magick++. Perhaps they can make a change to the Magick++ composite. But how does the convert program do it? It probably uses the same resources that Magick++ does. Today I have tried to figure it out but it's too complex for ...
by Pit Sullivan
2015-04-13T20:02:21-07:00
Forum: Users
Topic: How to divide this command into separate sub-commands?
Replies: 9
Views: 5800

Re: How to divide this command into separate sub-commands?

What version of Imagemagick are you using and what platform? There should be no difference if you do them separately with a current version of IM. How are you specifying 'color'? As a name, as an rgb triplet or as a hex value? With IM 6.9.1.1 Q16 Mac OSX, I get virtually the exact same results from ...
by Pit Sullivan
2015-04-13T15:35:29-07:00
Forum: Users
Topic: How to divide this command into separate sub-commands?
Replies: 9
Views: 5800

How to divide this command into separate sub-commands?

Hello, guys! There is a command: convert original.jpg \( -clone 0 -fill 'color' -colorize 100% \) \( -clone 0 -colorspace gray -negate \) -composite output.jpg So, I wonder how I can divide this command into separate pieces. I know how to create these two additional images which where being cloned ...