diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-09-19 21:55:35 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-09-19 21:55:35 +0800 |
commit | e31b0b8b37ae52e9402dc351e5fb0f361d30d0e0 (patch) | |
tree | cf75c502008d25a5dfd7c372d147258859e76e64 | |
parent | 9115718978a09376a930b8aab057a4e47fd6c522 (diff) | |
download | cru-main.tar.gz cru-main.tar.bz2 cru-main.zip |
-rw-r--r-- | demos/Graphics/DrawCircle.cpp | 2 | ||||
-rw-r--r-- | demos/Graphics/SvgPath.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/demos/Graphics/DrawCircle.cpp b/demos/Graphics/DrawCircle.cpp index db63c7dc..d3246527 100644 --- a/demos/Graphics/DrawCircle.cpp +++ b/demos/Graphics/DrawCircle.cpp @@ -21,7 +21,7 @@ int main() { painter->EndDraw(); } - cru::io::CFileStream file_stream("draw-circle-demo.png", "w"); + cru::io::CFileStream file_stream("draw-circle-demo.png", "wb"); graphics_factory->GetImageFactory()->EncodeToStream( image.get(), &file_stream, cru::platform::graphics::ImageFormat::Png, diff --git a/demos/Graphics/SvgPath.cpp b/demos/Graphics/SvgPath.cpp index 44524d77..332456a8 100644 --- a/demos/Graphics/SvgPath.cpp +++ b/demos/Graphics/SvgPath.cpp @@ -31,7 +31,7 @@ M6.5 0a.5.5 0 0 0 0 1H7v1.07a7.001 7.001 0 0 0-3.273 12.474l-.602.602a.5.5 0 0 0 painter->FillGeometry(geometry.get(), brush.get()); painter->EndDraw(); - cru::io::CFileStream file_stream("./svg-path-demo.png", "w"); + cru::io::CFileStream file_stream("./svg-path-demo.png", "wb"); graphics_factory->GetImageFactory()->EncodeToStream( image.get(), &file_stream, cru::platform::graphics::ImageFormat::Png, |