Picture.setResource

void setResource(string resourcePath = null)

Makes self load and display the resource at the given resource_path.

This is a utility function that calls gtk.picture.Picture.setFile.

Parameters

resourcePaththe resource to set