Class ColorTranslator
Class ColorTranslator
Nazwa przestrzeń: Aspose.Imaging Zgromadzenie: Aspose.Imaging.dll (25.5.0)
Tłumaczy kolory do i z struktur kolorów GDI+. ta klasa nie może być dziedziczona.
public sealed class ColorTranslatorInheritance
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
w kolorze .
FromOle(Int)
Kolor pochodzi od koloru oleju.
public static Color FromOle(int oleColor)Parameters
oleColor int
i ich kolorów.
Returns
w kolorze .
FromWin32(Int)
Kolor pochodzi od koloru HTML.
public static Color FromWin32(int win32Color)Parameters
win32Color int
Win32 kolorów.
Returns
w kolorze .
ToHtml(Color)
Tworzenie koloru HTML z koloru.
public static string ToHtml(Color c)Parameters
c Color
Klasa kolorystyczna .
Returns
Kolor z rzędu html.
ToOle(Color)
Tłumaczy kolor na kolor.
public static int ToOle(Color c)Parameters
c Color
w kolorze .
Returns
To jest kolor oleju.
ToWin32(Color)
Tłumaczy kolor na win32 kolor.
public static int ToWin32(Color c)Parameters
c Color
w kolorze .
Returns
W kolorze win32.