Struct DxfTransparency
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
How much an entity or a layer lets show through it, as AutoCAD's Autodesk.AutoCAD.Colors.Transparency: by layer, by
block, or an alpha from 0, clear, to 255, solid. An entity writes it as its group 440, a layer in its extended data of
the application AcCmTransparency, both as AutoCAD writes them, from R2004 (AC1018) on.
public readonly struct DxfTransparency : IEquatable<DxfTransparency>
- Implements
- Inherited Members
Remarks
AutoCAD's 50 per cent is the alpha 127, new DxfTransparency(127), written as 33 554 559 (0x0200007F); BYBLOCK
is written as 16 777 216 (0x01000000), and BYLAYER as no group at all. A transparency of nought is the default value of
the structure, BYLAYER.
Two transparencies are equal where their methods are and, by alpha, their alphas are.
Constructors
- DxfTransparency(DxfTransparencyMethod)
Initializes a transparency by its method, as AutoCAD's
Transparency(TransparencyMethod): BYLAYER or BYBLOCK, whose alpha is nought; by alpha, solid, 255.
- DxfTransparency(byte)
Initializes a transparency of its own, by alpha, as AutoCAD's
Transparency(byte): 0 clear, 255 solid, 127 the 50 per cent AutoCAD's dialog shows.
Properties
- Alpha
Gets the alpha, as AutoCAD's
Alpha: 0 clear to 255 solid by alpha; nought by layer or by block.
- ByBlock
Gets the transparency BYBLOCK.
- ByLayer
Gets the transparency BYLAYER.
- IsByAlpha
Gets whether the transparency is by alpha, as AutoCAD's
IsByAlpha.
- IsByBlock
Gets whether the transparency is BYBLOCK, as AutoCAD's
IsByBlock.
- IsByLayer
Gets whether the transparency is BYLAYER, as AutoCAD's
IsByLayer.
- IsClear
Gets whether the transparency is by alpha and wholly clear, the alpha nought, as AutoCAD's
IsClear.
- IsInvalid
Gets whether the transparency is none AutoCAD writes, as AutoCAD's
IsInvalid: one read of a value that is no method.
- IsSolid
Gets whether the transparency is by alpha and solid, the alpha 255, as AutoCAD's
IsSolid.
- Method
Gets how the transparency is given, as AutoCAD's
Methoddoes.
Methods
- Equals(DxfTransparency)
Gets whether the transparency equals another.
- Equals(object)
Gets whether the transparency equals an object.
- GetHashCode()
Gets a hash code of the transparency, the same for two equal ones.
- ToString()
Gives the transparency as a line:
ByLayer,ByBlock,ByAlpha 127orErrorValue.
Operators
- operator ==(DxfTransparency, DxfTransparency)
Gets whether two transparencies are equal.
- operator !=(DxfTransparency, DxfTransparency)
Gets whether two transparencies differ.