â [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
{{#tags}}- {{label}}
{{/tags}}