qrcode

package
v0.131.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2023 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetImageDimensions

func GetImageDimensions(imgBytes []byte) (int, int, error)

func GetLogoImage

func GetLogoImage(multiaccountsDB *multiaccounts.Database, params url.Values) ([]byte, error)

func GetPadding

func GetPadding(imgBytes []byte) int

func ImageToBytes

func ImageToBytes(imagePath string) ([]byte, error)

func ResizeImage

func ResizeImage(imgBytes []byte, width, height int) ([]byte, error)

func SuperimposeImage

func SuperimposeImage(imageBytes []byte, qrFilepath []byte) []byte

func ToLogoImageFromBytes

func ToLogoImageFromBytes(imageBytes []byte, padding int) []byte

Types

type Circle

type Circle struct {
	X, Y, R int
}

func (*Circle) At

func (c *Circle) At(x, y int) color.Color

func (*Circle) Bounds

func (c *Circle) Bounds() image.Rectangle

func (*Circle) ColorModel

func (c *Circle) ColorModel() color.Model

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL