-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2. Fix a wrong spelling.
- Loading branch information
Zixu_Wang
authored and
Zixu_Wang
committed
Jun 1, 2020
1 parent
c3e9abe
commit 2a6a0b7
Showing
5 changed files
with
34 additions
and
13 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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版。 |