Class Color

Class Color

ชื่อพื้นที่: Aspose.Html.Drawing การประกอบ: Aspose.HTML.dll (25.4.0)

คลาสสีช่วยให้คุณระบุสีตามหมายเลข Red-Green-Blue (RGB)อัตรา Hue-Saturation-Luminosity (HSL)หมายเลข Hue-Saturation-Value (HSV)หมายเลข Hue-Whiteness-Blackness (HWB)อัตราความคมชัด A-B (LAB)อัตรา Luminance-Chroma-Hue (LCH)ค่า Cyan-Magenta-Yellow-Key (CMYK)หมายเลขสีธรรมชาติ (NCOL)หรือด้วยชื่อสีนอกจากนี้ยังมีช่องอัลฟาเพื่อแสดงความโปร่งใส

[ComVisible(true)]
public class Color

Inheritance

object Color

อนุญาโตตุลาการ

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

Constructors

Color()

เริ่มต้นตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Colorโดย default สีเป็นสีดํา

public Color()

Color(เฟอร์รี่, เฟอร์รี่, เฟอร์รี่)

เริ่มต้นตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Colorองค์ประกอบสีทั้งหมดจะต้องอยู่ในช่วง 0-1.

public Color(float red, float green, float blue)

Parameters

red float

ส่วนประกอบสีแดง

green float

ส่วนประกอบสีเขียว

blue float

ส่วนประกอบสีฟ้าของสี

Color(เฟอร์รี่, เฟอร์รี่, เฟอร์รี่)

เริ่มต้นตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Colorองค์ประกอบสีทั้งหมดจะต้องอยู่ในช่วง 0-1.

public Color(float red, float green, float blue, float alpha)

Parameters

red float

ส่วนประกอบสีแดง

green float

ส่วนประกอบสีเขียว

blue float

ส่วนประกอบสีฟ้าของสี

alpha float

ส่วนประกอบอัลฟาของสี

Color(ไบต์, ไบต์, ไบต์)

เริ่มต้นตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Colorองค์ประกอบสีทั้งหมดจะต้องอยู่ในช่วง 0-255.

public Color(byte red, byte green, byte blue)

Parameters

red byte

ส่วนประกอบสีแดง

green byte

ส่วนประกอบสีเขียว

blue byte

ส่วนประกอบสีฟ้าของสี

Color(byte, byte, byte, byte)

เริ่มต้นตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Colorองค์ประกอบสีทั้งหมดจะต้องอยู่ในช่วง 0-255.

public Color(byte red, byte green, byte blue, byte alpha)

Parameters

red byte

บิตซึ่งเป็นส่วนประกอบสีแดงของสี

green byte

บิตซึ่งเป็นส่วนประกอบสีเขียวของสี

blue byte

บิตซึ่งเป็นส่วนประกอบสีน้ําเงินของสี

alpha byte

บิตซึ่งเป็นส่วนประกอบอัลฟาของสี

Color(int, int, int)

เริ่มต้นตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Colorองค์ประกอบสีทั้งหมดจะต้องอยู่ในช่วง 0-255.

public Color(int red, int green, int blue)

Parameters

red int

ส่วนประกอบสีแดง

green int

ส่วนประกอบสีเขียว

blue int

ส่วนประกอบสีฟ้าของสี

Color(int, int, int, int)

เริ่มต้นตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Colorองค์ประกอบสีทั้งหมดจะต้องอยู่ในช่วง 0-255.

public Color(int red, int green, int blue, int alpha)

Parameters

red int

ส่วนประกอบสีแดง

green int

ส่วนประกอบสีเขียว

blue int

ส่วนประกอบสีฟ้าของสี

alpha int

ส่วนประกอบอัลฟาของสี

Properties

Alpha

แสดงส่วนประกอบอัลฟาของสี

public float Alpha { get; }

คุณสมบัติมูลค่า

float

Blue

เป็นส่วนประกอบสีฟ้าของสี

public float Blue { get; }

คุณสมบัติมูลค่า

float

Green

เป็นส่วนประกอบสีเขียวของสี

public float Green { get; }

คุณสมบัติมูลค่า

float

Red

แสดงส่วนประกอบสีแดงของสี

