AddCustomButton bitmap
Posted: Sun Mar 08, 2026 12:05 am
Greetings folks,
My apologies in advance if this has been asked before, but I can't find anything relevant.
How does one link a bitmap to a custom button? The example shows:
SharpCap.AddCustomButton("Test", None, "Select the first camera", selectFirstCamera)
The pop-up information shows the second parameter allows you to add an image, but I cant figure out how to get a bitmap (BMP) file linked in. The example I found in the Windows .Net documentation show a C++ example, which doesn't quite seem to map nicely to IronPython.
Of course, I can always just forget about the pretty bitmap (a text-only button works just fine), but this is bugging me. It ought to be easy, but I'm missing something.
My apologies in advance if this has been asked before, but I can't find anything relevant.
How does one link a bitmap to a custom button? The example shows:
SharpCap.AddCustomButton("Test", None, "Select the first camera", selectFirstCamera)
The pop-up information shows the second parameter allows you to add an image, but I cant figure out how to get a bitmap (BMP) file linked in. The example I found in the Windows .Net documentation show a C++ example, which doesn't quite seem to map nicely to IronPython.
Of course, I can always just forget about the pretty bitmap (a text-only button works just fine), but this is bugging me. It ought to be easy, but I'm missing something.