-Returns the data size. By default, returns the size of the bitmap data
-set in the constructor or using \helpref{SetBitmap}{wxbitmapdataobjectsetbitmap}.
-This can be overridden to provide size data on-demand. Note that you'd
-have to call the inherited GetSize method as this is the only way
-to get to know the transfer size of the bitmap in a platform dependent
-way - a bitmap has different size under GTK and Windows. In practice,
-this would look like this:
-
-\begin{verbatim}
-size_t MyBitmapDataObject::GetSize()
-{
- // Get bitmap from global container. This container
- // should be able to "produce" data in all formats
- // offered by the application but store it only in
- // one format to reduce memory consumption.
-
- wxBitmap my_bitmap = my_global_container->GetBitmap();
-
- // temporarily set bitmap
-
- SetBitmap( my_bitmap );
-
- size_t ret = wxBitmapDataObject::GetSize();
-
- // unset bitmap again
-
- SetBitmap( wxNullBitmap );