public float Red { get; }

คุณสมบัติมูลค่า

float

Methods

AddLuminosity(เฟอร์รี่)

สร้างสําเนาของสีด้วย Sum ของความสว่างและค่าเดลตา

public Color AddLuminosity(float delta)

Parameters

delta float

ความสําคัญของความสว่าง

Returns

Color

ตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Color

Convert(ColorModel)

กลับองค์ประกอบสีในรูปแบบของรูปแบบสีที่ระบุ

public IColorComponents Convert(ColorModel model)

Parameters

model ColorModel

รูปแบบสี

Returns

IColorComponents

ตัวอย่างใหม่ของอินเตอร์เฟซ Aspose.Html.Drawing.IColorComponents

Equals(วัตถุ)

กําหนดว่า Aspose.Html.Drawing.Color ที่ระบุเท่ากับตัวอย่างนี้หรือไม่

public override bool Equals(object obj)

Parameters

obj object

ระบบ.วัตถุในการเปรียบเทียบกับตัวอย่างนี้

Returns

bool

‘จริง’ ถ้า System.Object ที่ระบุเท่ากับตัวอย่างนี้; ในทางอื่น ๆ, ‘ผิดพลาด’.

FromCmyk(เฟอร์รี่, เฟอร์รี่, เฟอร์รี่)

กลับสีใหม่ที่มีค่า cyan, magenta, สีเหลือง, คีย์ (สีดํา) ที่ต้องการ

public static Color FromCmyk(float cyan, float magenta, float yellow, float key)

Parameters

cyan float

ฟลอตซึ่งแสดงให้เห็นถึงองค์ประกอบไซเนียมของสี

magenta float

ฟลอตซึ่งเป็นส่วนประกอบของสีแม่เหล็ก

yellow float

ฟลอตซึ่งเป็นส่วนประกอบสีเหลืองของสี

key float

ฟลอตซึ่งเป็นส่วนประกอบหลักของสี

Returns

Color

ตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Color

FromCmyka(เฟอร์รี่ เฟอร์รี่ เฟอร์รี่ เฟอร์รี่)

กลับสีใหม่ที่มีค่า cyan, magenta, สีเหลือง, คีย์ (สีดํา), อัลฟาที่ต้องการ

public static Color FromCmyka(float cyan, float magenta, float yellow, float key, float alpha)

Parameters

cyan float

ฟลอตซึ่งแสดงให้เห็นถึงองค์ประกอบไซเนียมของสี

magenta float

ฟลอตซึ่งเป็นส่วนประกอบของสีแม่เหล็ก

yellow float

ฟลอตซึ่งเป็นส่วนประกอบสีเหลืองของสี

key float

ฟลอตซึ่งเป็นส่วนประกอบหลักของสี

alpha float

ฟลอตซึ่งเป็นส่วนประกอบอัลฟาของสี

Returns

Color

ตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Color

FromGray(เฟอร์รี่)

กลับสีใหม่ที่มีค่าสีเทาที่ต้องการ

public static Color FromGray(float gray)

Parameters

gray float

ฟลอตซึ่งแสดงค่าสีเทาของสี

Returns

Color

ตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Color

FromHsl(เฟอร์รี่, เฟอร์รี่, เฟอร์รี่)

กลับสีใหม่ที่มีค่าความชื้นที่ต้องการความชื้นความชื้น

public static Color FromHsl(float hue, float saturation, float lightness)

Parameters

hue float

ฟลอตซึ่งเป็นส่วนประกอบของสี

saturation float

ฟลอตซึ่งแสดงให้เห็นถึงส่วนประกอบการ saturation ของสี

lightness float

ฟลอตซึ่งแสดงให้เห็นถึงองค์ประกอบแสงของสี

Returns

Color

ตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Color

FromHsla(เฟอร์รี่, เฟอร์รี่, เฟอร์รี่)

กลับสีใหม่ที่มีความชื้นที่ต้องการความชื้นความชื้นความชื้นค่าอัลฟา

public static Color FromHsla(float hue, float saturation, float lightness, float alpha)

Parameters

hue float

ฟลอตซึ่งเป็นส่วนประกอบของสี

saturation float

