Type Alias image::codecs::dxt::DXTEncoder

source ·
pub type DXTEncoder<W> = DxtEncoder<W>;
👎Deprecated: Use DxtEncoder instead
Expand description

DXT encoder

An alias of DxtEncoder.

TODO: remove

Aliased Type§

struct DXTEncoder<W> { /* private fields */ }

Implementations

source§

impl<W: Write> DxtEncoder<W>

source

pub fn new(w: W) -> DxtEncoder<W>

Create a new encoder that writes its output to w

source

pub fn encode( self, data: &[u8], width: u32, height: u32, variant: DXTVariant, ) -> ImageResult<()>

Encodes the image data data that has dimensions width and height in DXTVariant variant data is assumed to be in variant.color_type()