一楼的改一下27行试试- $Bitmap = New-object System.Drawing.Bitmap($C.Bounds.width, $C.Bounds.Height,198659)
- #https://docs.microsoft.com/zh-cn/dotnet/api/system.drawing.bitmap.-ctor#system-drawing-bitmap-ctor(system-int32-system-int32-system-int32-system-drawing-imaging-pixelformat-system-intptr)
- #https://docs.microsoft.com/zh-cn/dotnet/api/system.drawing.imaging.pixelformat
复制代码
|