Код: Выделить всё
Bitmap tempbim = null;
int newW = Convert.ToInt32(input.Width * scale);
int newH = Convert.ToInt32(input.Height * scale);
tempbim = new Bitmap(newW, newH);
using (Graphics g = Graphics.FromImage(tempbim))
{
g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBilinear; //.HighQualityBicubic;
g.DrawImage(input, 0, 0, newW, newH);
}
Любые предложения или сведения о том, что изменилось и что необходимо исправить, будут оценил.
Брент
Подробнее здесь: https://stackoverflow.com/questions/792 ... windows-11