Class D2D1Bitmap
Root bitmap resource, linearly scaled on a draw call.
Inherited Members
Namespace: JeremyAnsel.DirectX.D2D1
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
public sealed class D2D1Bitmap : D2D1Image, IDisposable, ID2D1Releasable
Properties
| Edit this page View SourceHandle
Gets an handle representing the D2D1 object interface.
Declaration
public override object Handle { get; }
Property Value
Type | Description |
---|---|
object |
Overrides
| Edit this page View SourcePixelFormat
Gets the format of the bitmap.
Declaration
public D2D1PixelFormat PixelFormat { get; }
Property Value
Type | Description |
---|---|
D2D1PixelFormat |
PixelSize
Gets the size of the bitmap in resolution dependent units, (pixels).
Declaration
public D2D1SizeU PixelSize { get; }
Property Value
Type | Description |
---|---|
D2D1SizeU |
Size
Gets the size of the bitmap in resolution independent units.
Declaration
public D2D1SizeF Size { get; }
Property Value
Type | Description |
---|---|
D2D1SizeF |
Methods
| Edit this page View SourceCopyFromBitmap(D2D1Bitmap)
Copies the specified region from the specified bitmap into the current bitmap.
Declaration
public void CopyFromBitmap(D2D1Bitmap srcBitmap)
Parameters
Type | Name | Description |
---|---|---|
D2D1Bitmap | srcBitmap | The bitmap to copy from. |
CopyFromBitmap(D2D1Bitmap, D2D1RectU)
Copies the specified region from the specified bitmap into the current bitmap.
Declaration
public void CopyFromBitmap(D2D1Bitmap srcBitmap, D2D1RectU srcRect)
Parameters
Type | Name | Description |
---|---|---|
D2D1Bitmap | srcBitmap | The bitmap to copy from. |
D2D1RectU | srcRect | The area of bitmap to copy. |
CopyFromBitmap(D2D1Point2U, D2D1Bitmap)
Copies the specified region from the specified bitmap into the current bitmap.
Declaration
public void CopyFromBitmap(D2D1Point2U destPoint, D2D1Bitmap srcBitmap)
Parameters
Type | Name | Description |
---|---|---|
D2D1Point2U | destPoint | In the current bitmap, the upper-left corner of the area to which the region is copied. |
D2D1Bitmap | srcBitmap | The bitmap to copy from. |
CopyFromBitmap(D2D1Point2U, D2D1Bitmap, D2D1RectU)
Copies the specified region from the specified bitmap into the current bitmap.
Declaration
public void CopyFromBitmap(D2D1Point2U destPoint, D2D1Bitmap srcBitmap, D2D1RectU srcRect)
Parameters
Type | Name | Description |
---|---|---|
D2D1Point2U | destPoint | In the current bitmap, the upper-left corner of the area to which the region specified by |
D2D1Bitmap | srcBitmap | The bitmap to copy from. |
D2D1RectU | srcRect | The area of bitmap to copy. |
CopyFromMemory(D2D1RectU, byte[], uint)
Copies the specified region from memory into the current bitmap.
Declaration
public void CopyFromMemory(D2D1RectU destRect, byte[] srcData, uint pitch)
Parameters
Type | Name | Description |
---|---|---|
D2D1RectU | destRect | In the current bitmap, the upper-left corner of the area to which the region specified by |
byte[] | srcData | The data to copy. |
uint | pitch | The stride, or pitch, of the source bitmap stored in |
CopyFromMemory(D2D1RectU, nint, uint)
Copies the specified region from memory into the current bitmap.
Declaration
public void CopyFromMemory(D2D1RectU destRect, nint srcData, uint pitch)
Parameters
Type | Name | Description |
---|---|---|
D2D1RectU | destRect | In the current bitmap, the upper-left corner of the area to which the region specified by |
nint | srcData | The data to copy. |
uint | pitch | The stride, or pitch, of the source bitmap stored in |
CopyFromMemory(byte[], uint)
Copies the specified region from memory into the current bitmap.
Declaration
public void CopyFromMemory(byte[] srcData, uint pitch)
Parameters
Type | Name | Description |
---|---|---|
byte[] | srcData | The data to copy. |
uint | pitch | The stride, or pitch, of the source bitmap stored in |
CopyFromMemory(nint, uint)
Copies the specified region from memory into the current bitmap.
Declaration
public void CopyFromMemory(nint srcData, uint pitch)
Parameters
Type | Name | Description |
---|---|---|
nint | srcData | The data to copy. |
uint | pitch | The stride, or pitch, of the source bitmap stored in |
CopyFromRenderTarget(D2D1Point2U, D2D1RenderTarget)
Copies the specified region from the specified render target into the current bitmap.
Declaration
public void CopyFromRenderTarget(D2D1Point2U destPoint, D2D1RenderTarget renderTarget)
Parameters
Type | Name | Description |
---|---|---|
D2D1Point2U | destPoint | In the current bitmap, the upper-left corner of the area to which the region is copied. |
D2D1RenderTarget | renderTarget | The render target that contains the region to copy. |
CopyFromRenderTarget(D2D1Point2U, D2D1RenderTarget, D2D1RectU)
Copies the specified region from the specified render target into the current bitmap.
Declaration
public void CopyFromRenderTarget(D2D1Point2U destPoint, D2D1RenderTarget renderTarget, D2D1RectU srcRect)
Parameters
Type | Name | Description |
---|---|---|
D2D1Point2U | destPoint | In the current bitmap, the upper-left corner of the area to which the region specified by |
D2D1RenderTarget | renderTarget | The render target that contains the region to copy. |
D2D1RectU | srcRect | The area of renderTarget to copy. |
CopyFromRenderTarget(D2D1RenderTarget)
Copies the specified region from the specified render target into the current bitmap.
Declaration
public void CopyFromRenderTarget(D2D1RenderTarget renderTarget)
Parameters
Type | Name | Description |
---|---|---|
D2D1RenderTarget | renderTarget | The render target that contains the region to copy. |
CopyFromRenderTarget(D2D1RenderTarget, D2D1RectU)
Copies the specified region from the specified render target into the current bitmap.
Declaration
public void CopyFromRenderTarget(D2D1RenderTarget renderTarget, D2D1RectU srcRect)
Parameters
Type | Name | Description |
---|---|---|
D2D1RenderTarget | renderTarget | The render target that contains the region to copy. |
D2D1RectU | srcRect | The area of renderTarget to copy. |
GetDpi(out float, out float)
Return the dots per inch (DPI) of the bitmap.
Declaration
public void GetDpi(out float dpiX, out float dpiY)
Parameters
Type | Name | Description |
---|---|---|
float | dpiX | The horizontal DPI of the image. |
float | dpiY | The vertical DPI of the image. |