public void DrawImage(string path, int x, int y, int?width = null, int?height = null, bool cache = true) { if (!File.Exists(path)) { LogOutputCallback($"File not found: {path}\nScript Terminated"); return; } luaPictureBox.DrawImage(path, x, y, width, height, cache); }
public void DrawImage( [LuaArbitraryStringParam] string path, int x, int y, int?width = null, int?height = null, bool cache = true) { var path1 = LuaLibraryBase.FixString(path); if (!File.Exists(path1)) { LogOutputCallback($"File not found: {path1}\nScript Terminated"); return; } luaPictureBox.DrawImage(path1, x, y, width, height, cache); }