Pixel Data JS - v0.28.0
    Preparing search index...

    Function resolveBlitClipping

    • Calculates the clipping for transferring data from a Source to a Destination. Handles cases where the source is out of bounds (shifting the destination target) AND cases where the destination is out of bounds (shifting the source target).

      Parameters

      • x: number
      • y: number
      • sx: number
      • sy: number
      • w: number
      • h: number
      • dstW: number
      • dstH: number
      • srcW: number
      • srcH: number
      • out: ClippedBlit

      Returns ClippedBlit