Copyright © 2002-2009 MultiMedia Soft 
Return to index  
 
How to apply a texture to the button surface 
Supported texture formats are: 
  • BMP 
  • JPG 
  • PNG 
  • Below you can see a sample of a button with a blue marble texture applied. 
     
    The graphic file containing the texture picture can be set through the Texture property. 
    The texture file can be changed also using the following functions: 
  • abmSetPictureFromHandle function to change the texture picture using a bitmap loaded in memory, identified by a bitmap handle.  
  • abmSetPictureFromMemory function to change the texture picture using a bitmap loaded in memory.  
  • abmSetPictureFromNet function to change the texture picture using a bitmap loaded from the Internet.  
  • The texture rendering can be fine-tuned using the following properties: 
  • TextureMode property to change the mode used to display the texture over the button surface.  
  • TextureLightIntensity property to change the intensity of the light that hits the texture.  
  • TextureColorMix property to change the color that will be mixed to the texture bitmap.  
  • TextureColorMixPerc property to change the percentage used to mix the texture with the TextureColorMix color.  
  •  
     
     
     
     
     
     
     
    Copyright © 2002-2009 MultiMedia Soft 
    Return to index