Nextended.Imaging — API-Referenz
Die vollständige öffentliche Oberfläche von Nextended.Imaging, erzeugt aus der gebauten Assembly.
Generiert
Diese Seite wird von tools/ApiRef aus der kompilierten Assembly erzeugt — sie zeigt auch Member ohne XML-Kommentar und kann daher nicht vom Code abweichen. Nicht von Hand bearbeiten.
Nextended.Imaging
ImageHelper
static class
Hilfklasse für Bildveraerbeitung
Extension Methods
StartsWith(this byte[] thisBytes, byte[] thatBytes) : bool
Methoden
CalculateResize(Size imageSize, Size boxSize) : Size
Calculates the resize.ConvertImageToByteArray(string fileName) : byte[]
Converts the image to a byte array.GetDimensions(BinaryReader binaryReader) : Size
Gets the dimensions of an image.GetDimensions(string path) : Size
Gets the dimensions of an image.IsValidImage(BinaryReader binaryReader) : bool
Gets the dimensions of an image.IsValidImage(byte[] bytes) : bool
IsValid ImageIsValidImage(string path) : bool
Gets the dimensions of an image.ReadImageColor(string imagePath) : Color
Farbe eines Bildes ermitteln
Miscellaneous
static class
Miscellaneous
Extension Methods
GetMimeType(this FileInfo fileInfo) : string
Gibt den Mime type der Datei zurückGetWeightedBrightness(this Color color) : int
returns a value for the decision whether the text should be black or white depending on the human eye's sensitivity to the underlying colourToDelphiColor(this Color foreColor) : int
Konvertiert die Farbe zum Integer-Code, gemäß dem Delphi-Farben z.B. in Reportdefinitionen hinterlegt sind.ToHtml(this Color color) : string
Color to Hex
Methoden
FromDelphiColor(int color) : Color
Konvertiert Delphi-Farbcode in WinForms-Color.GetColor(string htmlColor) : Color
Farbe zurückgebenGetMimeFromBytes(byte[] data) : string
Gibt den Mime type der eines byte Arrays zurückGetMimeType(string fileName) : string
/// Gibt den MimeType der Datei zurückGetOptimalForegroundColor(Color backgroundColor) : Color
Gibt die je nach hintergrundfarbe schwarz oder weiß zurück
Felder
DefaultMimeType : string
DefaultMimeTypeMimeSampleSize : int
MimeSampleSize
ResizeMode
enum
ResizeMode
Werte
KeepScale
KeepScaleKeepScaleAndCut
KeepScaleAndCutStretch
StretchModevalue__