[ CCode ( has_construct_function = false , type = "ClutterActor*" ) ]
[ Version ( deprecated = true , deprecated_since = "1.12" , since = "0.8" ) ]
public Texture.from_file (string filename) throws TextureError
Warning: Texture.from_file is deprecated since 1.12.
Creates a new ClutterTexture actor to display the image contained a file.
No direct replacement is available.
Use Image and platform-specific image loading API, like GdkPixbuf, instead
If the image failed to load then NULL is returned and error
is set.
filename |
The name of an image file to load. |
A newly created Texture object or NULL on error. |