docx
    Preparing search index...

    Type Alias ImagePatchOptions

    ImagePatchOptions: (RegularImageOptions | SvgMediaOptions) & {
        altText?: { description?: string; title?: string };
        transformation?: ImagePatchTransformation;
    }

    The new image for a picture in a template, given as an ImageRun's is, and optionally the picture's new size and alt text.

    Type Declaration

    • RegularImageOptions
    • SvgMediaOptions
    • Optional ReadonlyaltText?: { description?: string; title?: string }

      The picture's alt text. Default is the template's, without the placeholder. An empty description or title removes it

    • Optional Readonlytransformation?: ImagePatchTransformation

      The picture's new size. Default is the template picture's size, which the new image is stretched to fill, so give it the template's proportions, or give a size with its own