Struct windows::Win32::Graphics::Direct2D::ID2D1Bitmap
#[repr(transparent)]pub struct ID2D1Bitmap(_);
Expand description
Required features: "Win32_Graphics_Direct2D"
Implementations§
§impl ID2D1Bitmap
impl ID2D1Bitmap
pub unsafe fn GetFactory(&self, factory: *mut Option<ID2D1Factory>)
pub unsafe fn GetSize(&self) -> D2D_SIZE_F
pub unsafe fn GetSize(&self) -> D2D_SIZE_F
Required features: "Win32_Graphics_Direct2D_Common"
pub unsafe fn GetPixelSize(&self) -> D2D_SIZE_U
pub unsafe fn GetPixelSize(&self) -> D2D_SIZE_U
Required features: "Win32_Graphics_Direct2D_Common"
pub unsafe fn GetDpi(&self, dpix: *mut f32, dpiy: *mut f32)
pub unsafe fn CopyFromBitmap<'a, P0>(
&self,
destpoint: Option<*const D2D_POINT_2U>,
bitmap: P0,
srcrect: Option<*const D2D_RECT_U>
) -> Result<()>where
P0: Into<InParam<'a, ID2D1Bitmap>>,
pub unsafe fn CopyFromBitmap<'a, P0>(
&self,
destpoint: Option<*const D2D_POINT_2U>,
bitmap: P0,
srcrect: Option<*const D2D_RECT_U>
) -> Result<()>where
P0: Into<InParam<'a, ID2D1Bitmap>>,
Required features: "Win32_Graphics_Direct2D_Common"
pub unsafe fn CopyFromRenderTarget<'a, P0>(
&self,
destpoint: Option<*const D2D_POINT_2U>,
rendertarget: P0,
srcrect: Option<*const D2D_RECT_U>
) -> Result<()>where
P0: Into<InParam<'a, ID2D1RenderTarget>>,
pub unsafe fn CopyFromRenderTarget<'a, P0>(
&self,
destpoint: Option<*const D2D_POINT_2U>,
rendertarget: P0,
srcrect: Option<*const D2D_RECT_U>
) -> Result<()>where
P0: Into<InParam<'a, ID2D1RenderTarget>>,
Required features: "Win32_Graphics_Direct2D_Common"
pub unsafe fn CopyFromMemory(
&self,
dstrect: Option<*const D2D_RECT_U>,
srcdata: *const c_void,
pitch: u32
) -> Result<()>
pub unsafe fn CopyFromMemory(
&self,
dstrect: Option<*const D2D_RECT_U>,
srcdata: *const c_void,
pitch: u32
) -> Result<()>
Required features: "Win32_Graphics_Direct2D_Common"
Trait Implementations§
§impl Clone for ID2D1Bitmap
impl Clone for ID2D1Bitmap
§impl Debug for ID2D1Bitmap
impl Debug for ID2D1Bitmap
§impl<'a> From<&'a ID2D1Bitmap> for &'a ID2D1Image
impl<'a> From<&'a ID2D1Bitmap> for &'a ID2D1Image
§fn from(value: &'a ID2D1Bitmap) -> Self
fn from(value: &'a ID2D1Bitmap) -> Self
Converts to this type from the input type.
§impl<'a> From<&'a ID2D1Bitmap> for &'a ID2D1Resource
impl<'a> From<&'a ID2D1Bitmap> for &'a ID2D1Resource
§fn from(value: &'a ID2D1Bitmap) -> Self
fn from(value: &'a ID2D1Bitmap) -> Self
Converts to this type from the input type.
§impl<'a> From<&'a ID2D1Bitmap> for &'a IUnknown
impl<'a> From<&'a ID2D1Bitmap> for &'a IUnknown
§fn from(value: &'a ID2D1Bitmap) -> Self
fn from(value: &'a ID2D1Bitmap) -> Self
Converts to this type from the input type.
§impl<'a> From<&'a ID2D1Bitmap1> for &'a ID2D1Bitmap
impl<'a> From<&'a ID2D1Bitmap1> for &'a ID2D1Bitmap
§fn from(value: &'a ID2D1Bitmap1) -> Self
fn from(value: &'a ID2D1Bitmap1) -> Self
Converts to this type from the input type.
§impl From<&ID2D1Bitmap> for ID2D1Image
impl From<&ID2D1Bitmap> for ID2D1Image
§fn from(value: &ID2D1Bitmap) -> Self
fn from(value: &ID2D1Bitmap) -> Self
Converts to this type from the input type.
§impl From<&ID2D1Bitmap> for ID2D1Resource
impl From<&ID2D1Bitmap> for ID2D1Resource
§fn from(value: &ID2D1Bitmap) -> Self
fn from(value: &ID2D1Bitmap) -> Self
Converts to this type from the input type.
§impl From<&ID2D1Bitmap> for IUnknown
impl From<&ID2D1Bitmap> for IUnknown
§fn from(value: &ID2D1Bitmap) -> Self
fn from(value: &ID2D1Bitmap) -> Self
Converts to this type from the input type.
§impl From<&ID2D1Bitmap1> for ID2D1Bitmap
impl From<&ID2D1Bitmap1> for ID2D1Bitmap
§fn from(value: &ID2D1Bitmap1) -> Self
fn from(value: &ID2D1Bitmap1) -> Self
Converts to this type from the input type.
§impl From<ID2D1Bitmap> for ID2D1Image
impl From<ID2D1Bitmap> for ID2D1Image
§fn from(value: ID2D1Bitmap) -> Self
fn from(value: ID2D1Bitmap) -> Self
Converts to this type from the input type.
§impl From<ID2D1Bitmap> for ID2D1Resource
impl From<ID2D1Bitmap> for ID2D1Resource
§fn from(value: ID2D1Bitmap) -> Self
fn from(value: ID2D1Bitmap) -> Self
Converts to this type from the input type.
§impl From<ID2D1Bitmap> for IUnknown
impl From<ID2D1Bitmap> for IUnknown
§fn from(value: ID2D1Bitmap) -> Self
fn from(value: ID2D1Bitmap) -> Self
Converts to this type from the input type.
§impl From<ID2D1Bitmap1> for ID2D1Bitmap
impl From<ID2D1Bitmap1> for ID2D1Bitmap
§fn from(value: ID2D1Bitmap1) -> Self
fn from(value: ID2D1Bitmap1) -> Self
Converts to this type from the input type.
§impl Interface for ID2D1Bitmap
impl Interface for ID2D1Bitmap
§impl PartialEq<ID2D1Bitmap> for ID2D1Bitmap
impl PartialEq<ID2D1Bitmap> for ID2D1Bitmap
§impl Vtable for ID2D1Bitmap
impl Vtable for ID2D1Bitmap
type Vtable = ID2D1Bitmap_Vtbl
§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.