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

New Post: tile

$
0
0
The -tile option set the fillpattern of the image. Your command translates to this:
using (MagickImage image = new MagickImage("xc:none", 320, 90))
{
  using (MagickImage tile = new MagickImage("gradient:white-snow4", 1, 90))
  {
    image.StrokeColor = new MagickColor("snow4");
    image.FillColor = new MagickColor("white");
    image.FillPattern = tile;
    Drawable[] draw_this =
    {
       new DrawableRoundRectangle(16, 5, 304, 85, 20, 40)
    };
    image.Draw(draw_this);
  }
  image.Write(@"D:\test.png");
}
I have not tested this with the IM6 version of Magick.NET and you might notice that I use new constructor. This constructor is not yet available in Magick.NET but will be in the next release. We are also working on fixing the transparency issue from your other post (http://magick.codeplex.com/discussions/571560) in ImageMagick. That will be fixed in the next release.

Viewing all articles
Browse latest Browse all 3693

Trending Articles



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