1
我需要用圆形来显示图像的质感,我的代码如下如何剪辑圆形纹理
texture = Texture.FromBitmap(device,myBitmap, Usage.RenderTarget, Pool.Default);
_sprite.Begin(SpriteFlags.SortTexture | SpriteFlags.DoNotModifyRenderState); _sprite.Draw(_allocator.Texture,Vector3.Empty,new Vector3(_objectLocation.X,_objectLocation.Y,0),RenderingColor); _sprite.End();
但它总是显示矩形纹理,如何可以将这个纹理剪成圆形。