fsleyes_widgets.utils.b64icon

This module contains the loadBitmap() function, which can be used to create a wx.Bitmap object from a base64-encoded image.

exception fsleyes_widgets.utils.b64icon.IconError[source]

Bases: Exception

Custon Exception raised when loadBitmap() cannot load an icon.

fsleyes_widgets.utils.b64icon.loadBitmap(iconb64)[source]

Convert the given base64-encoded byte string to a wx.Bitmap object.