Documentation ¶
Index ¶
- Constants
- Variables
- func ConvertSvgToBinary(svgData []byte, format ImageFormat, size uint) ([]byte, error)
- func Destroy()
- func DisplayImage(ctx context.Context, screen termbox.Screen, imgData io.Reader, title string)
- func DrawImgToScreen(screen termbox.Screen, img image.Image)
- func DrawText(s termbox.Screen, x, y int, text string)
- func DrawTextBottom(s termbox.Screen, text string)
- func Init()
- type ImageFormat
Constants ¶
View Source
const DefaultSize = 4000
Variables ¶
View Source
var ( PNGFormat = ImageFormat{"png", "PNG", "png"} SVGFormat = ImageFormat{"svg", "SVG", "svg"} )
Functions ¶
func ConvertSvgToBinary ¶
func ConvertSvgToBinary(svgData []byte, format ImageFormat, size uint) ([]byte, error)
func DisplayImage ¶
func DrawTextBottom ¶
Types ¶
type ImageFormat ¶
type ImageFormat struct {
// contains filtered or unexported fields
}
func (ImageFormat) AsLower ¶
func (i ImageFormat) AsLower() string
func (ImageFormat) AsUpper ¶
func (i ImageFormat) AsUpper() string
Click to show internal directories.
Click to hide internal directories.