Click or drag to resize

AciColor Class

imbVeles Framework: imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Represents an ACI color (AutoCAD Color Index) that also supports true color.
Inheritance Hierarchy
SystemObject
  netDxfAciColor

Namespace:  netDxf
Assembly:  netDXF.Standard (in netDXF.Standard.dll) Version: 2.1.1
Syntax
C#
public class AciColor : ICloneable, IEquatable<AciColor>
Request Example View Source

The AciColor type exposes the following members.

Constructors
  NameDescription
Public methodAciColor
Initializes a new instance of the AciColor class with black/white color index 7.
Public methodAciColor(Color)
Initializes a new instance of the AciColor class.
Public methodAciColor(Int16)
Initializes a new instance of the AciColor class.
Public methodAciColor(Byte, Byte, Byte)
Initializes a new instance of the AciColor class.
Public methodAciColor(Double, Double, Double)
Initializes a new instance of the AciColor class.
Public methodAciColor(Single, Single, Single)
Initializes a new instance of the AciColor class.
Top
Properties
  NameDescription
Public propertyB
Gets the blue component of the AciColor.
Public propertyStatic memberBlue
Defines a default blue color.
Public propertyStatic memberByBlock
Gets the ByBlock color.
Public propertyStatic memberByLayer
Gets the ByLayer color.
Public propertyStatic memberCyan
Defines a default cyan color.
Public propertyStatic memberDarkGray
Defines a default dark gray color.
Public propertyStatic memberDefault
Defines a default white/black color.
Public propertyG
Gets the green component of the AciColor.
Public propertyStatic memberGreen
Defines a default green color.
Public propertyIndex
Gets or sets the color index.
Public propertyStatic memberIndexRgb
A dictionary that contains the indexed colors, the key represents the color index and the value the RGB components of the color.
Public propertyIsByBlock
Defines if the color is defined by block.
Public propertyIsByLayer
Defines if the color is defined by layer.
Public propertyStatic memberLightGray
Defines a default light gray color.
Public propertyStatic memberMagenta
Defines a default magenta color.
Public propertyR
Gets the red component of the AciColor.
Public propertyStatic memberRed
Defines a default red color.
Public propertyUseTrueColor
Get or set if the AciColor should use true color values.
Public propertyStatic memberYellow
Defines a default yellow color.
Top
Methods
  NameDescription
Public methodClone
Creates a new color that is a copy of the current instance.
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodEquals(AciColor)
Check if the components of two colors are equal.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberFromCadIndex
Gets the color from an index.
Public methodFromColor
Converts a color to an AciColor.
Public methodStatic memberFromHsl(Vector3)
Converts HSL (hue, saturation, lightness) value to an AciColor.
Public methodStatic memberFromHsl(Double, Double, Double)
Converts HSL (hue, saturation, lightness) value to an AciColor.
Public methodStatic memberFromTrueColor
Gets the color from a 24-bit color value.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToColor
Converts the AciColor to a color.
Public methodStatic memberToHsl(AciColor)
Converts the RGB (red, green, blue) components of an AciColor to HSL (hue, saturation, lightness) values.
Public methodStatic memberToHsl(AciColor, Double, Double, Double)
Converts the RGB (red, green, blue) components of an AciColor to HSL (hue, saturation, lightness) values.
Public methodToString
Converts the value of this instance to its equivalent string representation.
(Overrides ObjectToString.)
Public methodStatic memberToTrueColor
Gets the entity 24-bit color value from an AciColor.
Top
See Also