【Xbox360】 XNA Game Studio その3 【C#】at GAMEDEV
【Xbox360】 XNA Game Studio その3 【C#】 - 暇つぶし2ch506:名前は開発中のものです。
07/08/31 10:50:56 67oi8D7d
>>503
Rectangle srcRect = new Rectangle(お好きなように);
byte[] data = new byte[srcRect.Width * srcRect.Height * 4];
texture.GetData(0, srcRect, data, 0, data.Length);
Texture2D texture2 = new Texture2D(graphics.GraphicsDevice, srcRect.Width, srcRect.Height, 0, ResourceUsage.None, SurfaceFormat.Color);
texture2.SetData(data);
>>502はこんな感じかなあ


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch