~dricottone/image2ascii

5435fd050b4e30c970a3ff8026cbed1ffdc84663 — 秦世成 6 years ago cc4686e
Update README.md
1 files changed, 10 insertions(+), 8 deletions(-)

M README.md
M README.md => README.md +10 -8
@@ 119,14 119,16 @@ type Options struct {

supported convert function
```golang
// convert a image object to ascii matrix
func Image2ASCIIMatrix(image image.Image, imageConvertOptions *Options) []string {}

// convert a image object to ascii matrix and then join the matrix to a string
func Image2ASCIIString(image image.Image, options *Options) string {}

// convert a image object by input a string to ascii matrix then join the matrix to a string
func ImageFile2ASCIIString(imageFilename string, option *Options) string {}
type Converter interface {
    // convert a image object to ascii matrix
	Image2ASCIIMatrix(image image.Image, imageConvertOptions *Options) []string
	// convert a image object to ascii matrix and then join the matrix to a string
    Image2ASCIIString(image image.Image, options *Options) string
	// convert a image object by input a string to ascii matrix
    ImageFile2ASCIIMatrix(imageFilename string, option *Options) []string
	// convert a image object by input a string to ascii matrix then join the matrix to a string
    ImageFile2ASCIIString(imageFilename string, option *Options) string
}
```

## Sample outputs