class

PNGGIF::Frame

Inherits Reference < Object

One animation frame (APNG fcTL/fdAT or a GIF image), already decoded to a bitmap. bmp is the sub-image for the frame; x_offset/y_offset, dispose_op and blend_op describe how it composites onto the canvas.

Constructors

new(bmp : Array(Array(PNGGIF::Pixel)), delay : Int32, width : Int32, height : Int32, x_offset : Int32, y_offset : Int32, dispose_op : Int32, blend_op : Int32)
Source

Instance methods

blend_op
Source
blend_op=(blend_op : Int32)
Source
bmp=(bmp : Bitmap)
Source
cellmap

Lazily-built cellmap for this frame (filled in by the widget/animator).

Source
cellmap=(cellmap : Bitmap | Nil)

Lazily-built cellmap for this frame (filled in by the widget/animator).

Source
delay
Source
delay=(delay : Int32)
Source
dispose_op
Source
dispose_op=(dispose_op : Int32)
Source
height
Source
height=(height : Int32)
Source
width
Source
width=(width : Int32)
Source
x_offset
Source
x_offset=(x_offset : Int32)
Source
y_offset
Source
y_offset=(y_offset : Int32)
Source