Trait windows::Win32::Graphics::Imaging::IWICPalette_Impl
pub trait IWICPalette_Impl: Sized {
// Required methods
fn InitializePredefined(
&self,
epalettetype: WICBitmapPaletteType,
faddtransparentcolor: BOOL,
) -> Result<()>;
fn InitializeCustom(&self, pcolors: *const u32, ccount: u32) -> Result<()>;
fn InitializeFromBitmap(
&self,
pisurface: Option<&IWICBitmapSource>,
ccount: u32,
faddtransparentcolor: BOOL,
) -> Result<()>;
fn InitializeFromPalette(
&self,
pipalette: Option<&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: Option<&IWICBitmapSource>, ccount: u32, faddtransparentcolor: BOOL, ) -> Result<()>
fn InitializeFromPalette(&self, pipalette: Option<&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>
Object Safety§
This trait is not object safe.