共用方式為


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)

適用於