Copyright © 2003-2024 MultiMedia Soft

Texture.Filepath property

Previous pageReturn to chapter overviewNext page

Type

[Visual Basic]

Public Overridable Property Filepath As String

 

[C#]

public virtual string Filepath {get; set;}

 

[C++]

public: __property virtual String* get_Filepath();

public: __property virtual void set_Filepath(String*);

 

 

Remarks

This is a sub-property of the Texture property and represents the pathname of the picture file containing the texture that will be applied to the button surface.

Supported bitmap files are BMP, JPG and PNG.

Below you can see a sample of a button with a blue marble texture applied.

3dcm_i000072

 

 

Notes

Setting pictures and animation at design time will not require to redistribute the picture or animation files because their binary will be stored inside the final application code in a compressed format (the redistribution is required only when there is the need of changing and restoring the picture or animation at runtime).

In order to keep the final EXE program size smaller, avoid using bitmaps larger than the dimensions of the button that will receive the texture: if the texture is smaller than the button dimension, it will be tiled in order to cover the whole button surface.

The texture rendering will not consider the current button colors: if you want to mix the texture with another color take a look to the Texture.ColorToMix property.

 

 

See also

Texture property.

TextureDesc class.

How to apply a texture to the button surface section.