How to apply a texture to the button surface |
|
The simplest way to change a button's appearance is to use, inside 3D Button Visual Editor, the Textures tab. At run-time each of these properties can be referenced by name. Supported texture formats are:
Below you can see a sample of a button with a blue marble texture applied. Note: The image below has hot links to take you to explanations of the various settings.
Texture management is handled by the TextureSurface property through an internally implemented COM object called Texture.
At Run-time the texture picture can be changed using the following methods: SetPictureFromHandle method to change the texture picture using a bitmap loaded in memory, identified by a bitmap handle. SetPictureFromMemory method to change the texture picture using a bitmap loaded in memory. SetPictureFromNet method to change the texture picture using a bitmap loaded from the Internet.
|