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

New Post: rotate top left

$
0
0
hi, I'm trying to rotate an image in a MagickImageCollection, but i need the rotate center to be top left. I tried rotate command and distort command, but none work.
could you please help?
here's my code
thanks
        var background = new MagickImage("J:/MyGit/Kaos.ImageParser/Kaos.ImageParser/samples/grid.png");
        var images = new MagickImageCollection();
        images.Add(background);

        var img150 = new MagickImage("J:/MyGit/Kaos.ImageParser/Kaos.ImageParser/samples/150100.png");
        img150.BackgroundColor = MagickColor.Transparent;
        img150.Rotate(60);
        //img150.Distort(DistortMethod.ScaleRotateTranslate, 0,0,60);
        var geo150 = new MagickGeometry(100, 100, 0, 0);
        img150.Page = geo150;
        images.Add(img150);
        SampleLoader.Save("collection.png", images.Flatten());

Viewing all articles
Browse latest Browse all 3693

Trending Articles