Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PortraitPatch

A single portrait animation patch.

Hierarchy

  • PortraitPatch

Index

Methods

getData

  • getData(): number[]
  • Returns the patch data. The data consists of one or more XOR values to apply to the current image data.

    Returns number[]

    The patch data.

getOffset

  • getOffset(): number
  • Returns the image offset to patch. This is the raw offset value from the allpics file measured in bytes relative to the 96 pixels (48 bytes) wide portrait image. It's recommended to use the getX() and getY() methods which converts this offset into pixel coordinates.

    Returns number

    The image offset to patch.

getX

  • getX(): number
  • The horizontal patch position in pixels relative to the image.

    Returns number

    The horizontal patch position.

getY

  • getY(): number
  • The vertical patch position in pixels relative to the image.

    Returns number

    The vertical update position.

Static read

  • Reads a portrait animation patch from the given reader and returns it. If the end of an animation update has been reached then null is returned

    Parameters

    • reader: BinaryReader

      The reader to read the animation patch from.

    Returns PortraitPatch | null

    The read portrait animation patch or null if end of animation update has been reached.

Generated using TypeDoc