コード例 #1
0
ファイル: Renderer.cs プロジェクト: progre/sx13
        public void DrawClipWhite(string fileName, Point src, Size size, Point point)
        {
            if (!_handles.ContainsKey(fileName))
                Load(fileName);

            DX.SetDrawBlendMode(DX.DX_BLENDMODE_ADD, 255);
            DX.DrawRectGraph(point.X, point.Y, src.X, src.Y, size.Width, size.Height,
                _handles[fileName], DX.TRUE, DX.FALSE);
            DX.DrawRectGraph(point.X, point.Y, src.X, src.Y, size.Width, size.Height,
                _handles[fileName], DX.TRUE, DX.FALSE);
            DX.DrawRectGraph(point.X, point.Y, src.X, src.Y, size.Width, size.Height,
                _handles[fileName], DX.TRUE, DX.FALSE);
            DX.DrawRectGraph(point.X, point.Y, src.X, src.Y, size.Width, size.Height,
                _handles[fileName], DX.TRUE, DX.FALSE);
            DX.DrawRectGraph(point.X, point.Y, src.X, src.Y, size.Width, size.Height,
                _handles[fileName], DX.TRUE, DX.FALSE);
            DX.DrawRectGraph(point.X, point.Y, src.X, src.Y, size.Width, size.Height,
                _handles[fileName], DX.TRUE, DX.FALSE);
            DX.DrawRectGraph(point.X, point.Y, src.X, src.Y, size.Width, size.Height,
                _handles[fileName], DX.TRUE, DX.FALSE);
            DX.DrawRectGraph(point.X, point.Y, src.X, src.Y, size.Width, size.Height,
                _handles[fileName], DX.TRUE, DX.FALSE);
            DX.DrawRectGraph(point.X, point.Y, src.X, src.Y, size.Width, size.Height,
                _handles[fileName], DX.TRUE, DX.FALSE);
            DX.SetDrawBlendMode(DX.DX_BLENDMODE_NOBLEND, 0);
        }
コード例 #2
0
ファイル: Renderer.cs プロジェクト: progre/sx13
        public void DrawClip(string fileName, Point src, Size size, Point point)
        {
            if (!_handles.ContainsKey(fileName))
                Load(fileName);

            DX.DrawRectGraph(point.X, point.Y, src.X, src.Y, size.Width, size.Height,
                _handles[fileName], DX.TRUE, DX.FALSE);
        }