How to set background image

In some IDE, "SetTransparent" method cannot reach desired effect(see below), in this case, we can set Background Image of Control to implement it.

API:
LONG SetBackgroundImage(BSTR sPath, LONG nType);
Paramenter
sPath: point an absolute path of background image.
nType: reserved for future, must be zero.

Sample:
Prepare Background Image


Set Background Image
gauge.SetBackgroundImage( "D:\ImageForder\bg.png", 0 );

Clear Background Image
gauge.SetBackgroundImage( "", 0 );

Download the demo.


 

         Copyright © 2019 BeauGauge Inc. All rights reserved.