Texture.from_file


Description:

[ 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.

Note:

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.

Parameters:

filename

The name of an image file to load.

Returns:

A newly created Texture object or NULL on error.