C# Class Frapid.Areas.Drawing.BitmapHelper

Datei anzeigen Open project: frapid/frapid

Public Methods

Method Description
Resize ( this img, int srcX, int srcY, int srcWidth, int srcHeight, int dstWidth, int dstHeight ) : Image
ResizeCropExcess ( string path, int dstWidth, int dstHeight ) : byte[]
ResizeProportional ( this img, int width, int height, bool enlarge = false ) : Image

Method Details

Resize() public static method

public static Resize ( this img, int srcX, int srcY, int srcWidth, int srcHeight, int dstWidth, int dstHeight ) : Image
img this
srcX int
srcY int
srcWidth int
srcHeight int
dstWidth int
dstHeight int
return Image

ResizeCropExcess() public static method

public static ResizeCropExcess ( string path, int dstWidth, int dstHeight ) : byte[]
path string
dstWidth int
dstHeight int
return byte[]

ResizeProportional() public static method

public static ResizeProportional ( this img, int width, int height, bool enlarge = false ) : Image
img this
width int
height int
enlarge bool
return Image