PlatformImage 类

定义

public ref class PlatformImage : IDisposable, Microsoft::Maui::Graphics::IImage
public class PlatformImage : IDisposable, Microsoft.Maui.Graphics.IImage
type PlatformImage = class
    interface IImage
    interface IDrawable
    interface IDisposable
Public Class PlatformImage
Implements IDisposable, IImage
继承
PlatformImage
实现

构造函数

PlatformImage(Byte[], ImageFormat)

属性

Bytes
Height
Width

方法

Dispose()
Downsize(Single, Boolean)
Downsize(Single, Single, Boolean)
Draw(ICanvas, RectF)
FromStream(Stream, ImageFormat)
Resize(Single, Single, ResizeMode, Boolean)
Save(Stream, ImageFormat, Single)

将此图像的内容保存到提供 Stream 的对象。

SaveAsync(Stream, ImageFormat, Single)

将此图像的内容保存到提供 Stream 的对象。

ToPlatformImage()

扩展方法

AsBase64(IImage, ImageFormat, Single)
AsBytes(IImage, ImageFormat, Single)
AsBytesAsync(IImage, ImageFormat, Single)
AsPaint(IImage)
AsStream(IImage, ImageFormat, Single)

适用于