Skip to content

Commit

Permalink
Add warning doc for export_png
Browse files Browse the repository at this point in the history
  • Loading branch information
yeahross0 authored and not-fl3 committed Jan 3, 2024
1 parent adb1e77 commit 37a762a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/texture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ impl Image {
}

/// Saves this image as a PNG file.
/// This method is not supported on web and will panic.
pub fn export_png(&self, path: &str) {
let mut bytes = vec![0; self.width as usize * self.height as usize * 4];

Expand Down

0 comments on commit 37a762a

Please sign in to comment.