■[C#とDirectXで2Dゲーム]TextureからBitmapへ。 TextureをBitmapに変換する方法は用意されてないので、手動でやんなきゃいけないみたいだ。 //texのtexRectの領域をbmpのbmpPointの位置に描画する。 public static void TextureToBitmap(Texture tex, Bitmap bmp, Rectangle texRect, Point bmpPoint) { Rectangle bmpRect = new Rectangle(bmpPoint, new Size(texRect.Width, texRect.Height)); BitmapData data = bmp.LockBits( bmpRect, ImageLockMode.WriteOnly, PixelFormat.Format32bppA