Struct windows::Win32::Graphics::Imaging::IWICComponentFactory
pub struct IWICComponentFactory(/* private fields */);
Implementations§
§impl IWICComponentFactory
impl IWICComponentFactory
pub unsafe fn CreateMetadataReader<P0>(
&self,
guidmetadataformat: *const GUID,
pguidvendor: *const GUID,
dwoptions: u32,
pistream: P0,
) -> Result<IWICMetadataReader>where
P0: Param<IStream>,
pub unsafe fn CreateMetadataReaderFromContainer<P0>(
&self,
guidcontainerformat: *const GUID,
pguidvendor: *const GUID,
dwoptions: u32,
pistream: P0,
) -> Result<IWICMetadataReader>where
P0: Param<IStream>,
pub unsafe fn CreateMetadataWriter( &self, guidmetadataformat: *const GUID, pguidvendor: *const GUID, dwmetadataoptions: u32, ) -> Result<IWICMetadataWriter>
pub unsafe fn CreateMetadataWriterFromReader<P0>(
&self,
pireader: P0,
pguidvendor: *const GUID,
) -> Result<IWICMetadataWriter>where
P0: Param<IWICMetadataReader>,
pub unsafe fn CreateQueryReaderFromBlockReader<P0>(
&self,
piblockreader: P0,
) -> Result<IWICMetadataQueryReader>where
P0: Param<IWICMetadataBlockReader>,
pub unsafe fn CreateQueryWriterFromBlockWriter<P0>(
&self,
piblockwriter: P0,
) -> Result<IWICMetadataQueryWriter>where
P0: Param<IWICMetadataBlockWriter>,
pub unsafe fn CreateEncoderPropertyBag( &self, ppropoptions: &[PROPBAG2], ) -> Result<IPropertyBag2>
Methods from Deref<Target = 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 IWICComponentFactory
impl CanInto<IUnknown> for IWICComponentFactory
§impl CanInto<IWICImagingFactory> for IWICComponentFactory
impl CanInto<IWICImagingFactory> for IWICComponentFactory
§impl Clone for IWICComponentFactory
impl Clone for IWICComponentFactory
§fn clone(&self) -> IWICComponentFactory
fn clone(&self) -> IWICComponentFactory
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 IWICComponentFactory
impl Debug for IWICComponentFactory
§impl Deref for IWICComponentFactory
impl Deref for IWICComponentFactory
§impl From<&IWICComponentFactory> for &IUnknown
impl From<&IWICComponentFactory> for &IUnknown
§fn from(value: &IWICComponentFactory) -> Self
fn from(value: &IWICComponentFactory) -> 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<IWICComponentFactory> for IUnknown
impl From<IWICComponentFactory> for IUnknown
§fn from(value: IWICComponentFactory) -> Self
fn from(value: IWICComponentFactory) -> 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 Interface for IWICComponentFactory
impl Interface for IWICComponentFactory
§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 IWICComponentFactory
impl PartialEq for IWICComponentFactory
§fn eq(&self, other: &IWICComponentFactory) -> bool
fn eq(&self, other: &IWICComponentFactory) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IWICComponentFactory
impl StructuralPartialEq for IWICComponentFactory
Auto Trait Implementations§
impl Freeze for IWICComponentFactory
impl RefUnwindSafe for IWICComponentFactory
impl !Send for IWICComponentFactory
impl !Sync for IWICComponentFactory
impl Unpin for IWICComponentFactory
impl UnwindSafe for IWICComponentFactory
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
)