Forum Libraries, Components, and Plugins

How to make the SKBitmap bitmap color as Transparent in SkiaSharp

In System.Drawing we will make the bitmap image color as transparent by using maketransparent method Whether SKBITMAP has any other equivalent method for making the color to transparent.

Bitmap imgData = new Bitmap()
imgData.MakeTransparent(Color.White);//in system.Drawing

In System.Drawing we retrieve the PixelFormat from Image object, but SkiaSharp.SkImage does not provide API to find the PixelFormat of decoded image. Whether it has any other workaround to find the PixelFormat of decoded images and also how can we create Image with PixelFormat value as equivalent of System.Drawing.Image

Can any one please suggest a solution for this?


Sign In or Register to comment.