我有一个C#-Project,我想在Bitmap-Object上绘制一些Textures(Object:Texture2D)。我不知道该怎么做。有人可以帮我或给我一个链接到我可以阅读的页面吗?我在Google中找到的只是如何将Bitmap转换为Texture2D,但这不是我需要的......
例如:在位图上绘制Texture2D(100x100像素),左上角为10/20 ......
我已经阅读过一些名为texture-brush的工具或类似的东西。
以下是代码段:
//For the test, create a new bitmap
System.Drawing.Bitmap picture = new System.Drawing.Bitmap(250, 250);
//The already existing texture2d is called tile
//this is how i thought i could draw the Texture2D into the bitmap
picture.draw(tile, new Vector2(10, 25));