pub struct TextureMapEncoder<TW: Write, DW: Write> { /* private fields */ }Implementations§
Source§impl<TW: Write, DW: Write> TextureMapEncoder<TW, DW>
impl<TW: Write, DW: Write> TextureMapEncoder<TW, DW>
pub fn new( text_writer: TW, texd_writer: Option<DW>, woa_version: WoaVersion, texture_parameters: Option<TextureMapParameters>, atlas_data: Option<AtlasData>, ) -> TextureMapEncoder<TW, DW>
Trait Implementations§
Source§impl<TW: Write, DW: Write> ImageEncoder for TextureMapEncoder<TW, DW>
impl<TW: Write, DW: Write> ImageEncoder for TextureMapEncoder<TW, DW>
Source§fn write_image(
self,
buf: &[u8],
width: u32,
height: u32,
color_type: ExtendedColorType,
) -> ImageResult<()>
fn write_image( self, buf: &[u8], width: u32, height: u32, color_type: ExtendedColorType, ) -> ImageResult<()>
Writes all the bytes in an image to the encoder. Read more
Source§fn set_icc_profile(
&mut self,
icc_profile: Vec<u8>,
) -> Result<(), UnsupportedError>
fn set_icc_profile( &mut self, icc_profile: Vec<u8>, ) -> Result<(), UnsupportedError>
Set the ICC profile to use for the image. Read more
Source§fn set_exif_metadata(&mut self, exif: Vec<u8>) -> Result<(), UnsupportedError>
fn set_exif_metadata(&mut self, exif: Vec<u8>) -> Result<(), UnsupportedError>
Set the EXIF metadata to use for the image. Read more
Auto Trait Implementations§
impl<TW, DW> Freeze for TextureMapEncoder<TW, DW>
impl<TW, DW> RefUnwindSafe for TextureMapEncoder<TW, DW>where
TW: RefUnwindSafe,
DW: RefUnwindSafe,
impl<TW, DW> Send for TextureMapEncoder<TW, DW>
impl<TW, DW> Sync for TextureMapEncoder<TW, DW>
impl<TW, DW> Unpin for TextureMapEncoder<TW, DW>
impl<TW, DW> UnwindSafe for TextureMapEncoder<TW, DW>where
TW: UnwindSafe,
DW: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more