mirror of
https://github.com/cyanfish/naps2.git
synced 2024-11-13 06:27:11 +03:00
b62100fb07
No longer keeping System, System.Collections.Generic, System.Linq
16 lines
326 B
C#
16 lines
326 B
C#
using System.Drawing;
|
|
|
|
namespace NAPS2.Util
|
|
{
|
|
public static class ImageExtensions
|
|
{
|
|
public static void SafeSetResolution(this Bitmap image, float xDpi, float yDpi)
|
|
{
|
|
if (xDpi > 0 && yDpi > 0)
|
|
{
|
|
image.SetResolution(xDpi, yDpi);
|
|
}
|
|
}
|
|
}
|
|
}
|