painterWithDrawingZoneAndBaseImageSizeSet function

VectorImagePainter painterWithDrawingZoneAndBaseImageSizeSet (VectorImagePainter originPainter, Rect zoneToSet, double baseImageSize)

Returns an equivalent VectorImagePainter but also setting its drawing zone and the original size of its image.

Implementation

VectorImagePainter painterWithDrawingZoneAndBaseImageSizeSet(
    VectorImagePainter originPainter, Rect zoneToSet, double baseImageSize) {
  return VectorImagePainter(
    vectorDefinition: originPainter.vectorDefinition,
    zoneWhereToDraw: zoneToSet,
    baseImageSize: baseImageSize,
  );
}