Trim White Space From Image?
Posted: 2019-06-05T22:41:02-07:00
I'm trying to remove "white space" from images using the Trim() function but doesn't seem to work. Here is my code and the sourceImgTrimmed. What is wrong?
Code: Select all
string sourceImg = @"D:\\large_1683_EK08BK_Open_WEB.jpg";
string sourceImgTrimmed = @"D:\\large_1683_EK08BK_Open_Trimmed.jpg";
using (MagickImage image = new MagickImage(sourceImg))
{
image.Trim();
image.RePage();
image.Write(sourceImgTrimmed);
}