Opal::Image::PixelBuffer
2D TrueColor pixel buffer supporting direct coordinate access, algorithmic generators, high-fidelity nearest & bilinear interpolation, and file decoders.
Constructors
Parses Netpbm PPM (P3 ASCII or P6 Binary) image stream
Generates a radiant 24-bit TrueColor Opal gemstone with multi-faceted refraction
Instance methods
clone
Sourceheight
Sourcepixels
Sourceresize(target_w : Int32, target_h : Int32, interpolation : Interpolation = Interpolation::Bilinear) : PixelBuffer
Resizes the pixel buffer to the target dimensions using either nearest-neighbor or bilinear filtering.
width
Source