C# 클래스 AcTools.Utils.ImageUtils

파일 보기 프로젝트 열기: gro-ove/actools

공개 메소드들

메소드 설명
ApplyPreview ( string source, string destination, bool resize ) : void
ApplyPreview ( string source, string destination, double maxWidth = 0d, double maxHeight = 0d ) : void
ApplyPreviewImageMagick ( string source, string destination, double maxWidth = 0d, double maxHeight = 0d ) : void
ApplyPreviews ( string acRoot, string carName, string source, bool resize ) : void
ApplyPreviewsAsync ( string acRoot, string carName, string source, bool resize, double?>.IProgress progress = null, CancellationToken cancellation = default(CancellationToken) ) : Task
Convert ( string source, string destination, int quality = 95 ) : void
ConvertImageMagick ( string source, string destination, int quality ) : void
GetBaseColors ( Bitmap bitmap ) : Color[]
GetBaseColors48 ( Bitmap bitmap ) : Color[]
LoadImageMagickAssembly ( string dllFilename ) : void
ResizeFile ( string source, string destination, int width, int height ) : void
UnloadImageMagickAssembly ( ) : void

비공개 메소드들

메소드 설명
CheckIfMagickSupported ( ) : bool
CreateLivery ( string outputFile ) : void
CurrentDomain_AssemblyResolve ( object sender, ResolveEventArgs args ) : Assembly
GenerateLivery ( string inputFile, string outputFile ) : void
LoadAsConventionalBuffer ( byte data, bool wrapping = true ) : byte[]
LoadAsConventionalBuffer ( byte data, bool noAlpha, string &formatDescription, bool wrapping = true ) : byte[]
LoadFromFileAsConventionalBuffer ( string filename, bool wrapping = true ) : byte[]
LoadFromFileAsImage ( string filename, bool wrapping = true ) : Image
TestImageMagick ( ) : string

메소드 상세

ApplyPreview() 공개 정적인 메소드

public static ApplyPreview ( string source, string destination, bool resize ) : void
source string
destination string
resize bool
리턴 void

ApplyPreview() 공개 정적인 메소드

public static ApplyPreview ( string source, string destination, double maxWidth = 0d, double maxHeight = 0d ) : void
source string
destination string
maxWidth double
maxHeight double
리턴 void

ApplyPreviewImageMagick() 공개 정적인 메소드

public static ApplyPreviewImageMagick ( string source, string destination, double maxWidth = 0d, double maxHeight = 0d ) : void
source string
destination string
maxWidth double
maxHeight double
리턴 void

ApplyPreviews() 공개 정적인 메소드

public static ApplyPreviews ( string acRoot, string carName, string source, bool resize ) : void
acRoot string
carName string
source string
resize bool
리턴 void

ApplyPreviewsAsync() 공개 정적인 메소드

public static ApplyPreviewsAsync ( string acRoot, string carName, string source, bool resize, double?>.IProgress progress = null, CancellationToken cancellation = default(CancellationToken) ) : Task
acRoot string
carName string
source string
resize bool
progress double?>.IProgress
cancellation CancellationToken
리턴 Task

Convert() 공개 정적인 메소드

public static Convert ( string source, string destination, int quality = 95 ) : void
source string
destination string
quality int
리턴 void

ConvertImageMagick() 공개 정적인 메소드

public static ConvertImageMagick ( string source, string destination, int quality ) : void
source string
destination string
quality int
리턴 void

GetBaseColors() 공개 정적인 메소드

public static GetBaseColors ( Bitmap bitmap ) : Color[]
bitmap Bitmap
리턴 Color[]

GetBaseColors48() 공개 정적인 메소드

public static GetBaseColors48 ( Bitmap bitmap ) : Color[]
bitmap Bitmap
리턴 Color[]

LoadImageMagickAssembly() 공개 정적인 메소드

public static LoadImageMagickAssembly ( string dllFilename ) : void
dllFilename string
리턴 void

ResizeFile() 공개 정적인 메소드

public static ResizeFile ( string source, string destination, int width, int height ) : void
source string
destination string
width int
height int
리턴 void

UnloadImageMagickAssembly() 공개 정적인 메소드

public static UnloadImageMagickAssembly ( ) : void
리턴 void