gnu-octave / octave-qr Goto Github PK
View Code? Open in Web Editor NEWSome Octave/Matlab code to create QR Codes, based upon https://github.com/zxing/zxing.
License: GNU General Public License v3.0
Some Octave/Matlab code to create QR Codes, based upon https://github.com/zxing/zxing.
License: GNU General Public License v3.0
Hi, is my first time in this site and i ask a favor.
When i run your code, i get QRCode code, and i understand that represents the encoded image of the barcode
I'm trying with the next method for get the image:
private static void createQRImage(ByteMatrix matrix) throws WriterException, IOException {
String qrCodeText = "AQUI IRIA LA CADENA LARGA QUE SE SOLICITA";
String filePath = "C:/Users/rcn_f/Desktop/QrDemo.png";
String fileType = "png";
File qrFile = new File(filePath);
QRCodeWriter qrCodeWriter = new QRCodeWriter();
int matrixWidth = matrix.getWidth();
BufferedImage image = new BufferedImage(matrixWidth, matrixWidth, BufferedImage.TYPE_INT_RGB);
image.createGraphics();
Graphics2D graphics = (Graphics2D) image.getGraphics();
graphics.setColor(Color.WHITE);
graphics.fillRect(0, 0, matrixWidth, matrixWidth);
// Paint and save the image using the ByteMatrix
graphics.setColor(Color.BLACK);
for (int i = 0; i < matrixWidth; i++) {
for (int j = 0; j < matrixWidth; j++) {
if (byteMatrix.get(i, j)) { // here is my problem i think that i need a sustitute for get (x, y)
graphics.fillRect(i, j, 1, 1);
}
}
}
ImageIO.write(image, fileType, qrFile);
}
I appreciate your help infinitely
Ricardo Curiel
[email protected]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.