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

New Post: Applying rotation, scale and translation to images

$
0
0
Are there any examples out there on how to use MagickImage.Transform? I'm trying something simple, but not having much luck ...

MagickImage image = new MagickImage(imageFIle);

image.Settings.SetTransformOrigin(0, 0);
image.Settings.SetTransformRotation(0);
image.Settings.SetTransformScale(2, 2);
image.Settings.SetTransformSkewX(0);
image.Settings.SetTransformSkewY(0);

MagickGeometry geo = new MagickGeometry(image.Width, image.Height);
image.Transform(geo, geo);

image.Write(imageFIle);

Viewing all articles
Browse latest Browse all 3693

Trending Articles



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