• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

QR-Code with Logo (image inside)

 
Ranch Hand
Posts: 57
Netbeans IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey folks,

as the titel it says, I want to generate a QR Code with a logo from a png file or what ever image file in the center.
Did anybody do this or have some idea how it works?
I use currently PrimeFaces 5.3 to generate my QR-Code...

cheers

Chris
 
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Spelling tip: English is "title", not "Titel". Unless you type as badly as I do, then who knows what order the letters will come out in? Oh, well, it's "centre" in UK and "center" in US, so logic isn't our strong point.

I'm not totally sure I understood the question, but it appears that the Primefaces supports a QR code with embedded image using the "image strip" or "image box" options but only if you use canvas rendering. Anything fancier and you'd probably have to either generate the QR code on the server as an image and use server-side logic to merge with whatever bitmap graphics you'd want. Or, alternatively, maybe do some z-axis stacking with CSS on the client side.

And while I'm being all pedantic, JSF backing bean classes are NOT Controllers, no matter what PrimeFaces and NetBeans may say. They are Models. In JSF, the Controllers are part of the bean tag processors (and the FacesServlet). You don't write your own Controllers, only Models and Views.
 
Chris Ernst
Ranch Hand
Posts: 57
Netbeans IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ohhh shit :(

Iam sorry, its a long time ago that I have to write in englisch and with the large letters at the beginning of a word igrnore it ;) its german sickness :D

The second is, we learnd Oxford englisch and there is a large mix betwin UK and US englisch so....

But i wan't to explain new my question:

I want to create a QR-Code like this but with my own logo inside


can I resolve this with JSF or Java as well?

hope this time it was a bit better ;)

cheers

Chris
 
Tim Holloway
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think that would be possible using the "image box" option on a canvas.

The main thing, of course, is not to have the logo damage any of the data elements by overlaying them.
 
Chris Ernst
Ranch Hand
Posts: 57
Netbeans IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Haha i didn't used it yet but i'll test it today



 
reply
    Bookmark Topic Watch Topic
  • New Topic