package core:image/tga
⌘K
Ctrl+K
or
/
Overview
Reader and writer for 8-bit RGB and RGBA TGA
images.
Index
Variables (0)
This section is empty.
Procedures (6)
Types
Error ¶
Error :: image.Error
Related Procedures With Returns
- load_from_bytes
- load_from_context
- load_from_file
- save_to_buffer
- save_to_file
- load (procedure groups)
- save (procedure groups)
GA_Pixel ¶
GA_Pixel :: [2]u8
Image ¶
Image :: image.Image
Related Procedures With Parameters
- destroy
- save_to_buffer
- save_to_file
- save (procedure groups)
Related Procedures With Returns
- load_from_bytes
- load_from_context
- load_from_file
- load (procedure groups)
Options ¶
Options :: image.Options
Related Procedures With Parameters
- load_from_bytes
- load_from_context
- load_from_file
- save_to_buffer
- save_to_file
- load (procedure groups)
- save (procedure groups)
RGBA_Pixel ¶
RGBA_Pixel :: [4]u8
RGB_Pixel ¶
RGB_Pixel :: [3]u8
Constants
IMAGE_DESCRIPTOR_INTERLEAVING_MASK ¶
IMAGE_DESCRIPTOR_INTERLEAVING_MASK: int : (1 << 6) | (1 << 7)
IMAGE_DESCRIPTOR_RIGHT_MASK ¶
IMAGE_DESCRIPTOR_RIGHT_MASK: int : 1 << 4
IMAGE_DESCRIPTOR_TOP_MASK ¶
IMAGE_DESCRIPTOR_TOP_MASK: int : 1 << 5
Variables
This section is empty.
Procedures
load_from_bytes ¶
load_from_bytes :: proc(data: []u8, options: image.Options = Options{}, allocator := context.allocator) -> (img: ^image.Image, err: image.Error) {…}
Related Procedure Groups
load_from_context ¶
load_from_context :: proc(ctx: ^$C, options: image.Options = Options{}, allocator := context.allocator) -> (img: ^image.Image, err: image.Error) {…}
Related Procedure Groups
load_from_file ¶
load_from_file :: proc(filename: string, options: image.Options = Options{}, allocator := context.allocator) -> (img: ^image.Image, err: image.Error) {…}
Related Procedure Groups
save_to_buffer ¶
save_to_buffer :: proc(output: ^bytes.Buffer, img: ^image.Image, options: image.Options = Options{}, allocator := context.allocator) -> (err: image.Error) {…}
Related Procedure Groups
save_to_file ¶
save_to_file :: proc(output: string, img: ^image.Image, options: image.Options = Options{}, allocator := context.allocator) -> (err: image.Error) {…}
Related Procedure Groups
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-2025-10 (vendor "odin") Windows_amd64 @ 2025-10-21 21:13:14.559040300 +0000 UTC