Code: Select all
Magick::Image testImg( "images/horse.jpg" );
testImg.strokeColor( "red" );
testImg.fillColor( Magick::Color( QuantumRange, QuantumRange, QuantumRange, 0 ) );
testImg.strokeWidth( 2 );
testImg.draw( Magick::DrawableSkewY( 50 ) );
testImg.draw( Magick::DrawableEllipse( 100, 100, w, h, 0, 360 ) );
int extent = 50;
testImg.extent( Magick::Geometry( testImg.columns() + extent, testImg.rows() + extent ), Magick::Color( QuantumRange, QuantumRange, QuantumRange, QuantumRange ), MagickCore::CenterGravity );
testImg.write( "images/test-img.png" );