buildImage method

  1. @override
PdfImage buildImage(
  1. Context context, {
  2. int? width,
  3. int? height,
})

Implementation

@override
PdfImage buildImage(pw.Context context, {int? width, int? height}) {
  return PdfImage(
    context.document,
    image: bytes,
    width: width ?? this.width!,
    height: height ?? this.height!,
    orientation: orientation,
  );
}