summaryrefslogtreecommitdiffstats
path: root/o3d/core/cross/bitmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'o3d/core/cross/bitmap.h')
-rw-r--r--o3d/core/cross/bitmap.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/o3d/core/cross/bitmap.h b/o3d/core/cross/bitmap.h
index 5bd3687..a86b76a 100644
--- a/o3d/core/cross/bitmap.h
+++ b/o3d/core/cross/bitmap.h
@@ -242,13 +242,10 @@ class Bitmap : public ParamObject {
// from a flippable format back to a DXT format.
void FlipVertically();
- // Saves to a PNG file. The image must be of the ARGB8 format, be a 2D image
- // with no mip-maps (only the base level).
- // Parameters:
- // filename: the name of the file to into.
+ // Returns the contents of the bitmap as a data URL
// Returns:
- // true if successful.
- bool SaveToPNGFile(const char* filename);
+ // A data url that represents the content of the bitmap.
+ String ToDataURL();
// Checks that the alpha channel for the entire bitmap is 1.0
bool CheckAlphaIsOne() const;