I apologise I replied to the individual:
Subject: | Re: [wx-dev] wxBitmapBundle API proposal |
---|---|
Date: | Thu, 23 Sep 2021 15:40:37 +0100 |
From: | Alec Teal <al...@unifiedmathematics.com> |
To: | Vadim Zeitlin <va...@wxwidgets.org> |
// Create from the given collection of bitmaps.
static wxBitmapBundle FromBitmaps(const wxVector<wxBitmap>& bitmaps);
static wxBitmapBundle FromBitmaps(const wxBitmap& bitmap1,
const wxBitmap& bitmap2);
// Create from a single bitmap (this is only useful for compatibility
// with the existing code).
static wxBitmapBundle FromBitmap(const wxBitmap& bitmap);
static wxBitmapBundle FromImage(const wxImage& image);
// Create from the SVG data (data is supposed to be in UTF-8 encoding).
static wxBitmapBundle FromSVG(const char* data);
// Create from the resources: all existing versions of the bitmap of the
// form name_2x or name@2x (and also using other factors) will be used.
static wxBitmapBundle FromResources(const wxString& name);
// Check if bitmap bundle is non-empty.
bool IsOk() const { return m_impl; }
// Get bitmap of the specified size, creating a new bitmap from the closest
// available size by rescaling it if necessary.
wxBitmap GetBitmap(const wxSize size) const;
// Get the primary, i.e. smallest, bitmap. Note that this function can
// return an invalid bitmap for the bundles not created from a collection
// of bitmaps and only exists for backwards compatibility, i.e. when a
// wxBitmap is needed by some legacy function.