From 8c52a3a9ad7c01230ee6c1375e3579d35f658204 Mon Sep 17 00:00:00 2001 From: Shun Date: Tue, 11 Jun 2024 00:50:32 +0900 Subject: [PATCH] replace ImageFormat::PNG to ImageFormat::Png --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dbaa588..6e4fa1e 100644 --- a/README.md +++ b/README.md @@ -134,11 +134,11 @@ let mut renderer = ImageRenderer::new(1000, 800); // Render the chart as SVG string. renderer.render(&chart).unwrap(); // Render the chart as PNG bytes. -renderer.render_format(ImageFormat::PNG, &chart).unwrap(); +renderer.render_format(ImageFormat::Png, &chart).unwrap(); // Save the chart as SVG file. renderer.save(&chart, "/tmp/chart.svg").unwrap(); // Save the chart as PNG file. -renderer.save_format(ImageFormat::PNG, &chart, "/tmp/chart.png"); +renderer.save_format(ImageFormat::Png, &chart, "/tmp/chart.png"); // Use WasmRenderer. The `wasm` feature needs to be enabled.