Struct windows::Win32::Graphics::Imaging::IWICImagingFactory
pub struct IWICImagingFactory(/* private fields */);
Implementations§
§impl IWICImagingFactory
impl IWICImagingFactory
pub unsafe fn CreateDecoderFromFilename<P0>(
&self,
wzfilename: P0,
pguidvendor: Option<*const GUID>,
dwdesiredaccess: GENERIC_ACCESS_RIGHTS,
metadataoptions: WICDecodeOptions,
) -> Result<IWICBitmapDecoder>where
P0: Param<PCWSTR>,
pub unsafe fn CreateDecoderFromStream<P0>(
&self,
pistream: P0,
pguidvendor: *const GUID,
metadataoptions: WICDecodeOptions,
) -> Result<IWICBitmapDecoder>where
P0: Param<IStream>,
pub unsafe fn CreateDecoderFromFileHandle( &self, hfile: usize, pguidvendor: *const GUID, metadataoptions: WICDecodeOptions, ) -> Result<IWICBitmapDecoder>
pub unsafe fn CreateComponentInfo( &self, clsidcomponent: *const GUID, ) -> Result<IWICComponentInfo>
pub unsafe fn CreateDecoder( &self, guidcontainerformat: *const GUID, pguidvendor: *const GUID, ) -> Result<IWICBitmapDecoder>
pub unsafe fn CreateEncoder( &self, guidcontainerformat: *const GUID, pguidvendor: *const GUID, ) -> Result<IWICBitmapEncoder>
pub unsafe fn CreatePalette(&self) -> Result<IWICPalette>
pub unsafe fn CreateFormatConverter(&self) -> Result<IWICFormatConverter>
pub unsafe fn CreateBitmapScaler(&self) -> Result<IWICBitmapScaler>
pub unsafe fn CreateBitmapClipper(&self) -> Result<IWICBitmapClipper>
pub unsafe fn CreateBitmapFlipRotator(&self) -> Result<IWICBitmapFlipRotator>
pub unsafe fn CreateStream(&self) -> Result<IWICStream>
pub unsafe fn CreateColorContext(&self) -> Result<IWICColorContext>
pub unsafe fn CreateColorTransformer(&self) -> Result<IWICColorTransform>
pub unsafe fn CreateBitmap( &self, uiwidth: u32, uiheight: u32, pixelformat: *const GUID, option: WICBitmapCreateCacheOption, ) -> Result<IWICBitmap>
pub unsafe fn CreateBitmapFromSource<P0>(
&self,
pibitmapsource: P0,
option: WICBitmapCreateCacheOption,
) -> Result<IWICBitmap>where
P0: Param<IWICBitmapSource>,
pub unsafe fn CreateBitmapFromSourceRect<P0>(
&self,
pibitmapsource: P0,
x: u32,
y: u32,
width: u32,
height: u32,
) -> Result<IWICBitmap>where
P0: Param<IWICBitmapSource>,
pub unsafe fn CreateBitmapFromMemory( &self, uiwidth: u32, uiheight: u32, pixelformat: *const GUID, cbstride: u32, pbbuffer: &[u8], ) -> Result<IWICBitmap>
pub unsafe fn CreateBitmapFromHBITMAP<P0, P1>( &self, hbitmap: P0, hpalette: P1, options: WICBitmapAlphaChannelOption, ) -> Result<IWICBitmap>
pub unsafe fn CreateBitmapFromHICON<P0>(&self, hicon: P0) -> Result<IWICBitmap>where
P0: Param<HICON>,
pub unsafe fn CreateComponentEnumerator( &self, componenttypes: u32, options: u32, ) -> Result<IEnumUnknown>
pub unsafe fn CreateFastMetadataEncoderFromDecoder<P0>(
&self,
pidecoder: P0,
) -> Result<IWICFastMetadataEncoder>where
P0: Param<IWICBitmapDecoder>,
pub unsafe fn CreateFastMetadataEncoderFromFrameDecode<P0>(
&self,
piframedecoder: P0,
) -> Result<IWICFastMetadataEncoder>where
P0: Param<IWICBitmapFrameDecode>,
pub unsafe fn CreateQueryWriter( &self, guidmetadataformat: *const GUID, pguidvendor: *const GUID, ) -> Result<IWICMetadataQueryWriter>
pub unsafe fn CreateQueryWriterFromReader<P0>(
&self,
piqueryreader: P0,
pguidvendor: *const GUID,
) -> Result<IWICMetadataQueryWriter>where
P0: Param<IWICMetadataQueryReader>,
Trait Implementations§
§impl CanInto<IUnknown> for IWICImagingFactory
impl CanInto<IUnknown> for IWICImagingFactory
§impl CanInto<IWICImagingFactory> for IWICComponentFactory
impl CanInto<IWICImagingFactory> for IWICComponentFactory
§impl CanInto<IWICImagingFactory> for IWICImagingFactory2
impl CanInto<IWICImagingFactory> for IWICImagingFactory2
§impl Clone for IWICImagingFactory
impl Clone for IWICImagingFactory
§fn clone(&self) -> IWICImagingFactory
fn clone(&self) -> IWICImagingFactory
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 more§impl Debug for IWICImagingFactory
impl Debug for IWICImagingFactory
§impl Deref for IWICImagingFactory
impl Deref for IWICImagingFactory
§impl From<&IWICComponentFactory> for &IWICImagingFactory
impl From<&IWICComponentFactory> for &IWICImagingFactory
§fn from(value: &IWICComponentFactory) -> Self
fn from(value: &IWICComponentFactory) -> Self
Converts to this type from the input type.
§impl From<&IWICImagingFactory> for &IUnknown
impl From<&IWICImagingFactory> for &IUnknown
§fn from(value: &IWICImagingFactory) -> Self
fn from(value: &IWICImagingFactory) -> Self
Converts to this type from the input type.
§impl From<&IWICImagingFactory2> for &IWICImagingFactory
impl From<&IWICImagingFactory2> for &IWICImagingFactory
§fn from(value: &IWICImagingFactory2) -> Self
fn from(value: &IWICImagingFactory2) -> Self
Converts to this type from the input type.
§impl From<IWICComponentFactory> for IWICImagingFactory
impl From<IWICComponentFactory> for IWICImagingFactory
§fn from(value: IWICComponentFactory) -> Self
fn from(value: IWICComponentFactory) -> Self
Converts to this type from the input type.
§impl From<IWICImagingFactory> for IUnknown
impl From<IWICImagingFactory> for IUnknown
§fn from(value: IWICImagingFactory) -> Self
fn from(value: IWICImagingFactory) -> Self
Converts to this type from the input type.
§impl From<IWICImagingFactory2> for IWICImagingFactory
impl From<IWICImagingFactory2> for IWICImagingFactory
§fn from(value: IWICImagingFactory2) -> Self
fn from(value: IWICImagingFactory2) -> Self
Converts to this type from the input type.
§impl Interface for IWICImagingFactory
impl Interface for IWICImagingFactory
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§impl PartialEq for IWICImagingFactory
impl PartialEq for IWICImagingFactory
§fn eq(&self, other: &IWICImagingFactory) -> bool
fn eq(&self, other: &IWICImagingFactory) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IWICImagingFactory
impl StructuralPartialEq for IWICImagingFactory
Auto Trait Implementations§
impl Freeze for IWICImagingFactory
impl RefUnwindSafe for IWICImagingFactory
impl !Send for IWICImagingFactory
impl !Sync for IWICImagingFactory
impl Unpin for IWICImagingFactory
impl UnwindSafe for IWICImagingFactory
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)