From a6c12ba20a577f3adea9a267394fa0e2fc7e94e3 Mon Sep 17 00:00:00 2001
From: Charlie Hubbard <charlie.hubbard@gmail.com>
Date: Tue, 27 Aug 2024 19:03:52 -0400
Subject: [PATCH] Update Readme.markdown

Updated the example code to use the QrCodeRenderer to educate how easy it is to use this library.
---
 Readme.markdown | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/Readme.markdown b/Readme.markdown
index 7fd0dd2..8b161d8 100644
--- a/Readme.markdown
+++ b/Readme.markdown
@@ -52,8 +52,7 @@ import io.nayuki.qrcodegen.*;
 
 // Simple operation
 QrCode qr0 = QrCode.encodeText("Hello, world!", QrCode.Ecc.MEDIUM);
-BufferedImage img = toImage(qr0, 4, 10);  // See QrCodeGeneratorDemo
-ImageIO.write(img, "png", new File("qr-code.png"));
+File qrCodeImage = new QrCodeRenderer().scale(4).border(10).renderFile(qr0, "png", new File("qr-code.png");
 
 // Manual operation
 List<QrSegment> segs = QrSegment.makeSegments("3141592653589793238462643383");