Imaging Class
Provides managed to unmanaged interoperation support for creating image objects.
Assembly: PresentationCore (in PresentationCore.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | CreateBitmapSourceFromHBitmap(IntPtr, IntPtr, Int32Rect, BitmapSizeOptions) | Returns a managed BitmapSource, based on the provided pointer to an unmanaged bitmap and palette information. |
![]() ![]() | CreateBitmapSourceFromHIcon(IntPtr, Int32Rect, BitmapSizeOptions) | Returns a managed BitmapSource, based on the provided pointer to an unmanaged icon image. |
![]() ![]() | CreateBitmapSourceFromMemorySection(IntPtr, Int32, Int32, PixelFormat, Int32, Int32) | Returns a managed BitmapSource, based on the provided unmanaged memory location. |
This class provides creation mechanisms for the primary bitmap imaging class in WPF, BitmapSource. This includes methods that create a BitmapSource based on Microsoft Windows Graphics Device Interface (GDI) objects , and memory sections.
Available since 3.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

