2014-04-08

#sh(php){{

param($fileIn, $fileOut, $strSize, $pixWidth, $pixHeight);

Write-Host "fileIn: $fileIn";
Write-Host "fileOut: $fileOut";
Write-Host "strSize: $strSize";
Write-Host "pixWidth: $pixWidth";
Write-Host "pixHeight: $pixHeight";

Add-Type -AssemblyName System.Drawing;
Add-Type -AssemblyName System.Windows.Forms;

$bmpSrc = New-Object System.Drawing.Bitmap($fileIn, $true);
$fmtSrc = $bmpSrc.RawFormat;
$bmpDst = New-Object System.Drawing.Bitmap($bmpSrc, $pixWidth, $pixHeight);

$bmpDst.Save($fileOut, $fmtSrc);

return;


}}


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2014-04-08 (火) 13:59:07