Skip to main content

read_tga_with_options

Function read_tga_with_options 

Source
pub fn read_tga_with_options<R: Read>(
    reader: &mut R,
    options: TgaReadOptions,
) -> Result<Tga, TgaBinaryError>
Expand description

Reads TGA data from a reader with explicit options.

ยงErrors

TgaBinaryError::Io when the stream will not read to end, and whatever read_tga_from_bytes_with_options reports for the bytes it collected.