ฟลอตซึ่งแสดงให้เห็นถึงส่วนประกอบการ saturation ของสี

lightness float

ฟลอตซึ่งแสดงให้เห็นถึงองค์ประกอบแสงของสี

alpha float

ฟลอตซึ่งเป็นส่วนประกอบอัลฟาของสี

Returns

Color

ตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Color

FromHsv(เฟอร์รี่, เฟอร์รี่, เฟอร์รี่)

กลับสีใหม่ที่มีความชื้นที่ต้องการความชื้นความคุ้มค่า

public static Color FromHsv(float hue, float saturation, float value)

Parameters

hue float

ฟลอตซึ่งเป็นส่วนประกอบของสี

saturation float

ฟลอตซึ่งแสดงให้เห็นถึงส่วนประกอบการ saturation ของสี

value float

ฟลอตซึ่งแสดงให้เห็นถึงองค์ประกอบที่มีค่าของสี

Returns

Color

ตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Color

FromHsva(เฟอร์รี่, เฟอร์รี่, เฟอร์รี่)

กลับสีใหม่ที่มีความชื้นที่ต้องการความชื้นค่าอัลฟา

public static Color FromHsva(float hue, float saturation, float value, float alpha)

Parameters

hue float

ฟลอตซึ่งเป็นส่วนประกอบของสี

saturation float

ฟลอตซึ่งแสดงให้เห็นถึงส่วนประกอบการ saturation ของสี

value float

ฟลอตซึ่งแสดงให้เห็นถึงองค์ประกอบที่มีค่าของสี

alpha float

ฟลอตซึ่งเป็นส่วนประกอบอัลฟาของสี

Returns

Color

ตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Color

FromHwb(เฟอร์รี่, เฟอร์รี่, เฟอร์รี่)

กลับสีใหม่ที่มีความคมชัดสีขาวและสีดําที่ต้องการ

public static Color FromHwb(float hue, float whiteness, float blackness)

Parameters

hue float

ฟลอตซึ่งเป็นส่วนประกอบของสี

whiteness float

ฟลอตซึ่งแสดงให้เห็นถึงองค์ประกอบสีขาว

blackness float

ฟลอตซึ่งแสดงให้เห็นถึงองค์ประกอบสีดํา

Returns

Color

ตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Color

FromHwba(เฟอร์รี่, เฟอร์รี่, เฟอร์รี่)

กลับสีใหม่ที่มีความคมชัดสีขาวและสีดําที่ต้องการ

public static Color FromHwba(float hue, float whiteness, float blackness, float alpha)

Parameters

hue float

ฟลอตซึ่งเป็นส่วนประกอบของสี

whiteness float

ฟลอตซึ่งแสดงให้เห็นถึงองค์ประกอบสีขาว

blackness float

ฟลอตซึ่งแสดงให้เห็นถึงองค์ประกอบสีดํา

alpha float

ฟลอตซึ่งเป็นส่วนประกอบอัลฟาของสี

Returns

Color

ตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Color

FromInt(int)

กลับสีใหม่ที่มีค่า ARGB ที่ต้องการ

public static Color FromInt(int argb)

Parameters

argb int

หมายเลขที่แสดงค่า ARGB ของสี

Returns

Color

ตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Color

FromLab(เฟอร์รี่, เฟอร์รี่, เฟอร์รี่)

กลับสีใหม่ที่มีความคมชัดที่ต้องการ, A, B หมายเลข

public static Color FromLab(float lightness, float a, float b)

Parameters

lightness float

ฟลอตซึ่งแสดงให้เห็นถึงองค์ประกอบแสงของสี

a float

ฟลอตซึ่งเป็นส่วนประกอบ A ของสี

b float

ฟลอตซึ่งเป็นส่วนประกอบ B ของสี

Returns

Color

ตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Color

FromLaba(เฟอร์รี่, เฟอร์รี่, เฟอร์รี่)

กลับสีใหม่ที่มีความคมชัดที่ต้องการ A, B, อัลฟาค่า

public static Color FromLaba(float lightness, float a, float b, float alpha)

Parameters

lightness float

ฟลอตซึ่งแสดงให้เห็นถึงองค์ประกอบแสงของสี

a float

