Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add white margin #1

Open
dkeza opened this issue Sep 27, 2018 · 5 comments
Open

Add white margin #1

dkeza opened this issue Sep 27, 2018 · 5 comments

Comments

@dkeza
Copy link

dkeza commented Sep 27, 2018

Is it possible to add white margin around generated QR Code?

Maybe is it possible to send margin to DLL function?

SetConfiguration(m.tnSize, m.tnType)

@quicobarajas
Copy link

Hi !!

I hace a question

how i can select QR color ?

can i change it's ?

by example: i need my generate QR code in orange color

@waspoelc
Copy link

I can only create QR Code up to 255 Characters. is there a possibility to have more fo example?
V0;BOS01;Kassenbeleg-V1;Beleg^100.00_49.00_0.00_0.00_0.00^149.00:Bar;8;292;2020-03-23T15:26:40.000Z;2020-03-23T15:26:41.000Z;ecdsa-plain-SHA384;unixTime;GbBv+7y0G5yW86xwGeBlUFvZiobtlyBRpM1kUICk3rsBB+WZHcIAE9PSywKqOSdzeH0loX5+2J5vWrF7Tf6+pHfoRBDm4KhUMw4xAYahRIwzrB8VxWs9kvkT3KZClwWT;BBjWKw+dNo8e/tibAHmSd1Pa4BRWlBvKGT658BFrY2JyAhPwpQM9m3x6/GQ9MujRJF6+OGaeQfP+3lHXxByZtaox41QhPtgu9kaT37liX34fFaGguko1ctn4YGHWgM8Pug==

@luismariag
Copy link
Collaborator

luismariag commented Nov 9, 2020

In responses to the 3 comments above:

The new version released 2.0 supports:

  • Margin around the image
  • Color of the QR Code
  • Encoding of strings of more than 255 characters.

I attach examples with the three new features

SET PROCEDURE TO LOCFILE("FoxBarcodeQR.prg") ADDITIVE

*--- Create FoxBarcodeQR object and QR Code barcode image
LOCAL loFbc, lcQRImage
m.loFbc = CREATEOBJECT("FoxBarcodeQR")

*-- New properties
m.loFbc.nBarColor = RGB(255,128,64) && Orange
m.loFbc.nMarginPixels = 10 && Margin around the qr code

*-- Long string of 360 characters
lcString = REPLICATE("Microsoft Visual FoxPro 9.0 - ", 12)

m.lcQRImage = loFbc.FullQRCodeImage(lcString, ,400, 0)

*-- Create form
LOCAL loForm AS FORM
m.loForm = CREATEOBJECT("Form")
WITH m.loForm
  .CAPTION = "FoxBarcodeQR 2.0"
  .WIDTH = 600
  .HEIGHT = 600
  .AUTOCENTER = .T.
  .ADDOBJECT("Image1", "Image")
  WITH .Image1
    .WIDTH = 600
    .HEIGHT = 600
    .STRETCH = 0
    .PICTURE = m.lcQRImage
    .TOP = 20
    .LEFT = 20
    .VISIBLE = .T.
  ENDWITH
  .SHOW(1)
ENDWITH

m.loForm = NULL
m.loFbc = NULL

@dkeza
Copy link
Author

dkeza commented Dec 17, 2020

@luismariag To use QRCodeLib.dll, must I buy license from www.validacfd.com?

@luismariag
Copy link
Collaborator

luismariag commented Dec 17, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants