Instead of scribbling on redundant pieces and relying on error correction to preserve
the meaning, qart engineers the encoded values to create the picture in a code with
no inherent errors.
Technical Details
Check http://research.swtch.com/qart for detail. The original code is written by iRuss Cox
and can be downloaded at code.google.com/p/rsc/source/browse/qr
type Image struct {
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}