Preparing search index...

    Represents an image in memory.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    aspectRatioMode: AspectRatioMode

    Controls how the aspect ratio is preserved during resize operations.

    height: number

    Height of the pixmap in pixels.

    transformationMode: TransformationMode

    Controls the transformation quality mode used when scaling the pixmap.

    width: number

    Width of the pixmap in pixels.

    Methods

    • Crops the pixmap to the specified rectangle.

      Parameters

      Returns void

    • Returns true if the object is of the specified type.

      Parameters

      • type: string

      Returns boolean

    • Loads an image from the given file path.

      Parameters

      Returns void

    • Resizes the pixmap to the specified width and height.

      Parameters

      • width: number
      • height: number

      Returns void

    • Saves the pixmap to the given file path, with optional quality setting.

      Parameters

      • filename: Path
      • Optionalquality: number

      Returns void