Package dev.stefifox.qr.general
Class QrCode
- java.lang.Object
-
- dev.stefifox.qr.general.QrCode
-
public class QrCode extends Object
This class is a General version for QR_Generator Class Library: zxing Licensed by: Google LLC. License: Apache 2.0 Annotation: For use that code import in your code zxing file contains in source zip; zxing library is proprieties of Google LLC. under Apache license 2.0- Version:
- 3.0
- Author:
- Stefano - Stefifox
-
-
Constructor Summary
Constructors Constructor Description QrCode()
-
Method Summary
Modifier and Type Method Description static BufferedImagegenerate(String text)This method generate a QrCode with standard height and whithstatic BufferedImagegenerate(String text, int width, int height, int foreground, int background)This method generate a QrCodestatic BufferedImagegenerateBalck(String text, int width, int height)This method generate a Black background QrCodestatic BufferedImagegenerateWhite(String text, int width, int height)This method generate a White background QrCode
-
-
-
Method Detail
-
generate
public static BufferedImage generate(String text, int width, int height, int foreground, int background)
This method generate a QrCode- Parameters:
text- A QrCode Textwidth- A QrCode Widthheight- A QrCode Heightforeground- A QrCode foregroundbackground- A QrCode background- Returns:
- BufferedImage image
-
generateWhite
public static BufferedImage generateWhite(String text, int width, int height)
This method generate a White background QrCode- Parameters:
text- A QrCode Textwidth- A QrCode Widthheight- A QrCode Height- Returns:
- BufferedImage image
-
generateBalck
public static BufferedImage generateBalck(String text, int width, int height)
This method generate a Black background QrCode- Parameters:
text- A QrCode Textwidth- A QrCode Widthheight- A QrCode Height- Returns:
- BufferedImage image
-
generate
public static BufferedImage generate(String text)
This method generate a QrCode with standard height and whith- Parameters:
text- A QrCode Text
-
-