Documentation ¶
Index ¶
- Constants
- func ConvertToPNG(text string, width, height int) ([]byte, error)
- type AsciiConverter
- func (c *AsciiConverter) Convert() string
- func (c AsciiConverter) GetHeight() int
- func (c AsciiConverter) GetScale() float64
- func (c AsciiConverter) GetScaledDims() (int, int)
- func (c AsciiConverter) GetWidth() int
- func (c *AsciiConverter) WithDetailed(detailed bool) *AsciiConverter
- func (c *AsciiConverter) WithScale(scale float64) *AsciiConverter
Constants ¶
View Source
const (
IMAGE_HEIGHT_REDUCTION = 0.45
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AsciiConverter ¶
type AsciiConverter struct { Image image.Image Scale float64 Detailed bool Width int Height int GScaled *image.Gray }
func NewAsciiConverter ¶
func NewAsciiConverter(img image.Image, detailed bool, scale float64) *AsciiConverter
func (*AsciiConverter) Convert ¶
func (c *AsciiConverter) Convert() string
func (AsciiConverter) GetHeight ¶
func (c AsciiConverter) GetHeight() int
func (AsciiConverter) GetScale ¶
func (c AsciiConverter) GetScale() float64
func (AsciiConverter) GetScaledDims ¶
func (c AsciiConverter) GetScaledDims() (int, int)
func (AsciiConverter) GetWidth ¶
func (c AsciiConverter) GetWidth() int
func (*AsciiConverter) WithDetailed ¶
func (c *AsciiConverter) WithDetailed(detailed bool) *AsciiConverter
func (*AsciiConverter) WithScale ¶
func (c *AsciiConverter) WithScale(scale float64) *AsciiConverter
Click to show internal directories.
Click to hide internal directories.