Page 1 of 1

Removing Black Borders when Rotating and Image

PostPosted: Mon Jul 30, 2018 7:58 pm
by asadhu7
Hello AForge Community,

Currently, I am working on a project that requires me to rotate an image a specific number of degrees. The image has a white background, but when I rotate it there are irregular black shapes around the image. Is there any way to turn the black areas white or remove those areas specifically. I have attached images of the problem to this post.

Thanks in Advance for the Help

Re: Removing Black Borders when Rotating and Image

PostPosted: Tue Jul 31, 2018 6:47 am
by andrew.kirillov
Hello,

When you use one of the rotation filters of the AForge.NET Framework, you can set the FillColor property to specify which color to use for filling those edge areas.