ฟลอตซึ่งเป็นส่วนประกอบ A ของสี

b float

ฟลอตซึ่งเป็นส่วนประกอบ B ของสี

alpha float

ฟลอตซึ่งเป็นส่วนประกอบอัลฟาของสี

Returns

Color

ตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Color

FromLch(เฟอร์รี่, เฟอร์รี่, เฟอร์รี่)

กลับสีใหม่ที่มีค่า luminance, chroma, hue ที่ต้องการ

public static Color FromLch(float luminance, float chroma, float hue)

Parameters

luminance float

ฟลอตซึ่งเป็นองค์ประกอบแสงของสี

chroma float

ฟลอตซึ่งเป็นส่วนประกอบโครเมียมของสี

hue float

ฟลอตซึ่งเป็นส่วนประกอบของสี

Returns

Color

ตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Color

FromLcha(เฟอร์รี่, เฟอร์รี่, เฟอร์รี่)

กลับสีใหม่ที่มีค่า luminance, chroma, hue, alpha ที่ต้องการ

public static Color FromLcha(float luminance, float chroma, float hue, float alpha)

Parameters

luminance float

ฟลอตซึ่งเป็นองค์ประกอบแสงของสี

chroma float

ฟลอตซึ่งเป็นส่วนประกอบโครเมียมของสี

hue float

ฟลอตซึ่งเป็นส่วนประกอบของสี

alpha float

ฟลอตซึ่งเป็นส่วนประกอบอัลฟาของสี

Returns

Color

ตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Color

FromOklab(เฟอร์รี่, เฟอร์รี่, เฟอร์รี่)

กลับสีใหม่ที่มีความคมชัดที่ต้องการค่า A, B สําหรับรุ่น OKLAB

public static Color FromOklab(float lightness, float a, float b)

Parameters

lightness float

ฟลอตซึ่งแสดงให้เห็นถึงองค์ประกอบแสงของสี

a float

ฟลอตซึ่งเป็นส่วนประกอบ A ของสี

b float

ฟลอตซึ่งเป็นส่วนประกอบ B ของสี

Returns

Color

ตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Color

FromOklaba(เฟอร์รี่, เฟอร์รี่, เฟอร์รี่)

กลับสีใหม่ที่มีความคมชัดที่ต้องการ A, B, หมายเลขอัลฟาสําหรับรูปแบบ OKLAB

public static Color FromOklaba(float lightness, float a, float b, float alpha)

Parameters

lightness float

ฟลอตซึ่งแสดงให้เห็นถึงองค์ประกอบแสงของสี

a float

ฟลอตซึ่งเป็นส่วนประกอบ A ของสี

b float

ฟลอตซึ่งเป็นส่วนประกอบ B ของสี

alpha float

ฟลอตซึ่งเป็นส่วนประกอบอัลฟาของสี

Returns

Color

ตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Color

FromOklch(เฟอร์รี่, เฟอร์รี่, เฟอร์รี่)

กลับสีใหม่ที่มีค่า luminance, chroma, hue ที่ต้องการสําหรับรูปแบบ OKLAB

public static Color FromOklch(float luminance, float chroma, float hue)

Parameters

luminance float

ฟลอตซึ่งเป็นองค์ประกอบแสงของสี

chroma float

ฟลอตซึ่งเป็นส่วนประกอบโครเมียมของสี

hue float

ฟลอตซึ่งเป็นส่วนประกอบของสี

Returns

Color

ตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Color

FromOklcha(เฟอร์รี่, เฟอร์รี่, เฟอร์รี่)

กลับสีใหม่ที่มีค่า luminance, chroma, hue, alpha ที่ต้องการสําหรับรูปแบบ OKLAB

public static Color FromOklcha(float luminance, float chroma, float hue, float alpha)

Parameters

luminance float

ฟลอตซึ่งเป็นองค์ประกอบแสงของสี

chroma float

ฟลอตซึ่งเป็นส่วนประกอบโครเมียมของสี

hue float

ฟลอตซึ่งเป็นส่วนประกอบของสี

alpha float

ฟลอตซึ่งเป็นส่วนประกอบอัลฟาของสี

Returns

Color

ตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Color

FromRgb(ไบต์, ไบต์, ไบต์)

