1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
$Cave = [System.Drawing.Bitmap]::FromFile( '.\thumbnaildibujo.bmp' ) $cave for ($y = 0;$y -lt $Cave.Width;$y+=1) { for ($x = 0;$x -lt $Cave.Height;$x+=1) { $col=$Cave.GetPixel($x,$y).Name switch ($col) { "ffffffff" { Write-Host " " -BackgroundColor Black -ForegroundColor White -NoNewLine } default{ Write-Host " " -BackgroundColor White -ForegroundColor Black -NoNewLine } } } Write-Host "" } |
Imagen que se va a representar

Imagen representada en la consola de PowerShell
