丸みを帯びた形状の画像のテクスチャを表示する必要があります。コードは次のとおりです
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();
ただし、常に長方形のテクスチャが表示されます。このテクスチャを丸みを帯びた形状にクリップするにはどうすればよいですか。