[][src]Module stb::image

Structs

Data
Info

Enums

Channels

Functions

stbi_convert_iphone_png_to_rgb

By default we convert iphone-formatted PNGs back to RGB, even though they are internally encoded differently. You can disable this conversion by calling stbi_convert_iphone_png_to_rgb(false), in which case you will always just get the native iphone "format" through (which is BGR stored in RGB).

stbi_hdr_to_ldr_gamma
stbi_hdr_to_ldr_scale
stbi_info_from_memory

Get image dimensions & components from a slice without fully decoding

stbi_info_from_reader

Get image dimensions & components from reader without fully decoding

stbi_is_16_bit_from_memory
stbi_is_16_bit_from_reader
stbi_ldr_to_hdr_gamma
stbi_ldr_to_hdr_scale
stbi_load_16_from_memory
stbi_load_16_from_reader
stbi_load_from_memory
stbi_load_from_reader
stbi_loadf_from_memory
stbi_loadf_from_reader
stbi_set_flip_vertically_on_load

Flip the image vertically, so the first pixel in the output array is the bottom left

stbi_set_unpremultiply_on_load

Call stbi_set_unpremultiply_on_load(true) to force a divide per pixel to remove any premultiplied alpha only if the image file explicitly says there's premultiplied data (currently only happens in iPhone images, and only if iPhone convert-to-rgb processing is on).