Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ImageDrawingSettings

Determines how an image is arranged. You can specify the stretch/aspect of the image with the width and height parameters like the following:

Result Width Height Description
undefined 16 The image will be drawn with a height of 16 millimeters and keep its aspect ratio.
16 undefined The image will be drawn with a width of 16 millimeters and keep its aspect ratio. Since the width of the image is greater than its height, the result is smaller.
16 16 The image will be drawn with a width and height of 16 millimeters. Since this doesn't match the images original aspect ratio, it looks stretched.
undefined undefined The image will be drawn in its original size. This will usually lead to the most appealing result, because the image doesn't need to be stretched.

Hierarchy

  • ImageDrawingSettings

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

anchorX

Determines how the image aligns to the position horizontally.

anchorY

Determines how the image aligns to the position vertically.

Optional height

height: number

Gets or sets the desired image height.

position

position: Point

Gets or sets the position to which the image aligns.

Optional width

width: number

Gets or sets the desired image width.

Methods

Private serialize

  • serialize(target: BufferWriter): void
  • Parameters

    • target: BufferWriter

    Returns void

Static create

Generated using TypeDoc