C# Class RocksmithToolkitLib.Extensions.ImageHandler

Datei anzeigen Open project: rscustom/rocksmith-custom-song-toolkit

Public Methods

Method Description
ImageToBytes ( this image, ImageFormat format ) : byte[]
IsValidImage ( this fileName ) : bool
PreSizeImage ( string picPngPath, string imageSize ) : Image
Save ( this inputFilePath, int maxWidth, int maxHeight, int quality, string saveFilePath ) : void
Size2IntX ( string imageSize ) : Int32
Size2IntY ( string imageSize ) : Int32

Private Methods

Method Description
GetEncoderInfo ( ImageFormat format ) : System.Drawing.Imaging.ImageCodecInfo

Method Details

ImageToBytes() public static method

public static ImageToBytes ( this image, ImageFormat format ) : byte[]
image this
format System.Drawing.Imaging.ImageFormat
return byte[]

IsValidImage() public static method

public static IsValidImage ( this fileName ) : bool
fileName this
return bool

PreSizeImage() public static method

public static PreSizeImage ( string picPngPath, string imageSize ) : Image
picPngPath string
imageSize string
return Image

Save() public static method

public static Save ( this inputFilePath, int maxWidth, int maxHeight, int quality, string saveFilePath ) : void
inputFilePath this
maxWidth int
maxHeight int
quality int
saveFilePath string
return void

Size2IntX() public static method

public static Size2IntX ( string imageSize ) : Int32
imageSize string
return System.Int32

Size2IntY() public static method

public static Size2IntY ( string imageSize ) : Int32
imageSize string
return System.Int32