Trait IWICPalette_Impl
pub trait IWICPalette_Impl: IUnknownImpl {
// Required methods
fn InitializePredefined(
&self,
epalettetype: WICBitmapPaletteType,
faddtransparentcolor: BOOL,
) -> Result<()>;
fn InitializeCustom(&self, pcolors: *const u32, ccount: u32) -> Result<()>;
fn InitializeFromBitmap(
&self,
pisurface: Ref<'_, IWICBitmapSource>,
ccount: u32,
faddtransparentcolor: BOOL,
) -> Result<()>;
fn InitializeFromPalette(
&self,
pipalette: Ref<'_, IWICPalette>,
) -> Result<()>;
fn GetType(&self) -> Result<WICBitmapPaletteType>;
fn GetColorCount(&self) -> Result<u32>;
fn GetColors(
&self,
ccount: u32,
pcolors: *mut u32,
pcactualcolors: *mut u32,
) -> Result<()>;
fn IsBlackWhite(&self) -> Result<BOOL>;
fn IsGrayscale(&self) -> Result<BOOL>;
fn HasAlpha(&self) -> Result<BOOL>;
}
Required Methods§
fn InitializePredefined( &self, epalettetype: WICBitmapPaletteType, faddtransparentcolor: BOOL, ) -> Result<()>
fn InitializeCustom(&self, pcolors: *const u32, ccount: u32) -> Result<()>
fn InitializeFromBitmap( &self, pisurface: Ref<'_, IWICBitmapSource>, ccount: u32, faddtransparentcolor: BOOL, ) -> Result<()>
fn InitializeFromPalette(&self, pipalette: Ref<'_, IWICPalette>) -> Result<()>
fn GetType(&self) -> Result<WICBitmapPaletteType>
fn GetColorCount(&self) -> Result<u32>
fn GetColors( &self, ccount: u32, pcolors: *mut u32, pcactualcolors: *mut u32, ) -> Result<()>
fn IsBlackWhite(&self) -> Result<BOOL>
fn IsGrayscale(&self) -> Result<BOOL>
fn HasAlpha(&self) -> Result<BOOL>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.