you should create the text as a separate image, blur it, and composite that over another image.
Yeah, that's what I need. But I can't do it
If I go that way:
Code: Select all
Magick::Image image( Magick::Geometry( 800, 600 ), Magick::Color( "white" ) );
image.font( "verdana" );
image.fontPointsize( 100 );
image.fillColor( Magick::Color( "maroon" ) );
image.strokeColor( Magick::Color( "red" ) );
image.strokeWidth( 2 );
image.draw( Magick::DrawableText( 0, 175, "Some text 1" ) );
Magick::Image image2( Magick::Geometry( 800, 600 ), Magick::Color( 0, 0, 0, 0 ) );
image2.font( "verdana" );
image2.fontPointsize( 100 );
image2.fillColor( Magick::Color( "yellow" ) );
image2.strokeColor( Magick::Color( "red" ) );
image2.strokeWidth( 2 );
image2.draw( Magick::DrawableText( 0, 200, "Some text 2" ) );
image2.artifact( "compose:args", "50,50" );
image.composite( image2, 0, 0, Magick::BlendCompositeOp );
I get this output:
Where's the bounds of the yellow label?
Ok, but if I go that way:
Code: Select all
image.composite( image2, 0, 0, Magick::AddCompositeOp );
I get similar result. I just need two labels one over another... without blending it... just... copy one over another
Is it possible?