Instance methods
[]?(*args, **options, &)
Sourceaverage(other : Scanline, &block : UInt8 -> Nil)
Filt(x) = Orig(x) - floor((Orig(a) + Orig(b)) / 2)
Sourceaverage(other : Nil, &block : UInt8 -> Nil)
Filt(x) = Orig(x) - floor((Orig(a) + Orig(b)) / 2)
Sourceaverage(other : Scanline | Nil, io : IO)
Filt(x) = Orig(x) - floor((Orig(a) + Orig(b)) / 2)
Sourcebit_depth(*args, **options)
Sourcebit_depth(*args, **options, &)
Sourcebits_per_pixel(*args, **options)
Sourcebits_per_pixel(*args, **options, &)
Sourcebytes_per_pixel(*args, **options)
Sourcebytes_per_pixel(*args, **options, &)
Sourcechannels(*args, **options)
Sourcechannels(*args, **options, &)
Sourcefilter(previous : Scanline | Nil, &block : UInt8 -> Nil)
Sourcefilter=(filter : FilterMethod)
Sourcepaeth(other : Scanline, &block : UInt8 -> Nil)
Filt(x) = Orig(x) - PaethPredictor(Orig(a), Orig(b), Orig(c))
Sourcepaeth(other : Nil, &block : UInt8 -> Nil)
Filt(x) = Orig(x) - PaethPredictor(Orig(a), Orig(b), Orig(c))
Sourcepaeth(other : Scanline | Nil, io : IO)
Filt(x) = Orig(x) - PaethPredictor(Orig(a), Orig(b), Orig(c))
Sourcepaeth_predict(a, b, c)
https://www.w3.org/TR/png-3/#bib-paeth
Sourcepixel(x : Int) : Indexable(UInt8)
Return the bytes that represent a pixel at x in this scanline
Sourceset_pixel(x : Int, values : Indexable(UInt8)) : Nil
Sets a pixel in this scanline based on the header
Sourcesub
Filt(x) = Orig(x) - Orig(a)
Run the sub filter strategy yielding each modified byte to the block
Sourcesub(io : IO)
Filt(x) = Orig(x) - Orig(a)
Run the sub filter strategy yielding each modified byte to the block
Sourceunaverage(other : Scanline)
Removes the type 3 Average filter via:
Recon(x) = Filt(x) + floor((Recon(a) + Recon(b)) / 2)
Sourceunaverage(other : Nil)
Removes the type 3 Average filter via:
Recon(x) = Filt(x) + floor((Recon(a) + Recon(b)) / 2)
Sourceunfilter(previous : Scanline | Nil)
Remove any filtering in this scanline
@see https://www.w3.org/TR/png-3/#9Filters
Sourceunpaeth(other : Scanline)
Remove the Paeth filter type
Recon(x) = Filt(x) + PaethPredictor(Recon(a), Recon(b), Recon(c))
Sourceunpaeth(other : Nil)
Remove the Paeth filter type
Recon(x) = Filt(x) + PaethPredictor(Recon(a), Recon(b), Recon(c))
Sourceunsub
Remove the sub filter
Recon(x) = Filt(x) + Recon(a)
Sourceunup(other : Scanline | Nil)
Sourceup(other : Scanline, &block : UInt8 -> Nil)
Filt(x) = Orig(x) - Orig(b)
Sourceup(other : Nil, &block : UInt8 -> Nil)
Filt(x) = Orig(x) - Orig(b)
Sourceup(other : Scanline | Nil, io : IO)
Filt(x) = Orig(x) - Orig(b)
Source