interface Frame {
    bitmap?: ImageBitmap;
    delayTime: number;
    disposalMethod: DisposalMethod;
    GCreserved: number;
    height: number;
    image: ImageData;
    left: number;
    localColorTable: IRgb[];
    plainTextData: null | PlainTextData;
    reserved: number;
    sortFlag: boolean;
    top: number;
    userInputDelayFlag: boolean;
    width: number;
}

Properties

bitmap?: ImageBitmap

the bitmap data of this frame

delayTime: number

the delay of this frame in milliseconds

disposalMethod: DisposalMethod

disposal method see DisposalMethod

GCreserved: number

reserved for future use (from packed field in graphics control extension block)

height: number

the height of this frame in pixels

image: ImageData

this frames image data

left: number

the position of the left edge of this frame, in pixels, within the gif (from the left edge)

localColorTable: IRgb[]

the local color table for this frame

plainTextData: null | PlainTextData

the text that will be displayed on screen with this frame (if not null)

reserved: number

reserved for future use (from packed field in image descriptor block)

sortFlag: boolean

if the colors in the local color table are ordered after decreasing importance

top: number

the position of the top edge of this frame, in pixels, within the gif (from the top edge)

userInputDelayFlag: boolean

if set waits for user input before rendering the next frame (timeout after delay if that is non-zero)

width: number

the width of this frame in pixels