Method SetTransparency
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
SetTransparency(CadDocument, string, int)
Gives a layer a transparency of 0 to 90 per cent, as -LAYER TRansparency does: 50 is written as the alpha 127, as AutoCAD keeps it, and 0 as solid; one of an external reference marked 128, as AutoCAD 2021 marks it.
public static CadEditResult SetTransparency(CadDocument document, string name, int percent)
Parameters
documentCadDocumentThe document.
namestringThe layer's name.
percentintThe transparency, from 0 to 90.
Returns
- CadEditResult
What came of it; refused outside 0 to 90, and failed in a drawing older than AutoCAD 2004, which has none.