Struct image::codecs::dxt::DxtEncoder [−][src]
pub struct DxtEncoder<W: Write> { /* fields omitted */ }
Expand description
DXT encoder
Implementations
Create a new encoder that writes its output to w
pub fn encode(
self,
data: &[u8],
width: u32,
height: u32,
variant: DXTVariant
) -> ImageResult<()>
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()