ImageCompress Method |
Compresses the image to use less memory. Can not directly access pixel data while the image is compressed. Returns error if the chosen compression mode is not available. See ImageCompressMode and ImageCompressSource constants.
Namespace: Godot
public Error Compress( ImageCompressMode mode, ImageCompressSource source, float lossyQuality )
[Missing <param name="mode"/> documentation for "M:Godot.Image.Compress(Godot.Image.CompressMode,Godot.Image.CompressSource,System.Single)"]
[Missing <param name="source"/> documentation for "M:Godot.Image.Compress(Godot.Image.CompressMode,Godot.Image.CompressSource,System.Single)"]
[Missing <param name="lossyQuality"/> documentation for "M:Godot.Image.Compress(Godot.Image.CompressMode,Godot.Image.CompressSource,System.Single)"]
[Missing <returns> documentation for "M:Godot.Image.Compress(Godot.Image.CompressMode,Godot.Image.CompressSource,System.Single)"]