Documentation
¶
Index ¶
- Variables
- func Cat(img image.Image, wr io.Writer) error
- func CatRect(img image.Image, height, width, top, left int, wr io.Writer) error
- func CatRectangle(img image.Image, minX, minY, maxX, maxY int, wr io.Writer) error
- func DecodeSVG(r io.Reader) (image.Image, error)
- func DisplaySVG(bs []byte) error
- func Excute() error
- func ICat(img image.Image, wr io.Writer) error
- func ICatBase64(imgBase64 string, wr io.Writer) error
- func ICatHttp(uri string, w io.Writer) error
- func ICatImage(img image.Image) image.Image
- func ICatRead(r io.Reader, w io.Writer) error
- func ICatRect(img image.Image, height, width int, wr io.Writer) error
- func ReadDisplaySVG(r io.Reader) error
- type EncodeStdout
- type EncodeWr
- type MultiEncodeWr
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &cobra.Command{ Use: "icat", Short: "image cat", Long: ``, Run: func(cmd *cobra.Command, args []string) { size := len(args) if size > 0 { viper.Set("input", args[0]) sp := strings.Split(args[0], ".") size := len(sp) if size <= 0 { return } viper.Set("ext", sp[size-1]) } else { } if err := Excute(); err != nil { fmt.Println(err) } }, }
View Source
var (
EOFB = []byte{174, 66, 96, 130}
)
Functions ¶
func CatRectangle ¶
func DisplaySVG ¶
func ReadDisplaySVG ¶
Types ¶
type EncodeStdout ¶
type EncodeStdout struct {
// contains filtered or unexported fields
}
func NewEncodeStdout ¶
func NewEncodeStdout() *EncodeStdout
type MultiEncodeWr ¶
func NewMultiEncodeWr ¶
func NewMultiEncodeWr(buff []byte, ws ...io.Writer) *MultiEncodeWr
func (*MultiEncodeWr) Close ¶
func (p *MultiEncodeWr) Close()
func (*MultiEncodeWr) Flush ¶
func (p *MultiEncodeWr) Flush(i int) error
func (*MultiEncodeWr) FlushBase64Stdout ¶
func (p *MultiEncodeWr) FlushBase64Stdout(imgBase64 string) error
func (*MultiEncodeWr) FlushStdout ¶
func (p *MultiEncodeWr) FlushStdout(i int) error
Click to show internal directories.
Click to hide internal directories.