Skip to main content

write_tga_to_vec

Function write_tga_to_vec 

Source
pub fn write_tga_to_vec(tga: &Tga) -> Result<Vec<u8>, TgaBinaryError>
Expand description

Serializes TGA data into a byte vector.

ยงErrors

TgaBinaryError::InvalidHeader on the terms write_tga gives. The Vec target has no I/O to fail at.