SkiaSharp.SKImage.FromPixels C# (CSharp) Method

FromPixels() public static method

public static FromPixels ( SKImageInfo info, IntPtr pixels, int rowBytes ) : SKImage
info SKImageInfo
pixels System.IntPtr
rowBytes int
return SKImage
		public static SKImage FromPixels (SKImageInfo info, IntPtr pixels, int rowBytes)
		{
			if (pixels == IntPtr.Zero)
				throw new ArgumentNullException (nameof (pixels));
			var handle = SkiaApi.sk_image_new_raster_copy (ref info, pixels, (IntPtr) rowBytes);
			return GetObject<SKImage> (handle);
		}