ImageFrame

constructor(argb: IntArray, width: Int, height: Int, duration: Duration, timestamp: Duration, index: Int)(source)

Constructs an ImageFrame.

Parameters

argb

The ARGB pixel data for the frame. Each element in the array represents a pixel in ARGB format, going row by row from top to bottom.

width

The width of the frame in pixels.

height

The height of the frame in pixels.

duration

The duration of the frame.

timestamp

The timestamp of the frame.

index

The index of the frame.

Throws

If width x height is not equal to argb.size or duration is negative.


constructor(image: Bitmap, duration: Duration, timestamp: Duration, index: Int)(source)

Constructs an ImageFrame from a Bitmap.

Parameters

image

The Bitmap containing the pixel data for the frame.

duration

The duration of the frame.

timestamp

The timestamp of the frame.

index

The index of the frame.

Throws


constructor(image: Bitmap, duration: Duration, timestamp: Duration, index: Int)(source)

Constructs an ImageFrame from a Bitmap.

Parameters

image

The Bitmap containing the pixel data for the frame.

duration

The duration of the frame.

timestamp

The timestamp of the frame.

index

The index of the frame.

Throws


actual constructor(argb: IntArray, width: Int, height: Int, duration: Duration, timestamp: Duration, index: Int)(source)

Parameters

argb

The ARGB pixel data for the frame. Each element in the array represents a pixel in ARGB format, going row by row from top to bottom.

width

The width of the frame in pixels.

height

The height of the frame in pixels.

duration

The duration of the frame.

timestamp

The timestamp of the frame.

index

The index of the frame.

expect constructor(argb: IntArray, width: Int, height: Int, duration: Duration, timestamp: Duration, index: Int)(source)

Parameters

argb

The ARGB pixel data for the frame. Each element in the array represents a pixel in ARGB format, going row by row from top to bottom.

width

The width of the frame in pixels.

height

The height of the frame in pixels.

duration

The duration of the frame.

timestamp

The timestamp of the frame.

index

The index of the frame.

constructor(argb: IntArray, width: Int, height: Int, duration: Duration, timestamp: Duration, index: Int)(source)

Stores a single frame's data.

Parameters

argb

The ARGB pixel data for the frame. Each element in the array represents a pixel in ARGB format, going row by row from top to bottom.

width

The width of the frame in pixels.

height

The height of the frame in pixels.

duration

The duration of the frame.

timestamp

The timestamp of the frame.

index

The index of the frame.

Throws

If width x height is not equal to argb.size or duration is negative.


constructor(image: BufferedImage, duration: Duration, timestamp: Duration, index: Int)(source)

Constructs an ImageFrame from a BufferedImage.

Parameters

image

The BufferedImage containing the pixel data for the frame.

duration

The duration of the frame.

timestamp

The timestamp of the frame.

index

The index of the frame.

Throws


constructor(image: BufferedImage, duration: Duration, timestamp: Duration, index: Int)(source)

Constructs an ImageFrame from a BufferedImage.

Parameters

image

The BufferedImage containing the pixel data for the frame.

duration

The duration of the frame.

timestamp

The timestamp of the frame.

index

The index of the frame.

Throws


actual constructor(argb: IntArray, width: Int, height: Int, duration: Duration, timestamp: Duration, index: Int)(source)

Parameters

argb

The ARGB pixel data for the frame. Each element in the array represents a pixel in ARGB format, going row by row from top to bottom.

width

The width of the frame in pixels.

height

The height of the frame in pixels.

duration

The duration of the frame.

timestamp

The timestamp of the frame.

index

The index of the frame.

actual constructor(argb: IntArray, width: Int, height: Int, duration: Duration, timestamp: Duration, index: Int)(source)

Parameters

argb

The ARGB pixel data for the frame. Each element in the array represents a pixel in ARGB format, going row by row from top to bottom.

width

The width of the frame in pixels.

height

The height of the frame in pixels.

duration

The duration of the frame.

timestamp

The timestamp of the frame.

index

The index of the frame.