Skip to content

ACadSharp.Color

Albert Domenech edited this page Apr 29, 2024 · 3 revisions

Color Class

Properties

Name Summary
IsByLayer Defines if the color is defined by layer.
IsByBlock Defines if the color is defined by block.
Index Indexed color. If the color is stored as a true color, returns -1;
TrueColor True color. If the color is stored as an indexed color, returns -1;
IsTrueColor True if the stored color is a true color. False if the color is an indexed color.
R Red component of the color
G Green component of the color
B Blue component of the color

Methods

Name Summary
GetApproxIndex Approximates color from a true color RGB.
GetTrueColorRgb Returns the RGB color code using the true color value.
GetRgb Returns the RGB color code
Equals
Equals
GetHashCode
ToString
Clone this wiki locally