Skip to content

Commit

Permalink
1. Update README.md.
Browse files Browse the repository at this point in the history
2. Fix a wrong spelling.
  • Loading branch information
Zixu_Wang authored and Zixu_Wang committed Jun 1, 2020
1 parent c3e9abe commit 2a6a0b7
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 13 deletions.
Binary file added Images/original.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/output.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Img2ColorfulChars/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public static void Main(string[] args)
bool validScale = int.TryParse(args[1], out hScale);
if (!validScale)
{
Console.WriteLine("Failed: Scale should be positive integar.");
Console.WriteLine("Failed: Scale should be positive integer.");
Environment.Exit(-2);
}
}
Expand Down
2 changes: 1 addition & 1 deletion Img2ColorfulChars/ScaleBox.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 32 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,42 @@
# Img2ColorfulChars
Load image and print colorful chars in C# console.
Load an image and print colorful chars in C# console.

## Supported formats
.jpg; .jpeg; .png; .bmp; .ico; .tiff; **.gif**

## Usage
1. Build this project in Visual Studio or use Img2ColorfulChars.exe in _Output.
2. Run command ```Img2ColorfulChars.exe ImagePath Scale``` and enjoy your colorful chars.
``` cmd
cd _Output
Img2ColorfulChars.exe np.png 4
```
> Notice: Scale should be positive integar, and larger scale gets smaller image.
1. Get `Img2ColorfulChars.exe` in the following ways.
- Build this project in Visual Studio.
- Find it in [_Output](_Output).
- Find it in [Releases](https://github.com/Roy0309/Img2ColorfulChars/releases).

2. Run `Img2ColorfulChars.exe` in the following ways.
- Run command `Img2ColorfulChars.exe ImagePath Scale`. Enjoy!
``` cmd
cd _Output
Img2ColorfulChars.exe np.png 4
```
> Notice: Scale should be positive integer, and larger scale gets smaller image.
- Double click `Img2ColorfulChars.exe`. Select an image and set scale (suggested scale as default). Enjoy!

## Output

### Static image
Original image:
<img width="400" height="400" src="Images/original.png"/>
<img width="300" src="Images/original.png"/>

Output:
<img width="400" height="400" src="Images/output.png"/>
<img width="300" src="Images/output.png"/>

### GIF
Original image:
<img width="300" src="Images/original.gif"/>

Output:
<img width="300" src="Images/output.gif"/>


## 思路总结/zh_CN
- [来自多彩世界的控制台——C#控制台输出彩色字符 - 简书](https://www.jianshu.com/p/8a083421c11d)
- [来自多彩世界的控制台——C#控制台输出彩色字符 - 简书](https://www.jianshu.com/p/8a083421c11d)
适用于1.1版。

0 comments on commit 2a6a0b7

Please sign in to comment.