Interface IBitmap
- Namespace
- Splat
- Assembly
- Splat.Drawing.dll
Represents a bitmap image that was loaded via a ViewModel. Every platform provides FromNative and ToNative methods to convert this object to the platform-specific versions.
public interface IBitmap : IDisposable
- Inherited Members
- Extension Methods
Properties
Height
Gets the height in pixel units (depending on platform).
float Height { get; }
Property Value
Width
Gets the width in pixel units (depending on platform).
float Width { get; }
Property Value
Methods
Save(CompressedBitmapFormat, float, Stream)
Saves an image to a target stream.
Task Save(CompressedBitmapFormat format, float quality, Stream target)
Parameters
format
CompressedBitmapFormatThe format to save the image in.
quality
floatIf JPEG is specified, this is a quality factor between 0.0 and 1.0f where 1.0f is the best quality.
target
StreamThe target stream to save to.
Returns
- Task
A signal indicating the Save has completed.