PdfMatrix.row constructor

PdfMatrix.row(
  1. List<double>? values
)

Reads an [a b c d e f] row (as stored in a /Matrix array). Missing or short input falls back to identity; a diagonal defaults to 1, an off-diagonal or translation to 0.

Implementation

factory PdfMatrix.row(List<double>? values) {
  if (values == null || values.length < 6) return identity;
  return PdfMatrix(
    values[0],
    values[1],
    values[2],
    values[3],
    values[4],
    values[5],
  );
}