C# Class AcTools.Utils.ImageUtils

Afficher le fichier Open project: gro-ove/actools

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

ApplyPreview() public static méthode

public static ApplyPreview ( string source, string destination, bool resize ) : void
source string
destination string
resize bool
Résultat void

ApplyPreview() public static méthode

public static ApplyPreview ( string source, string destination, double maxWidth = 0d, double maxHeight = 0d ) : void
source string
destination string
maxWidth double
maxHeight double
Résultat void

ApplyPreviewImageMagick() public static méthode

public static ApplyPreviewImageMagick ( string source, string destination, double maxWidth = 0d, double maxHeight = 0d ) : void
source string
destination string
maxWidth double
maxHeight double
Résultat void

ApplyPreviews() public static méthode

public static ApplyPreviews ( string acRoot, string carName, string source, bool resize ) : void
acRoot string
carName string
source string
resize bool
Résultat void

ApplyPreviewsAsync() public static méthode

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
Résultat Task

Convert() public static méthode

public static Convert ( string source, string destination, int quality = 95 ) : void
source string
destination string
quality int
Résultat void

ConvertImageMagick() public static méthode

public static ConvertImageMagick ( string source, string destination, int quality ) : void
source string
destination string
quality int
Résultat void

GetBaseColors() public static méthode

public static GetBaseColors ( Bitmap bitmap ) : Color[]
bitmap Bitmap
Résultat Color[]

GetBaseColors48() public static méthode

public static GetBaseColors48 ( Bitmap bitmap ) : Color[]
bitmap Bitmap
Résultat Color[]

LoadImageMagickAssembly() public static méthode

public static LoadImageMagickAssembly ( string dllFilename ) : void
dllFilename string
Résultat void

ResizeFile() public static méthode

public static ResizeFile ( string source, string destination, int width, int height ) : void
source string
destination string
width int
height int
Résultat void

UnloadImageMagickAssembly() public static méthode

public static UnloadImageMagickAssembly ( ) : void
Résultat void