How create round skbitmap

olzhastypeolzhastype Member ✭✭

Hi, I need create round bitmap from SKBitmap

I get bitmap
public async Task GetPhoto()
{
try
{
Uri uri = new Uri();
WebRequest request =WebRequest.Create(uri);
WebResponse response = request.GetResponse();
Stream responseStream = response.GetResponseStream();
return SKBitmap.Decode(responseStream);
}
catch (Exception ex)
{

        }
        return new SKBitmap();
    }

Answers

  • PaulNTUPaulNTU USMember ✭✭✭
    edited May 2

    You dont really create a round image, you create a normal bitmap (Rectangular), draw the background as transparent and then draw a circular image onto the bitmap. When shown the image will appear as circular

    HTH
    Paul

Sign In or Register to comment.