imageReplaceMethod property

String? imageReplaceMethod
getter/setter pair

The image replace method.

If you specify both a replace_method and an image_replace_method, the image_replace_method takes precedence. If you do not specify a value for image_replace_method, but specify a value for replace_method, then the specified replace_method value is used. If you do not specify either, then CENTER_INSIDE is used. Possible string values are:

  • "IMAGE_REPLACE_METHOD_UNSPECIFIED" : Unspecified image replace method. This value must not be used.
  • "CENTER_INSIDE" : Scales and centers the image to fit within the bounds of the original shape and maintains the image's aspect ratio. The rendered size of the image may be smaller than the size of the shape. This is the default method when one is not specified.
  • "CENTER_CROP" : Scales and centers the image to fill the bounds of the original shape. The image may be cropped in order to fill the shape. The rendered size of the image will be the same as the original shape.

Implementation

core.String? imageReplaceMethod;