#[repr(C)]pub struct IWICPalette {
pub lpVtbl: *const IWICPaletteVtbl,
}
Fields§
§lpVtbl: *const IWICPaletteVtbl
Implementations§
Source§impl IWICPalette
impl IWICPalette
pub unsafe fn InitializePredefined( &self, ePaletteType: WICBitmapPaletteType, fAddTransparentColor: BOOL, ) -> HRESULT
pub unsafe fn InitializeCustom( &self, pColors: *const WICColor, cCount: UINT, ) -> HRESULT
pub unsafe fn InitializeFromBitmap( &self, pISurface: *const IWICBitmapSource, cCount: UINT, fAddTransparentColor: BOOL, ) -> HRESULT
pub unsafe fn InitializeFromPalette( &self, pIPalette: *const IWICPalette, ) -> HRESULT
pub unsafe fn GetType( &self, pePaletteType: *mut WICBitmapPaletteType, ) -> HRESULT
pub unsafe fn GetColorCount(&self, pcCount: *mut UINT) -> HRESULT
pub unsafe fn GetColors( &self, cCount: UINT, pColors: *mut WICColor, pcActualColors: *mut UINT, ) -> HRESULT
pub unsafe fn IsBlackWhite(&self, pfIsBlackWhite: *mut BOOL) -> HRESULT
pub unsafe fn IsGrayscale(&self, pfIsGrayscale: *mut BOOL) -> HRESULT
pub unsafe fn HasAlpha(&self, pfHasAlpha: *mut BOOL) -> HRESULT
Trait Implementations§
Source§impl Deref for IWICPalette
impl Deref for IWICPalette
Auto Trait Implementations§
impl Freeze for IWICPalette
impl RefUnwindSafe for IWICPalette
impl !Send for IWICPalette
impl !Sync for IWICPalette
impl Unpin for IWICPalette
impl UnwindSafe for IWICPalette
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