Skip to main content
All docs
V26.1
  • PdfColor.FromGray(Double) Method

    Creates a color from a grayscale component value.

    Namespace: DevExpress.Docs.Pdf

    Assembly: DevExpress.Docs.Pdf.v26.1.dll

    Declaration

    public static PdfColor FromGray(
        double g
    )

    Parameters

    Name Type Description
    g Double

    The grayscale component value (0.0 for black to 1.0 for white).

    Returns

    Type Description
    PdfColor

    A new PdfColor object.

    See Also