[]
        
(Showing Draft Content)

C1.Util.DX.Direct2D.Bitmap

Bitmap Class

ID2D1Bitmap

Implements
Namespace: C1.Util.DX.Direct2D
Assembly: C1.Win.C1DX.4.8.dll
Syntax
[Guid("a2296057-ea42-4099-983b-539fb6505426")]
public class Bitmap : Image, IDisposable, IUnknown

Constructors

Name Description
Bitmap(IntPtr)

Initializes a new instance of the Bitmap class.

Properties

Name Description
DotsPerInch

Return the dots per inch (DPI) of the bitmap.

Methods

Name Description
CopyFromBitmap(Bitmap)

HRESULT ID2D1Bitmap::CopyFromBitmap([In, Optional] const D2D_POINT_2U* destPoint,[In] ID2D1Bitmap* bitmap,[In, Optional] const D2D_RECT_U* srcRect)

CopyFromBitmap(Bitmap, RectL)

HRESULT ID2D1Bitmap::CopyFromBitmap([In, Optional] const D2D_POINT_2U* destPoint,[In] ID2D1Bitmap* bitmap,[In, Optional] const D2D_RECT_U* srcRect)

CopyFromBitmap(Point2L, Bitmap)

HRESULT ID2D1Bitmap::CopyFromBitmap([In, Optional] const D2D_POINT_2U* destPoint,[In] ID2D1Bitmap* bitmap,[In, Optional] const D2D_RECT_U* srcRect)

CopyFromBitmap(Point2L, Bitmap, RectL)

HRESULT ID2D1Bitmap::CopyFromBitmap([In, Optional] const D2D_POINT_2U* destPoint,[In] ID2D1Bitmap* bitmap,[In, Optional] const D2D_RECT_U* srcRect)

CopyFromMemory(byte[], int)

Copies the specified region from memory into the current bitmap.

CopyFromMemory(byte[], int, RectL)

Copies the specified region from memory into the current bitmap.

CopyFromMemory(IntPtr, int)

Copies the specified region from memory into the current bitmap.

CopyFromMemory(IntPtr, int, RectL)

Copies the specified region from memory into the current bitmap.

CopyFromMemory(RectL?, IntPtr, int)

HRESULT ID2D1Bitmap::CopyFromMemory([In, Optional] const D2D_RECT_U* dstRect,[In] const void* srcData,[In] unsigned int pitch)

CopyFromMemory<T>(T[], int)

Copies the specified region from memory into the current bitmap.

CopyFromMemory<T>(T[], int, RectL)

Copies the specified region from memory into the current bitmap.

CopyFromRenderTarget(RenderTarget)

Copies the specified region from the specified render target into the current bitmap.

CopyFromRenderTarget(RenderTarget, Point2L)

Copies the specified region from the specified render target into the current bitmap.

CopyFromRenderTarget(RenderTarget, Point2L, RectL)

Copies the specified region from the specified render target into the current bitmap.

CopyFromRenderTarget(Point2L?, RenderTarget, RectL?)

HRESULT ID2D1Bitmap::CopyFromRenderTarget([In, Optional] const D2D_POINT_2U* destPoint,[In] ID2D1RenderTarget* renderTarget,[In, Optional] const D2D_RECT_U* srcRect)

CopyFromStream(Stream, int, int)

Copies the specified region from a stream into the current bitmap.

CopyFromStream(Stream, int, int, RectL)

Copies the specified region from a stream into the current bitmap.

Create(RenderTarget, Surface)

Creates an Bitmap whose data is shared with another resource.

Create(RenderTarget, Surface, BitmapProperties?)

Creates an Bitmap whose data is shared with another resource.

Create(RenderTarget, Bitmap)

Creates an Bitmap whose data is shared with another resource.

Create(RenderTarget, Bitmap, BitmapProperties?)

Creates an Bitmap whose data is shared with another resource.

Create(RenderTarget, Size2L)

Creates a Direct2D bitmap from a pointer to in-memory source data.

Create(RenderTarget, Size2L, DataPointer, int)

Creates a Direct2D bitmap from a pointer to in-memory source data.

Create(RenderTarget, Size2L, DataPointer, int, BitmapProperties)

Creates a Direct2D bitmap from a pointer to in-memory source data.

Create(RenderTarget, Size2L, BitmapProperties)

Creates a Direct2D bitmap from a pointer to in-memory source data.

Create(RenderTarget, BitmapLock, BitmapProperties?)

Creates an Bitmap that points to the bitmap data already stored in the BitmapLock.

Create(RenderTarget, BitmapSource)

Creates a Bitmap from a wic bitmap.

Create(RenderTarget, BitmapSource, BitmapProperties)

Creates a Bitmap from a wic bitmap.

GetDpi(out float, out float)

void ID2D1Bitmap::GetDpi([Out] float* dpiX,[Out] float* dpiY)

GetPixelFormat()

D2D1_PIXEL_FORMAT ID2D1Bitmap::GetPixelFormat()

GetPixelSize()

D2D_SIZE_U ID2D1Bitmap::GetPixelSize()

GetSize()

D2D_SIZE_F ID2D1Bitmap::GetSize()

New<T>(RenderTarget, Size2L, T[], BitmapProperties)

Creates a Direct2D bitmap from a pointer to in-memory source data.

Operators

Name Description
explicit operator Bitmap(IntPtr)

Performs an explicit conversion from IntPtr to Bitmap.