# DisplayBitmap class

Namespace: [Rhino.Display](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.display.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md)

```cs
public class DisplayBitmap : IDisposable
```

A bitmap resource that can be used by the display pipeline (currently only in OpenGL display). Reuse DisplayBitmaps for drawing if possible; it is much more expensive to construct new DisplayBitmaps than it is to reuse existing DisplayBitmaps.

## Constructors

- [DisplayBitmap](https://developer.rhino3d.com/api/rhinocommon/type/rhino.display.displaybitmap/ctor.md): (2 overloads) Constructs a DisplayBitmap from an existing bitmap.

## Finalizer

- [~DisplayBitmap](https://developer.rhino3d.com/api/rhinocommon/type/rhino.display.displaybitmap/finalize.md): Passively reclaims unmanaged resources when the class user did not explicitly call Dispose().

## Properties

- [Size](https://developer.rhino3d.com/api/rhinocommon/type/rhino.display.displaybitmap/size.md): Size of the underlying bitmap image

## Methods

- [Dispose](https://developer.rhino3d.com/api/rhinocommon/type/rhino.display.displaybitmap/dispose.md): (2 overloads) Actively reclaims unmanaged resources that this instance uses.
- [GetBlendModes](https://developer.rhino3d.com/api/rhinocommon/type/rhino.display.displaybitmap/getblendmodes.md): Gets the source and destination blend modes.
- [Load](https://developer.rhino3d.com/api/rhinocommon/type/rhino.display.displaybitmap/load.md): (static) Load a DisplayBitmap from and image file on disk or from URL. If path starts with http:// or https:// then an attempt is made to load the bitmap from an online resource
- [SetBlendFunction](https://developer.rhino3d.com/api/rhinocommon/type/rhino.display.displaybitmap/setblendfunction.md): Sets blending function used to determine how this bitmap is blended with the current frame buffer color. The default setting is SourceAlpha for source and OneMinusSourceAlpha for destination. See OpenGL's glBlendFunc for details. http://www.opengl.org/sdk/docs/man/xhtml/glBlendFunc.xml
- [Update](https://developer.rhino3d.com/api/rhinocommon/type/rhino.display.displaybitmap/update.md): Update the image used for this DisplayBitmap
