******************* wx.BitmapDataObject ******************* Inheritance diagram for `wx.BitmapDataObject`: | .. inheritance-diagram:: wx.BitmapDataObject | Description =========== `wx.BitmapDataObject` is a specialization of `wx.DataObject `_ for bitmap data. It can be used without change to paste data into the `wx.Clipboard `_ or a `wx.DropSource `_. A user may wish to derive a new class from this class for providing a bitmap on-demand in order to minimize memory consumption when offering data in several formats, such as a bitmap and GIF. .. note:: **wxPython note**: If you wish to create a derived `wx.BitmapDataObject` class in wxPython you should derive the class from `wx.PyBitmapDataObject `_ in order to get Python-aware capabilities for the various virtual methods. Derived From ^^^^^^^^^^^^^ * `wx.DataObjectSimple `_ * `wx.DataObject `_ Known Subclasses ^^^^^^^^^^^^^^^^ `wx.PyBitmapDataObject `_ Methods Summary ^^^^^^^^^^^^^^^ * `__init__ <#__init__>`_ * `GetBitmap <#GetBitmap>`_ * `SetBitmap <#SetBitmap>`_ Properties Summary ^^^^^^^^^^^^^^^^^^ * `Bitmap <#Bitmap>`_ Class API ========= Methods ^^^^^^^ .. method:: __init__(bitmap=wx.NullBitmap) Constructor, optionally passing a bitmap (otherwise use `SetBitmap <#SetBitmap>`_ later). **Parameters:** * `bitmap` (`wx.Bitmap `_) | **Returns:** `wx.BitmapDataObject `_ -------- .. method:: GetBitmap() Returns the bitmap associated with the data object. You may wish to override this method when offering data on-demand, but this is not required by wxWidgets' internals. Use this method to get data in bitmap form from the `wx.Clipboard `_ . | **Returns:** `wx.Bitmap `_ -------- .. method:: SetBitmap(bitmap) Sets the bitmap associated with the data object. This method is called when the data object receives data. Usually there will be no reason to override this function. **Parameters:** * `bitmap` (`wx.Bitmap `_) -------- Properties ^^^^^^^^^^ .. attribute:: Bitmap See `GetBitmap <#GetBitmap>`_ and `SetBitmap <#SetBitmap>`_