get_by_id


Description:

[ Version ( since = "3.0" ) ]
public static unowned Resource? get_by_id (int32 resource_id)

Returns a Resource representing resource_id.

Since Resource is an abstract class, the real object type will actually be the proper subclass.

Note: in most use cases, you should not need to retrieve a Resource by its ID, which is mostly internal data and not reusable across sessions. Use the appropriate functions for your use case instead.

Parameters:

resource_id

The resource id.

Returns:

a Resource for resource_id or null if resource_id does not represent a valid resource. The object belongs to libgimp and you must not modify or unref it.