@kayahr/wastelib
    Preparing search index...

    Class PortraitPatch

    A single portrait animation patch.

    Index

    Methods

    • 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.

    • 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.

    • The horizontal patch position in pixels relative to the image.

      Returns number

      The horizontal patch position.

    • The vertical patch position in pixels relative to the image.

      Returns number

      The vertical update position.

    • 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 null | PortraitPatch

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