int ViewSetAlpha(int vw, int alpha);
Change the alpha transparency of a View.
Return Value
Return value is not used.
Parameters
vw View handle returned from ViewAdd().
alpha Value from 0 - 100 representing the transparency of an image. Default = 100, meaning not transparent.
Remarks
The ViewSetAlpha() function changes the alpha transparency of a View.
Availability
Available in DragonFireSDK 1.1 and later.
Example
Description: This example will set up a view area, load Ball.png and then change the image to Square.png, then it will set the view's alpha transparency to 50.
#include "DragonFireSDK.h"
void AppMain() { int ViewHandle; int ImageHandle;
ViewHandle = ViewAdd("Ball.png", 0, 0); ImageHandle = ImageAdd("Square.png"); ViewSetImage(ViewHandle, ImageHandle); ViewSetAlpha(ViewHandle, 50); }
void AppExit() {
}
void OnTimer() {
} |