Hello All,
I have created an analogue gauge from a bitmap image. It doesn't have any needle pointer so I created one in GIMP with a transparent background (also a bitmap).
I configured an imageView control to float on top of the panel containing the gauge bitmap and configured the imageView control to load with the needle pointer bitmap.
When the gauge values are neutral (no needle movement required) all is fine. But when the measurement values change, using the RSImageProcessing library to rotate it a few degrees proportional to the change in value, the needle will rotate nicely but the imageView will then have an opaque black background which obliterates the gauge bitmap.
Does anyone know how to overcome this? Also when the needle rotates 45 degrees, the needle 'stretches' to the corner of the imageView control making it longer.
I was considering drawing lines instead but I rather like the needle.
I've attached two screenshots. The last one shows the needle pointing downwards with an opaque background.
Any advice is most appreciated.
I have created an analogue gauge from a bitmap image. It doesn't have any needle pointer so I created one in GIMP with a transparent background (also a bitmap).
I configured an imageView control to float on top of the panel containing the gauge bitmap and configured the imageView control to load with the needle pointer bitmap.
When the gauge values are neutral (no needle movement required) all is fine. But when the measurement values change, using the RSImageProcessing library to rotate it a few degrees proportional to the change in value, the needle will rotate nicely but the imageView will then have an opaque black background which obliterates the gauge bitmap.
Does anyone know how to overcome this? Also when the needle rotates 45 degrees, the needle 'stretches' to the corner of the imageView control making it longer.
I was considering drawing lines instead but I rather like the needle.
I've attached two screenshots. The last one shows the needle pointing downwards with an opaque background.
Any advice is most appreciated.