How to use DrawableSkewX/Y?
Posted: 2017-04-18T07:48:39-07:00
I test it using following code:
I absolutely don't see the difference: with DrawableSkewY line and without it. How to properly use it?
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" );