public void SetImage(string path) { filePath = path; texture = GLUtils.LoadImage(Application.StartupPath + filePath); if (AutoResizeWidget) { MatchTextureBounds(Owner); } }
public override void Initialize() { texture = GLUtils.LoadImage(Application.StartupPath + filePath); MatchTextureBounds(Owner); }