module

MPDUI::ImageLoader

Class methods

read(io : IO, mime : String | Nil) : StumpyCore::Canvas | Nil

Reads the image from io using mime as the primary hint. Falls back to magic-byte detection via FileType when mime is nil or unrecognized. Returns a StumpyCore::Canvas or nil if the format cannot be determined.

Source
read(io : IO) : StumpyCore::Canvas | Nil

Reads the image from io by detecting the format via magic bytes. Returns a StumpyCore::Canvas or nil if the format is unrecognized.

Source