#画像をjpgでたてよこ半分サイズで出力
Set-ExecutionPolicy RemoteSigned -Scope Process
Add-Type -AssemblyName System.Drawing
$image = New-Object System.Drawing.Bitmap("c:\tmp\test.jpg");
$out = New-Object System.Drawing.Bitmap($image, ($image.Width/2), ($image.Height/2) );
$out.Save("c:\tmp\test1.jpg", [System.Drawing.Imaging.ImageFormat]::Jpeg);
$image,$out | foreach{$_ = $null};
----
Powershellをコツコツやってたら面白くなってきた。
アマゾンでテキストを探そうと思ったがなかなかない・・・。
KARION2様の言うとおり、オンラインの方が充実しているしバージョン変更が激しいからかも。
とりあえず、KARION2さんオススメの記事を読んでこう!
PowerShellを実際に触る人向けの話 KARINO2様
http://karino2.livejournal.com/69397.html
Windows PowerShell でのスクリプティング
https://technet.microsoft.com/ja-jp/scriptcenter/dd742419
2017/10/12
登録:
コメントの投稿 (Atom)
0 件のコメント:
コメントを投稿