Creates a new
PdfColor structure in
DeviceGray color space by using the specified
gray value.
Namespace: SautinSoft.Pdf.ContentAssembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2026.5.5
Syntaxpublic static PdfColor FromGray(
double gray
)
Public Shared Function FromGray (
gray As Double
) As PdfColor
Parameters
- gray Double
- The gray value in range from 0 to 1.
Return Value
PdfColor
A new
PdfColor structure in
DeviceGray color space created by using the specified
gray value.
Exceptions
See Also