Documentation
¶
Index ¶
- func Arrow(w http.ResponseWriter, req *http.Request)
- func BitsTable(w http.ResponseWriter, req *http.Request)
- func Draw(w http.ResponseWriter, req *http.Request)
- func Encode(w http.ResponseWriter, req *http.Request)
- func Frame(w http.ResponseWriter, req *http.Request)
- func Frames(w http.ResponseWriter, req *http.Request)
- func Mask(w http.ResponseWriter, req *http.Request)
- func Masks(w http.ResponseWriter, req *http.Request)
- func Show(w http.ResponseWriter, req *http.Request)
- type BitBlock
- type Image
- type Pixinfo
- type Pixorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Arrow ¶
func Arrow(w http.ResponseWriter, req *http.Request)
Arrow handles a request for an arrow pointing in a given direction.
func Draw ¶
func Draw(w http.ResponseWriter, req *http.Request)
Draw is the handler for drawing a QR code.
func Encode ¶
func Encode(w http.ResponseWriter, req *http.Request)
Encode encodes a string using the given version, level, and mask.
func Frame ¶
func Frame(w http.ResponseWriter, req *http.Request)
Frame handles a request for a single QR frame.
func Frames ¶
func Frames(w http.ResponseWriter, req *http.Request)
Frames handles a request for multiple QR frames.
func Mask ¶
func Mask(w http.ResponseWriter, req *http.Request)
Mask handles a request for a single QR mask.
Types ¶
type Image ¶
type Image struct {
Name string
Target [][]int
Dx int
Dy int
URL string
Tag string
Version int
Mask int
Scale int
Rotation int
Size int
// RandControl says to pick the pixels randomly.
RandControl bool
Seed int64
// Dither says to dither instead of using threshold pixel layout.
Dither bool
// OnlyDataBits says to use only data bits, not check bits.
OnlyDataBits bool
// Code is the final QR code.
Code *qr.Code
// Control is a PNG showing the pixels that we controlled.
// Pixels we don't control are grayed out.
SaveControl bool
Control []byte
}
Click to show internal directories.
Click to hide internal directories.