กลับสีใหม่ที่มีค่าสีเขียวและสีน้ําเงินที่ต้องการองค์ประกอบสีทั้งหมดจะต้องอยู่ในช่วง 0-255.

public static Color FromRgb(byte red, byte green, byte blue)

Parameters

red byte

บิตซึ่งเป็นส่วนประกอบสีแดงของสี

green byte

บิตซึ่งเป็นส่วนประกอบสีเขียวของสี

blue byte

บิตซึ่งเป็นส่วนประกอบสีน้ําเงินของสี

Returns

Color

ตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Color

FromRgb(int, int, int)

กลับสีใหม่ที่มีค่าสีเขียวและสีน้ําเงินที่ต้องการองค์ประกอบสีทั้งหมดจะต้องอยู่ในช่วง 0-255.

public static Color FromRgb(int red, int green, int blue)

Parameters

red int

int ซึ่งเป็นส่วนประกอบสีแดงของสี

green int

int ซึ่งเป็นส่วนประกอบสีเขียวของสี

blue int

int ซึ่งเป็นส่วนประกอบสีน้ําเงินของสี

Returns

Color

ตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Color

FromRgb(เฟอร์รี่, เฟอร์รี่, เฟอร์รี่)

กลับสีใหม่ที่มีค่าสีเขียวและสีน้ําเงินที่ต้องการองค์ประกอบสีทั้งหมดจะต้องอยู่ในช่วง 0-1.

public static Color FromRgb(float red, float green, float blue)

Parameters

red float

ฟลอตซึ่งเป็นส่วนประกอบสีแดงของสี

green float

ฟลอตซึ่งเป็นส่วนประกอบสีเขียวของสี

blue float

ฟลอตซึ่งเป็นส่วนประกอบสีฟ้าของสี

Returns

Color

ตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Color

FromRgba(byte, byte, byte, byte)

กลับสีใหม่ที่มีค่าสีเขียวสีฟ้าและอัลฟาที่ต้องการองค์ประกอบสีทั้งหมดจะต้องอยู่ในช่วง 0-255.

public static Color FromRgba(byte red, byte green, byte blue, byte alpha)

Parameters

red byte

บิตซึ่งเป็นส่วนประกอบสีแดงของสี

green byte

บิตซึ่งเป็นส่วนประกอบสีเขียวของสี

blue byte

บิตซึ่งเป็นส่วนประกอบสีน้ําเงินของสี

alpha byte

บิตซึ่งเป็นส่วนประกอบอัลฟาของสี

Returns

Color

ตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Color

FromRgba(int, int, int, int)

กลับสีใหม่ที่มีค่าสีเขียวสีฟ้าและอัลฟาที่ต้องการองค์ประกอบสีทั้งหมดจะต้องอยู่ในช่วง 0-255.

public static Color FromRgba(int red, int green, int blue, int alpha)

Parameters

red int

int ซึ่งเป็นส่วนประกอบสีแดงของสี

green int

int ซึ่งเป็นส่วนประกอบสีเขียวของสี

blue int

int ซึ่งเป็นส่วนประกอบสีน้ําเงินของสี

alpha int

int ซึ่งเป็นองค์ประกอบอัลฟาของสี

Returns

Color

ตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Color

FromRgba(เฟอร์รี่, เฟอร์รี่, เฟอร์รี่)

กลับสีใหม่ที่มีค่าสีเขียวสีฟ้าและอัลฟาที่ต้องการองค์ประกอบสีทั้งหมดจะต้องอยู่ในช่วง 0-1.

public static Color FromRgba(float red, float green, float blue, float alpha)

Parameters

red float

ฟลอตซึ่งเป็นส่วนประกอบสีแดงของสี

green float

ฟลอตซึ่งเป็นส่วนประกอบสีเขียวของสี

blue float

ฟลอตซึ่งเป็นส่วนประกอบสีฟ้าของสี

alpha float

ฟลอตซึ่งเป็นส่วนประกอบอัลฟาของสี

Returns

Color

ตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Color

FromString(รั้ว)

ปลอกเส้นที่มีสี CSS และคืนสีใหม่

public static Color FromString(string color)

Parameters

color string

