Class ColorTranslator

Class ColorTranslator

Nazwa przestrzeń: Aspose.Imaging Zgromadzenie: Aspose.Imaging.dll (25.4.0)

Tłumaczy kolory do i z struktur kolorów GDI+. ta klasa nie może być dziedziczona.

public sealed class ColorTranslator

Inheritance

object ColorTranslator

Dziedziczeni członkowie

object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Methods

FromHtml(strumień)

Kolor pochodzi od koloru HTML.

public static Color FromHtml(string htmlColor)

Parameters

htmlColor string

Kolor HTML

Returns

Color

w kolorze .

FromOle(Int)

Kolor pochodzi od koloru oleju.

public static Color FromOle(int oleColor)

Parameters

oleColor int

i ich kolorów.

Returns

Color

w kolorze .

FromWin32(Int)

Kolor pochodzi od koloru HTML.

public static Color FromWin32(int win32Color)

Parameters

win32Color int

Win32 kolorów.

Returns

Color

w kolorze .

ToHtml(Color)

Tworzenie koloru HTML z koloru.

public static string ToHtml(Color c)

Parameters

c Color

Klasa kolorystyczna .

Returns

string

Kolor z rzędu html.

ToOle(Color)

Tłumaczy kolor na kolor.

public static int ToOle(Color c)

Parameters

c Color

w kolorze .

Returns

int

To jest kolor oleju.

ToWin32(Color)

Tłumaczy kolor na win32 kolor.

public static int ToWin32(Color c)

Parameters

c Color

w kolorze .

Returns

int

W kolorze win32.

 Polski