Please, can anyone help me on how to set images format, resolution and its size when using Aforge library? Actually, what i want to do is to set image resolution to 320 x 240.
please help.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jefferson S. MottaPosted Oct 1, 2018, 3:25 PM
int height = 240;
IFilter blurFilter;
filters.Add(blurFilter);
IFilter resizeFilter = new ResizeBilinear(width, height);
filters.Add(resizeFilter);
image.Dispose();
image = newImage;