I am trying to Convert all the white background of a Image (generated from Html using a plugin) to transparent so that I can use it as a stamp
Using image As MagickImage = New MagickImage(filenamelocation)
image.Alpha(AlphaOption.Set)
image.ColorFuzz = New Percentage(40)
image.Settings.BackgroundColor = MagickColors.Transparent
image.Settings.FillColor = MagickColors.White
image.FloodFill(MagickColors.Transparent, 0, 0)
image.Write(Path.Combine(Server.MapPath("~/Uploads/attachment/"), "stampimagename.png"))
End Using
Iam using ImageMagick nuget package for doing the same and needs to convert all the white to transparent Only blue Color items shows remain ,Can somebody advice what I am doing wrong