pub struct BitmapBuilder { /* private fields */ }
Implementations§
Source§impl BitmapBuilder
impl BitmapBuilder
pub fn new(input: impl AsRef<str>) -> BitmapBuilder
pub fn with_format(self, format: GfxFormat) -> Self
pub fn with_tile_width(self, tile_width: u8) -> Self
pub fn with_tile_height(self, tile_height: u8) -> Self
pub fn with_meta_width(self, meta_width: u8) -> Self
pub fn with_meta_height(self, meta_height: u8) -> Self
pub fn with_bit_depth_override(self, bit_depth: BitDepth) -> Self
pub fn with_transparency(self, transparency: Transparency) -> Self
pub fn with_compression(self, compression: Compression) -> Self
pub fn with_area_left(self, area_left: i32) -> Self
pub fn with_area_right(self, area_right: i32) -> Self
pub fn with_area_width(self, area_width: i32) -> Self
pub fn with_area_top(self, area_top: i32) -> Self
pub fn with_area_bottom(self, area_bottom: i32) -> Self
pub fn with_area_height(self, area_height: i32) -> Self
pub fn build(&self) -> Result<Bitmap>
Trait Implementations§
Source§impl Clone for BitmapBuilder
impl Clone for BitmapBuilder
Source§fn clone(&self) -> BitmapBuilder
fn clone(&self) -> BitmapBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BitmapBuilder
impl Debug for BitmapBuilder
Source§impl Default for BitmapBuilder
impl Default for BitmapBuilder
Source§fn default() -> BitmapBuilder
fn default() -> BitmapBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BitmapBuilder
impl RefUnwindSafe for BitmapBuilder
impl Send for BitmapBuilder
impl Sync for BitmapBuilder
impl Unpin for BitmapBuilder
impl UnwindSafe for BitmapBuilder
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