qr?
最简单的办法是重载TQRShape做个控件, 只要override print方法即可.
type
TMyQrShape = class(TQrShape)
protected
print(ofsx, ofsy: Integer);
override;
end;
procedure TMyQrShape.Print(OfsX, OfsY: Integer);
begin
with QRPrinterdo
begin
canvas.MoveTo(XPos(OfsX + Size.Left), YPos(OfsY + Size.Top))
canvas.LineTo(XPos(OfsX + Size.Left+Size.Width), YPos(OfsY + Size.Top+Size.Height))
end;
end;