Codota Logo
QRCode.<init>
Code IndexAdd Codota to your IDE (free)

How to use
net.glxn.qrgen.QRCode
constructor

Best Java code snippets using net.glxn.qrgen.QRCode.<init> (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: net.glxn/qrgen

/**
 * Create a QR code from the given text.    <br/><br/>
 * <p/>
 * There is a size limitation to how much you can put into a QR code. This has been tested to work with up to a length of 2950
 * characters.<br/><br/>
 * <p/>
 * The QRCode will have the following defaults:     <br/> {size: 100x100}<br/>{imageType:PNG}  <br/><br/>
 * <p/>
 * Both size and imageType can be overridden:   <br/> Image type override is done by calling {@link
 * QRCode#to(net.glxn.qrgen.image.ImageType)} e.g. QRCode.from("hello world").to(JPG) <br/> Size override is done by calling
 * {@link QRCode#withSize} e.g. QRCode.from("hello world").to(JPG).withSize(125, 125)  <br/>
 *
 * @param text the text to encode to a new QRCode, this may fail if the text is too large. <br/>
 * @return the QRCode object    <br/>
 */
public static QRCode from(String text) {
  return new QRCode(text);
}
origin: net.glxn/qrgen

/**
 * Creates a a QR Code from the given {@link VCard}.
 * <p/>
 * The QRCode will have the following defaults:     <br/> {size: 100x100}<br/>{imageType:PNG}  <br/><br/>
 *
 * @param vcard the vcard to encode as QRCode
 * @return the QRCode object
 */
public static QRCode from(VCard vcard) {
  return new QRCode(vcard.toString());
}
net.glxn.qrgenQRCode<init>

Popular methods of QRCode

  • from
    Creates a a QR Code from the given VCard. The QRCode will have the following defaults: {size: 100x1
  • stream
    returns a ByteArrayOutputStream representation of the QR code
  • to
    Overrides the imageType from its default ImageType#PNG
  • withCharset
    Overrides the default charset by supplying a com.google.zxing.EncodeHintType#CHARACTER_SET hint to c
  • createMatrix
  • createTempFile
  • withErrorCorrection
    Overrides the default error correction by supplying a com.google.zxing.EncodeHintType#ERROR_CORRECTI
  • withHint
    Sets hint to com.google.zxing.qrcode.QRCodeWriter#encode
  • withSize
    Overrides the size of the qr from its default 125x125
  • writeTo
    writes a representation of the QR code to the supplied OutputStream
  • writeToStream
  • writeToStream

Popular in Java

  • Start an intent from android
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • notifyDataSetChanged (ArrayAdapter)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Kernel (java.awt.image)
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • JCheckBox (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now