---
title: "Bitmap..::.Draw Method (IntPtr, Int32, Int32, CombineMode, Single)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_Draw_5_379220ea.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# Bitmap.Draw Method (IntPtr, Int32, Int32, CombineMode, Single)
 
Draws current bitmap on given Windows GDI device context (represented as handle to device context, i.e. HDC).
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub Draw ( _hdc As IntPtr, _destinationX As Integer, _destinationY As Integer, _combine As CombineMode, _opacity As Single _
)
```
 
```csharp
public void Draw(IntPtr hdc,int destinationX,int destinationY,CombineMode combine,float opacity
)
```
 
### Parameters
 
 - hdc
     - Type: [System.IntPtr](http://msdn2.microsoft.com/en-us/5he14kz8)
Target handle to device context (on which current bitmap should be drawn).

 - destinationX
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
Horizontal position of left-top corner of the destination rectangle.

 - destinationY
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
Vertical position of left-top corner of the destination rectangle.

 - combine
     - Type: [Aurigma.GraphicsMill.Transforms.CombineMode](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_CombineMode.htm.md)
Algorithm of images blending (plain pixels copying, alpha blending, bitwise operations, etc).

 - opacity
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
A number in range [0, 1] specifying total opacity of the image. If 0, image is completely transparent, if 1, image is completely opaque.
 
## Remarks
  
Bitmap is drawn to destination rectangle on the given HDC with dimensions equal to the dimensions of the bitmap.
 
**Note** 
If bitmap has pixel format which is not GDI-compatible (e.g. extended pixel formats, CMYK, etc) method will automatically create a copy converted to the [Format32bppArgb](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_PixelFormat.htm.md). That's why you always get it drawn, but if you are going to call this method multiple times, it is recommended to convert it to some GDI-compatible format (like [Format32bppArgb](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_PixelFormat.htm.md)) to increase the performance.
 
All coordinates are measured in units specified with [Unit](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_UnitConverterObject_Unit.htm.md) property of the source bitmap.
   
## See Also

### Reference

- [Bitmap Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md)
- [Draw Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Bitmap_Draw.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)

### Manual

- [Combine Modes](https://www.graphicsmill.com/docs/gm5/CombineModes.htm.md)
