Share your advanced PureBasic knowledge/code with the community.
mk-soft
Always Here
Posts: 5406 Joined: Fri May 12, 2006 6:51 pm
Location: Germany
Post
by mk-soft » Sat Jan 16, 2021 8:16 pm
Great, thank you very much.
Now no more external DLLs.
Searched for URL example
How to find the source code in the forum again
Code: Select all
img = qrcodegen::CreateTextImage("https://www.purebasic.fr/english/viewtopic.php?f=12&t=76558")
Saki
Addict
Posts: 830 Joined: Sun Apr 05, 2020 11:28 am
Location: Pandora
Post
by Saki » Sat Jan 16, 2021 9:38 pm
Very nice and useful.
Last edited by
Saki on Sun Jan 17, 2021 1:04 am, edited 1 time in total.
地球上の平和
tft
User
Posts: 84 Joined: Mon Dec 29, 2008 9:34 am
Post
by tft » Sat Jan 16, 2021 11:49 pm
OK .....
Code: Select all
;tex$ = "https://www.sourcemagic.ch/index.html"
;tex$ = "mailto:info@sourcemagic.ch/index.html"
tex$ = "BEGIN:VCARD"+#CR+#LF+
"VERSION:4.0"+#CR+#LF+
"FN:Temucin SourceMagic"+#CR+#LF+
"N:Temucin;Turgut;;;"+#CR+#LF+
"ADR:;;Bagnhofstr.15;Dachsen;Schweiz;8447;Zürich"+#CR+#LF+
"TEL;TYPE=cell,work:+41796050735"+#CR+#LF+
"EMAIL;TYPE=work:turgut.temucin@sourcemagic.ch"+#CR+#LF+
"ORG:GAMES"+#CR+#LF+
"NOTE:Privatuntericht : Programmieren lernen"+#CR+#LF+
"URL:HTTP://www.sourcemagic.ch"+#CR+#LF+
"End:VCARD"+#CR+#LF
img = qrcodegen_CreateTextImage(tex$)
Last edited by
tft on Sun Jan 17, 2021 12:14 am, edited 1 time in total.
ChrisR
Addict
Posts: 1154 Joined: Sun Jan 08, 2017 10:27 pm
Location: France
Post
by ChrisR » Sat Jan 16, 2021 11:58 pm
Superb and very useful, thank you for sharing
loulou2522
Enthusiast
Posts: 501 Joined: Tue Oct 14, 2014 12:09 pm
Post
by loulou2522 » Tue Jan 19, 2021 3:52 pm
Hi iinfratec,
Is it possible to have a pbprogramm which read PDF, PNG,JPEG ?
THanks for answering
fluent
User
Posts: 68 Joined: Sun Jan 24, 2021 10:57 am
Post
by fluent » Sat May 01, 2021 5:44 pm
Very good job, thanks!
2 questions:
1/ Where in the code could I change the size of a "dot" (or the resulting qr-code image)? I've tried ResizeImage but it produces bad artefacts which often make the code unreadable by my smartphone
2/ Is it feasible to use a "round dot" style? Like in this example:
Saki
Addict
Posts: 830 Joined: Sun Apr 05, 2020 11:28 am
Location: Pandora
Post
by Saki » Sat May 01, 2021 8:03 pm
Hi,
it's not my code, but I'll give an answer.
Technically it is unwise to make it round, because you remove information giving content.
You must set the #Raw flag when resizing and you must not create the images as JPEG, but as PNG or BMP.
Best Regards Saki
地球上の平和
thanos
Enthusiast
Posts: 422 Joined: Sat Jan 12, 2008 3:25 pm
Location: Greece
Contact:
Post
by thanos » Sun Aug 29, 2021 7:42 pm
@infratec
Amazing work!
Thanks a lot!
It seems does not support unicode characters
Regards
» myPersonal Banker :: Because you do not need to have a master degree in economics in order to organize your finances!
mk-soft
Always Here
Posts: 5406 Joined: Fri May 12, 2006 6:51 pm
Location: Germany
Post
by mk-soft » Fri Dec 10, 2021 2:03 pm
Part encodeText adapted text (#Mode_BYTE) from ASCII to UTF8.
works fine with my Mobil App "Barcode Scanner"
Last edited by
mk-soft on Sat Dec 11, 2021 12:50 am, edited 1 time in total.
infratec
Always Here
Posts: 6874 Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany
Post
by infratec » Fri Dec 10, 2021 9:58 pm
I updated both versions on the fisrt page.
Also synchronized with the latest github version from 10 days ago.
Lunasole
Addict
Posts: 1091 Joined: Mon Oct 26, 2015 2:55 am
Location: UA
Contact:
Post
by Lunasole » Fri Apr 07, 2023 2:28 am
Your code seems good (as many of your codes).
There is Notepad++ plugin to generate QR of selected text, but it seems really bugged.
May make another plugin of that library
"W̷i̷s̷h̷i̷n̷g o̷n a s̷t̷a̷r"
PeteM
User
Posts: 12 Joined: Thu Mar 05, 2015 8:44 pm
Post
by PeteM » Thu Nov 09, 2023 2:19 pm
Anyone know how to change the background colour of the image, or to make it transparent?
infratec
Always Here
Posts: 6874 Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany
Post
by infratec » Thu Nov 09, 2023 3:18 pm
Modified the code in the first post.