Sign in to follow this  

Rounded Clip texture or sprite

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this