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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Jefferson S. MottaRank #207 · 11.7K reputationPosted Oct 1, 2018, 11:25 AM EDT
int height = 240;
IFilter blurFilter;
filters.Add(blurFilter);
IFilter resizeFilter = new ResizeBilinear(width, height);
filters.Add(resizeFilter);
image.Dispose();
image = newImage;