IBitmapImplSave(Stream, NullableInt32) Method
Saves the bitmap to a stream in png format.
Namespace: Avalonia.PlatformAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
void Save(
Stream stream,
int? quality = null
)
Sub Save (
stream As Stream,
Optional quality As Integer? = Nothing
)
abstract Save :
stream : Stream *
?quality : Nullable<int>
(* Defaults:
let _quality = defaultArg quality null
*)
-> unit
Parameters
- stream Stream
- The stream.
- quality NullableInt32 (Optional)
-
The optional quality for compression if supported by the specific backend.
The quality value is interpreted from 0 - 100. If quality is null the default quality
setting of the backend is applied.