• Advertisement
Sign in to follow this  

Rounded Clip texture or sprite

This topic is 2980 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I need to display texture of image with the rounded shape,my code as follow <source> 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(); </source> But it always show rectangle texture, how can clip this texture in rounded shape.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement