Merge branch 'master' of https://gitee.com/huiwei13/CPF.git into my

This commit is contained in:
新无止竞 2024-09-29 22:51:32 +08:00
commit 03411a8b79

View File

@ -121,8 +121,8 @@ namespace CPF.Skia
BITMAP BITMAP = new BITMAP();
UnmanagedMethods.GetObject(hbitmap, Marshal.SizeOf(typeof(BITMAP)), BITMAP);
var bitmap = new SKBitmap(BITMAP.bmWidth, BITMAP.bmHeight);
bitmap.SetPixels(BITMAP.bmBits);
var bitmap = new SKBitmap();
bitmap.InstallPixels(new SKImageInfo(BITMAP.bmWidth, BITMAP.bmHeight, SKImageInfo.PlatformColorType), BITMAP.bmBits, BITMAP.bmWidthBytes);
this.bitmap = bitmap;
canvas = new SKCanvas(this.bitmap);