0
ラウンド関数を使用した後、powershellでビットマップを作成することはできません。誰かが私を助けることができますか?ラウンド番号の後にビットマップを作成できません
$newWidth = [Math]::Round($idealWidth * $ratioOriginal);
$bmpResized = New-Object System.Drawing.Bitmap($newWidth, 800)
私が取得:Exception calling ".ctor" with "2" argument(s): "Parameter is not valid."
これはNew-Object System.Drawing.Bitmap(800, 800)
に動作しますが、私は新しい幅を計算する必要があります。