package core:image/bmp
⌘K
Ctrl+K
or
/
Overview
package bmp implements a Microsoft BMP image reader
Index
Constants (2)
Variables (0)
This section is empty.
Types
Bitmask ¶
Related Procedures With Returns
RGBA_Pixel ¶
RGBA_Pixel :: [4]u8
RGB_Pixel ¶
RGB_Pixel :: [3]u8
Constants
FILE_HEADER_SIZE ¶
FILE_HEADER_SIZE :: 14
INFO_STUB_SIZE ¶
INFO_STUB_SIZE :: FILE_HEADER_SIZE + size_of(image.BMP_Version)
Variables
This section is empty.
Procedures
decode_rgb ¶
decode_rgb :: proc(ctx: ^$T, img: ^image.Image, info: image.BMP_Header, allocator := context.allocator) -> (err: image.Error) {…}
decode_rle ¶
decode_rle :: proc(ctx: ^$T, img: ^image.Image, info: image.BMP_Header, allocator := context.allocator) -> (err: image.Error) {…}
is_os2 ¶
is_os2 :: proc(version: image.BMP_Version) -> (res: bool) {…}
load_from_bytes ¶
load_from_bytes :: proc(data: []u8, options: image.Options = Options{}, allocator := context.allocator) -> (img: ^image.Image, err: image.Error) {…}
load_from_context ¶
load_from_context :: proc(ctx: ^$T, options: image.Options = Options{}, allocator := context.allocator) -> (img: ^image.Image, err: image.Error) {…}
load_from_file ¶
load_from_file :: proc(filename: string, options: image.Options = Options{}, allocator := context.allocator) -> (img: ^image.Image, err: image.Error) {…}
make_output ¶
make_output :: proc(img: ^image.Image, allocator := context.allocator) -> (err: image.Error) {…}
read_or_make_bit_masks ¶
read_or_make_bit_masks :: proc(ctx: ^$T, info: image.BMP_Header) -> (res: Bitmask, read: int, err: image.Error) {…}
save_to_buffer ¶
save_to_buffer :: proc(output: ^bytes.Buffer, img: ^image.Image, options: image.Options = Options{}, allocator := context.allocator) -> (err: image.Error) {…}
save_to_file ¶
save_to_file :: proc(output: string, img: ^image.Image, options: image.Options = Options{}, allocator := context.allocator) -> (err: image.Error) {…}
Procedure Groups
load ¶
load :: proc{ load_from_file, load_from_bytes, load_from_context, }
save ¶
save :: proc{ save_to_buffer, save_to_file, }
Source Files
Generation Information
Generated with odin version dev-2024-12 (vendor "odin") Windows_amd64 @ 2024-12-20 21:10:45.913052700 +0000 UTC