Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: rotate top left

$
0
0
You could use Composite. But you will need some math to calculate the x and y position.
using (MagickImage logo = new MagickImage("logo:"))
{
  using (MagickImage overlay = new MagickImage("xc:fuchsia", 150, 100))
  {
    overlay.BackgroundColor = MagickColor.Transparent;
    overlay.Rotate(60);

    int x = 200;
    int y = 200;

    logo.Composite(overlay, x, y, CompositeOperator.Over);
  }

  logo.Write(@"C:\test.png");
}

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>