withAlpha method

PdfColor withAlpha(
  1. double alpha
)

Create a copy of this color with a different alpha value

Implementation

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