Click or drag to resize

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
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Error Compress(
	ImageCompressMode mode,
	ImageCompressSource source,
	float lossyQuality
)

Parameters

mode
Type: GodotImageCompressMode

[Missing <param name="mode"/> documentation for "M:Godot.Image.Compress(Godot.Image.CompressMode,Godot.Image.CompressSource,System.Single)"]

source
Type: GodotImageCompressSource

[Missing <param name="source"/> documentation for "M:Godot.Image.Compress(Godot.Image.CompressMode,Godot.Image.CompressSource,System.Single)"]

lossyQuality
Type: SystemSingle

[Missing <param name="lossyQuality"/> documentation for "M:Godot.Image.Compress(Godot.Image.CompressMode,Godot.Image.CompressSource,System.Single)"]

Return Value

Type: Error

[Missing <returns> documentation for "M:Godot.Image.Compress(Godot.Image.CompressMode,Godot.Image.CompressSource,System.Single)"]

See Also