úζª 2The type representing a simple rectangular image. P Internally it stores the resolution, the pixel format, and the raw pixel data  as a strict  . "pointer" to the raw data  resolution  pixel format [Access to the raw data. The user action receives a pointer, the spatial resolution and the ) number of (8-bit) components per pixel. -Data format (bytes per pixel -> components):  1 -> grey  2 -> grey, alpha  3 -> red, green, blue  4 -> red, green, blue, alpha  Access the raw data as a strict  . ,Returns the spatial resolution of an image. 4Returns the number of (8-bit) components per pixel. =Decodes an image from a compressed format stored in a strict  .  Supported formats (see  stb_image.c for details!): E JPEG baseline (no JPEG progressive, no oddball channel decimations) / PNG 8-bit only (8 bit per component, that is)  BMP non-1bpp, non-RLE ) TGA (not sure what subset, if a subset) . PSD (composite view only, no extra channels) 2If the operation fails, returns an error message. NDecodes an image, with the number of components per pixel forced by the user. [Loads an image from a file. Catches IO exceptions and converts them to an error message.       stb-image-0.1Codec.Image.STBImage withImagerawImage resolution components decodeImage loadImagestbi_failure_reasonstbi_image_freestbi_load_from_memoryImgPtrFormatbytestring-0.9.1.7Data.ByteString.Internal ByteStringi_ptri_resi_fmt withImgPtr decodeImage' ioHandler