Type Alias image::codecs::dxt::DXTEncoder
source · pub type DXTEncoder<W> = DxtEncoder<W>;
👎Deprecated: Use
DxtEncoder
insteadExpand description
Aliased Type§
struct DXTEncoder<W> { /* private fields */ }
Implementations
source§impl<W: Write> DxtEncoder<W>
impl<W: Write> DxtEncoder<W>
sourcepub fn new(w: W) -> DxtEncoder<W>
pub fn new(w: W) -> DxtEncoder<W>
Create a new encoder that writes its output to w
sourcepub 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()