withAlpha method

PdfColor withAlpha(
  1. double alpha
)

Returns a copy with a different alpha value.

Implementation

PdfColor withAlpha(double alpha) {
  return PdfColor(red, green, blue, alpha);
}