ลวดที่มีสีในรูปแบบ RGB, HEX, HSL, HSV, HWB, CMYK, NCOL, LCH, OKLCH, LAB หรือ OKLAB

Returns

Color

ตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Color

FromUint(ตูด)

กลับสีใหม่ที่มีค่า ARGB ที่ต้องการ

public static Color FromUint(uint argb)

Parameters

argb uint

หมายเลขที่แสดงให้เห็นถึงค่า ARGB ของสี

Returns

Color

ตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Color

GetComplementary()

กลับสีใหม่ที่อยู่ด้านตรงข้ามของล้อสีจากเดิม

public Color GetComplementary()

Returns

Color

ตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Color

GetHashCode()

กลับรหัส hash

public override int GetHashCode()

Returns

int

รหัส hash

GetHue()

กลับรูของสี

public float GetHue()

Returns

float

ผ้าของสี

GetLuminosity()

รับคืนความสว่างของสี

public float GetLuminosity()

Returns

float

ความสว่างของสี

GetSaturation()

ปรับปรุงความชื้นของสี

public float GetSaturation()

Returns

float

การ saturation ของสี

ToInt()

รหัสองค์ประกอบสี ARGB ใน int.

public int ToInt()

Returns

int

การเข้ารหัส

ToName()

กลับชื่อของสีถ้ามันตรงกับสีในรายการของสีที่เรียกว่า CSS หรือเส้นที่ว่างเปล่า

public string ToName()

Returns

string

ชื่อสี

ToNaturalColorString(int)

กลับสีตามธรรมชาติ (NCol) สีที่ระบุโดยใช้ตัวอักษรสีที่มีหมายเลขเพื่อระบุระยะทาง (ใน%) จากสี

public string ToNaturalColorString(int digits)

Parameters

digits int

กําหนดความแม่นยําในการหมุนสําหรับส่วนประกอบสี

Returns

string

สีธรรมชาติ (NCol) string

ToRgbHexString()

กลับสี hexadecimal จะระบุด้วย: #RRGGBB

public string ToRgbHexString()

Returns

string

ชุดสี hexadecimal

ToRgbString()

กลับลวดที่มีสี RGB ที่ระบุโดย: rgb(R, G, B)

public string ToRgbString()

Returns

string

สายรัด RGB

ToRgbaHexString()

กลับสี Hexadecimal จะระบุด้วย: #RRGGBBAA

public string ToRgbaHexString()

Returns

string

ชุดสี Hexadecimal

ToRgbaString()

กลับลวดที่มีสี RGBA ที่ระบุโดย: rgba(R, G, B, A)

public string ToRgbaString()

Returns

string

ลวด rgba

ToString()

กลับลวดที่ประกอบด้วยค่าส่วนประกอบ RGBA

public override string ToString()

Returns

string

ลวดที่สามารถอ่านได้โดยมนุษย์

ToUint()

การเข้ารหัสองค์ประกอบสี ARGB ใน int ไม่ระบุไว้

public uint ToUint()

Returns

uint

การเข้ารหัส ไม่ได้ลงทะเบียน

WithAlpha(เฟอร์รี่)

สร้างสําเนาของสีด้วยส่วนประกอบอัลฟาที่ระบุ

public Color WithAlpha(float alpha)

Parameters

alpha float

ราคาขององค์ประกอบอัลฟา

Returns

Color

ตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Color

WithHue(เฟอร์รี่)

สร้างสําเนาของสีด้วย Hue ที่กําหนด

public Color WithHue(float hue)

Parameters

hue float

ราคาของ Hue

Returns

Color

>ตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Color

WithLuminosity(เฟอร์รี่)

สร้างสําเนาของสีที่มีความสว่างที่กําหนด

public Color WithLuminosity(float luminosity)

Parameters

luminosity float

ความสําคัญของความสว่าง

Returns

Color

ตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Color

WithSaturation(เฟอร์รี่)

สร้างสําเนาของสีด้วยความ saturation ที่กําหนด

public Color WithSaturation(float saturation)

Parameters

saturation float

ค่าของความชื้น

Returns

Color

>ตัวอย่างใหม่ของคลาส Aspose.Html.Drawing.Color

 แบบไทย