All C# extension methods for type image
-
ScaleImage
Scales a Image to make it fit inside of a Height/Width
-
ToBytes
Convert image to byte array
-
Resize
takes a byte[], and ints for width/height. returns a byte[] for the new image. keeps a static copy of previously provided sizes to reduce GC activity.
-
ResizeAndFit
This method resizes a System.Drawing.Image and tries to fit it in the destination Size. The source image size may be smaller or bigger then the target size. Source and target layout orientation can be different. ResizeAndFit tries to fit it the best it can.