Hi,
I am trying to get rid of the background color of the image and extract the logo in that image. Sample image looks like
I tried with code
I am trying to get rid of the background color of the image and extract the logo in that image. Sample image looks like
I tried with code
using (MagickImage image = new MagickImage(@"E:\Development\DOTNET\LOGOExtracter\LOGOExtracterSample\SampleApp\images-input\19045997.PCX"))
{
WritablePixelCollection p = image.GetWritablePixels();
Pixel pp = p.GetPixel(1,2);
MagickColor c = pp.ToColor();
MagickColor fill = new MagickColor(255, 255, 255);
image.Opaque(c, fill);
image.ClassType = ImageMagick.ClassType.Pseudo;
image.Write(@"E:\Development\DOTNET\LOGOExtracter\LOGOExtracterSample\SampleApp\images-output\19045997.jpg");
image.Dispose();
}
please help