Issues with Color, strokeColor, strokeWidth, strokeAntiAlias
Posted: 2008-12-01T12:11:14-07:00
Hi, I'm using Magick++ and I have followed the tutorial.
I'm using Debian 64bits if that matters.
I'm able do draw simple lines like in the example:
// Example:
my_image.strokeColor("red");
my_image.strokeAntiAlias(false);
However when I try to do something more, things don't work.
[1] I'm unable to set the color of a line using RGB values, I always get a black line. If I use the method in the example it works, however using strings isn't enough for me.
I always get black lines with the first method.
[2] strokeWidth
How do I set a width of 1 pixel?
[3] strokeAntiAlias and everything else
CASE 1: color "red", width 0.1, AA false
CASE 2: color "red", width 0.1, AA true
CASE 3: color "red", width 0.1, AA true, fillcolor "red"
How do I draw a simple solid filled line? It gets all weird either with and without AA.
There are more colors in those lines than just red. Yes, that should be expected with AA, but not black pixels
Thank you very much for any help you may give.
I'm using Debian 64bits if that matters.
I'm able do draw simple lines like in the example:
// Example:
my_image.strokeColor("red");
my_image.strokeAntiAlias(false);
However when I try to do something more, things don't work.
[1] I'm unable to set the color of a line using RGB values, I always get a black line. If I use the method in the example it works, however using strings isn't enough for me.
Code: Select all
Color *line_color = new Color(255, 0, 0, 0);
Color *line_color = new Color("red");
[2] strokeWidth
How do I set a width of 1 pixel?
[3] strokeAntiAlias and everything else
CASE 1: color "red", width 0.1, AA false
CASE 2: color "red", width 0.1, AA true
CASE 3: color "red", width 0.1, AA true, fillcolor "red"
How do I draw a simple solid filled line? It gets all weird either with and without AA.
There are more colors in those lines than just red. Yes, that should be expected with AA, but not black pixels
Thank you very much for any help you may give.