예제 #1
0
        public void DrawImageRegion(string path, int sourceX, int sourceY, int sourceWidth, int sourceHeight, int destX, int destY, int?destWidth = null, int?destHeight = null)
        {
            if (!File.Exists(path))
            {
                LogOutputCallback($"File not found: {path}\nScript Terminated");
                return;
            }

            luaPictureBox.DrawImageRegion(path, sourceX, sourceY, sourceWidth, sourceHeight, destX, destY, destWidth, destHeight);
        }
예제 #2
0
        public void DrawImageRegion(
            [LuaArbitraryStringParam] string path,
            int sourceX,
            int sourceY,
            int sourceWidth,
            int sourceHeight,
            int destX,
            int destY,
            int?destWidth  = null,
            int?destHeight = null)
        {
            var path1 = LuaLibraryBase.FixString(path);

            if (!File.Exists(path1))
            {
                LogOutputCallback($"File not found: {path1}\nScript Terminated");
                return;
            }
            luaPictureBox.DrawImageRegion(path1, sourceX, sourceY, sourceWidth, sourceHeight, destX, destY, destWidth, destHeight);
        }