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

New Post: Issue with colorization using RGB values

$
0
0
The new release has been published. Below is a translation of the two commands that you got on the ImageMagick forum:
// convert background1_original.jpgusing (var image = new MagickImage("background1_original.jpg"))
{
  using (var images = new MagickImageCollection())
  {
    // ( -size 1x1 xc:black xc:"hsl(60,70%,50%)" xc:white
    images.Add(new MagickImage("xc:black", 1, 1));
    images.Add(new MagickImage("xc:hsl(60%,70%,50%)", 1, 1));
    images.Add(new MagickImage("xc:white", 1, 1));

    // +appendusing (var clut = images.AppendHorizontally())
    {
      // -resize 512x1! )
      clut.Resize(new MagickGeometry("512x1!"));
      // -interpolate bilinear -clut
      image.Clut(clut, PixelInterpolateMethod.Bilinear);
      // result.jpg
      image.Write(@"d:\test.png");
    }
  }
}

// magick background1_original.jpg -append ) -clut output.jpgusing (var image = new MagickImage("background1_original.jpg"))
{
  using (var images = new MagickImageCollection())
  {
    // (-size 1x256 gradient:#000000-#dddd33 gradient:#dddd33-#ffffff
    images.Add(new MagickImage("gradient:#000000-#dddd33", 1, 256));
    images.Add(new MagickImage("gradient:#dddd33-#ffffff", 1, 256));

    // -append )using (var clut = images.AppendVertically())
    {
      // -clut
      image.Clut(clut, PixelInterpolateMethod.Undefined);
      // result.jpg
      image.Write("result.jpg");
    }
  }
}

Viewing all articles
Browse latest Browse all 3693

Trending Articles



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