resource

public static ImageSource resource(int resId)

Create an instance from a resource. The correct resource for the device screen resolution will be used.

Parameters

resId

resource ID.