C# 클래스 RocksmithToolkitLib.Extensions.ImageHandler

파일 보기 프로젝트 열기: rscustom/rocksmith-custom-song-toolkit

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
GetEncoderInfo ( ImageFormat format ) : System.Drawing.Imaging.ImageCodecInfo

메소드 상세

ImageToBytes() 공개 정적인 메소드

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

IsValidImage() 공개 정적인 메소드

public static IsValidImage ( this fileName ) : bool
fileName this
리턴 bool

PreSizeImage() 공개 정적인 메소드

public static PreSizeImage ( string picPngPath, string imageSize ) : Image
picPngPath string
imageSize string
리턴 Image

Save() 공개 정적인 메소드

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

Size2IntX() 공개 정적인 메소드

public static Size2IntX ( string imageSize ) : Int32
imageSize string
리턴 System.Int32

Size2IntY() 공개 정적인 메소드

public static Size2IntY ( string imageSize ) : Int32
imageSize string
리턴 System.Int32