API-referens för AI-avbildningsfunktioner i Windows App SDK
Tips
Ge feedback om dessa API:er och deras funktioner genom att skapa en ny Problem i GitHub-lagringsplatsen för Windows App SDK. (Se till att du inkluderar Imaging i rubriken!)
Lär dig mer om Windows App SDK API:er, som stöds av artificiell intelligens (AI), som både kan skala och skärpa bilder (Image Super Resolution) samt identifiera objekt i en bild (bildsegmentering).
Mer information finns i Komma igång med AI-avbildning i Windows App SDK.
Viktig
Den här funktionen är ännu inte tillgänglig. Den förväntas levereras i en kommande version av den experimentella kanalen i Windows App SDK.
Windows App SDK experimentell kanal innehåller API:er och funktioner i tidiga utvecklingsstadier. Alla API:er i den experimentella kanalen är föremål för omfattande revisioner och icke-bakåtkompatibla ändringar och kan när som helst tas bort från efterföljande versioner. De stöds inte för användning i produktionsmiljöer och appar som använder experimentella funktioner kan inte publiceras till Microsoft Store.
Microsoft.Graphics.Imaging-namnrymd
Tillhandahåller API:er för maskininlärningsmodeller som skalar och skärper bilder.
Klassen Microsoft.Graphics.Imaging.ImageBuffer
public sealed class ImageBuffer : System.IDisposable
Egenskapen för Microsoft.Graphics.Imaging.ImageBuffer.Buffer
public Windows.Storage.Streams.IBuffer Buffer { get; }
-egenskap-värde
Egenskapen Microsoft.Graphics.Imaging.ImageBuffer.BufferLength
public uint BufferLength { get; }
-egenskap-värde
Microsoft.Graphics.Imaging.ImageBuffer.Close-metod
// This member is not implemented in C#
Microsoft.Graphics.Imaging.ImageBuffer.CopyToBuffer(System.Byte[]) metoden
public void CopyToBuffer (byte[] values);
-Parametrar
-paramvärden
Microsoft.Graphics.Imaging.ImageBuffer.CreateBufferAttachedToBitmap(Windows.Graphics.Imaging.SoftwareBitmap) metod
public static Microsoft.Graphics.Imaging.ImageBuffer CreateBufferAttachedToBitmap (Windows.Graphics.Imaging.SoftwareBitmap softwareBitmap);
-Parametrar
-param softwareBitmap
-Returnerar
Microsoft.Graphics.Imaging.ImageBuffer.CreateCopyFromBitmap(Windows.Graphics.Imaging.SoftwareBitmap) metod
public static Microsoft.Graphics.Imaging.ImageBuffer CreateCopyFromBitmap (Windows.Graphics.Imaging.SoftwareBitmap softwareBitmap);
-Parametrar
-param softwareBitmap
-Returnerar
Microsoft.Graphics.Imaging.ImageBuffer.CreateFromBuffer(Windows.Storage.Streams.IBuffer,Microsoft.Graphics.Imaging.PixelFormat,System.UInt32,System.UInt32)
public static Microsoft.Graphics.Imaging.ImageBuffer CreateFromBuffer (Windows.Storage.Streams.IBuffer buffer, Microsoft.Graphics.Imaging.PixelFormat pixelFormat, uint width, uint height);
-Parametrar
-param buffert
-param pixelformat
-param bredd
-param höjd
-Returnerar
Microsoft.Graphics.Imaging.ImageBuffer.CreateFromBufferWithStride(Windows.Storage.Streams.IBuffer,Microsoft.Graphics.Imaging.PixelFormat,System.UInt32,System.UInt32,System.UInt32) metod för att skapa en bildbuffer från en buffert med steg.
public static Microsoft.Graphics.Imaging.ImageBuffer CreateFromBufferWithStride (Windows.Storage.Streams.IBuffer buffer, Microsoft.Graphics.Imaging.PixelFormat pixelFormat, uint width, uint height, uint stride);
-Parametrar
-param buffert
-param pixelformat
-param bredd
-param höjd
-param stride
-Returnerar
Microsoft.Graphics.Imaging.ImageBuffer.CreateSoftwareBitmap metod
public Windows.Graphics.Imaging.SoftwareBitmap CreateSoftwareBitmap ();
-Returnerar
Microsoft.Graphics.Imaging.ImageBuffer.Height-egenskapen
public uint Height { get; }
-egenskap-värde
Microsoft.Graphics.Imaging.ImageBuffer.#ctor(Windows.Storage.Streams.IBuffer,Microsoft.Graphics.Imaging.PixelFormat,System.UInt32,System.UInt32) konstruktor
public ImageBuffer (Windows.Storage.Streams.IBuffer buffer, Microsoft.Graphics.Imaging.PixelFormat pixelFormat, uint width, uint height);
-Parametrar
-param buffert
-param pixelformat
-param bredd
-param höjd
Egenskapen Microsoft.Graphics.Imaging.ImageBuffer.PixelFormat
public Microsoft.Graphics.Imaging.PixelFormat PixelFormat { get; }
-egenskap-värde
Microsoft.Graphics.Imaging.ImageBuffer.Width-egenskap
public uint Width { get; }
-egenskap-värde
Microsoft.Graphics.Imaging.ImageObjectExtractor-klass
public sealed class ImageObjectExtractor : System.IDisposable
Microsoft.Graphics.Imaging.ImageObjectExtractor.Close-metoden
// This member is not implemented in C#
Microsoft.Graphics.Imaging.ImageObjectExtractor.CreateWithImageBufferAsync(Microsoft.Graphics.Imaging.ImageBuffer) metod
public static Windows.Foundation.IAsyncOperation<Microsoft.Graphics.Imaging.ImageObjectExtractor> CreateWithImageBufferAsync (Microsoft.Graphics.Imaging.ImageBuffer imageBuffer);
-Parametrar
-param bildbuffert
-Returnerar
Microsoft.Graphics.Imaging.ImageObjectExtractor.CreateWithSoftwareBitmapAsync(Windows.Graphics.Imaging.SoftwareBitmap) metod
public static Windows.Foundation.IAsyncOperation<Microsoft.Graphics.Imaging.ImageObjectExtractor> CreateWithSoftwareBitmapAsync (Windows.Graphics.Imaging.SoftwareBitmap softwareBitmap);
-Parametrar
-param softwareBitmap
-Returnerar
Microsoft.Graphics.Imaging.ImageObjectExtractor.GetImageBufferObjectMask(Microsoft.Graphics.Imaging.ImageObjectExtractorHint) metod
public Microsoft.Graphics.Imaging.ImageBuffer GetImageBufferObjectMask (Microsoft.Graphics.Imaging.ImageObjectExtractorHint hint);
-Parametrar
-param tips
-Returnerar
Microsoft.Graphics.Imaging.ImageObjectExtractor.GetSoftwareBitmapObjectMask(Microsoft.Graphics.Imaging.ImageObjectExtractorHint) metod
public Windows.Graphics.Imaging.SoftwareBitmap GetSoftwareBitmapObjectMask (Microsoft.Graphics.Imaging.ImageObjectExtractorHint hint);
-Parametrar
-param tips
-Returnerar
Microsoft.Graphics.Imaging.ImageObjectExtractor.IsAvailable metod
public static bool IsAvailable ();
-Returnerar
Microsoft.Graphics.Imaging.ImageObjectExtractor.MakeAvailableAsync-metoden
public static Windows.Foundation.IAsyncOperationWithProgress<Microsoft.Windows.Management.Deployment.PackageDeploymentResult,Microsoft.Windows.Management.Deployment.PackageDeploymentProgress> MakeAvailableAsync ();
-Returnerar
Microsoft.Graphics.Imaging.ImageObjectExtractorHint-klass
public sealed class ImageObjectExtractorHint
Egenskap Microsoft.Graphics.Imaging.ImageObjectExtractorHint.ExcludePoints
public System.Collections.Generic.IReadOnlyList<Windows.Graphics.PointInt32> ExcludePoints { get; }
-egenskap-värde
Konstruktorn Microsoft.Graphics.Imaging.ImageObjectExtractorHint.#ctor(Windows.Foundation.Collections.IVector{Windows.Graphics.RectInt32},Windows.Foundation.Collections.IVector{Windows.Graphics.PointInt32},Windows.Foundation.Collections.IVector{Windows.Graphics.PointInt32})
public ImageObjectExtractorHint (System.Collections.Generic.IList<Windows.Graphics.RectInt32> includeRects, System.Collections.Generic.IList<Windows.Graphics.PointInt32> includePoints, System.Collections.Generic.IList<Windows.Graphics.PointInt32> excludePoints);
-Parametrar
-param includeRects
-param includePoints
-param excludePoints
Microsoft.Graphics.Imaging.ImageObjectExtractorHint.IncludePoints-egenskapen
public System.Collections.Generic.IReadOnlyList<Windows.Graphics.PointInt32> IncludePoints { get; }
-egenskap-värde
Egenskapen IncludeRects i Microsoft.Graphics.Imaging.ImageObjectExtractorHint
public System.Collections.Generic.IReadOnlyList<Windows.Graphics.RectInt32> IncludeRects { get; }
-egenskap-värde
Microsoft.Graphics.Imaging.ImageObjectRemover-klass
public sealed class ImageObjectRemover : System.IDisposable
Microsoft.Graphics.Imaging.ImageObjectRemover.Close method
// This member is not implemented in C#
Microsoft.Graphics.Imaging.ImageObjectRemover.CreateAsync-metoden
public static Windows.Foundation.IAsyncOperation<Microsoft.Graphics.Imaging.ImageObjectRemover> CreateAsync ();
-Returnerar
Microsoft.Graphics.Imaging.ImageObjectRemover.IsAvailable metod
public static bool IsAvailable ();
-Returnerar
Microsoft.Graphics.Imaging.ImageObjectRemover.MakeAvailableAsync metod
public static Windows.Foundation.IAsyncOperationWithProgress<Microsoft.Windows.Management.Deployment.PackageDeploymentResult,Microsoft.Windows.Management.Deployment.PackageDeploymentProgress> MakeAvailableAsync ();
-Returnerar
Microsoft.Graphics.Imaging.ImageObjectRemover.RemoveFromImageBuffer(Microsoft.Graphics.Imaging.ImageBuffer,Microsoft.Graphics.Imaging.ImageBuffer)
public Microsoft.Graphics.Imaging.ImageBuffer RemoveFromImageBuffer (Microsoft.Graphics.Imaging.ImageBuffer imageBuffer, Microsoft.Graphics.Imaging.ImageBuffer imageBufferMask);
-Parametrar
-param bildbuffert
-param imageBufferMask
-Returnerar
Microsoft.Graphics.Imaging.ImageObjectRemover.RemoveFromSoftwareBitmap(Windows.Graphics.Imaging.SoftwareBitmap,Windows.Graphics.Imaging.SoftwareBitmap)
public Windows.Graphics.Imaging.SoftwareBitmap RemoveFromSoftwareBitmap (Windows.Graphics.Imaging.SoftwareBitmap softwareBitmap, Windows.Graphics.Imaging.SoftwareBitmap softwareBitmapMask);
-Parametrar
-param softwareBitmap
-param softwareBitmapMask
-Returnerar
Klasser "Microsoft.Graphics.Imaging.ImageScaler"
public sealed class ImageScaler : System.IDisposable
Microsoft.Graphics.Imaging.ImageScaler.Close metod
// This member is not implemented in C#
Microsoft.Graphics.Imaging.ImageScaler.CreateAsync-metod
public static Windows.Foundation.IAsyncOperation<Microsoft.Graphics.Imaging.ImageScaler> CreateAsync ();
-Returnerar
Microsoft.Graphics.Imaging.ImageScaler.IsAvailable-metod
public static bool IsAvailable ();
-Returnerar
Microsoft.Graphics.Imaging.ImageScaler.MakeAvailableAsync Method
public static Windows.Foundation.IAsyncOperationWithProgress<Microsoft.Windows.Management.Deployment.PackageDeploymentResult,Microsoft.Windows.Management.Deployment.PackageDeploymentProgress> MakeAvailableAsync ();
-Returnerar
Egenskapen Microsoft.Graphics.Imaging.ImageScaler.MaxSupportedScaleFactor
public int MaxSupportedScaleFactor { get; }
-egenskap-värde
Microsoft.Graphics.Imaging.ImageScaler.ScaleImageBuffer(Microsoft.Graphics.Imaging.ImageBuffer,System.Int32,System.Int32)-metod
public Microsoft.Graphics.Imaging.ImageBuffer ScaleImageBuffer (Microsoft.Graphics.Imaging.ImageBuffer imageBuffer, int width, int height);
-Parametrar
-param bildbuffert
-param bredd
-param höjd
-Returnerar
Microsoft.Graphics.Imaging.ImageScaler.ScaleSoftwareBitmap(Windows.Graphics.Imaging.SoftwareBitmap,System.Int32,System.Int32)-metoden
public Windows.Graphics.Imaging.SoftwareBitmap ScaleSoftwareBitmap (Windows.Graphics.Imaging.SoftwareBitmap softwareBitmap, int width, int height);
-Parametrar
-param softwareBitmap
-param bredd
-param höjd
-Returnerar
Microsoft.Graphics.Imaging.PixelFormat-tillordning
public enum PixelFormat
-enum-fält
-fält Odefinierad: 0
-field Rgb24: 1
-field Argb32: 2
-field Rgba32: 3
-fält Bgra32: 4
-field Gray8: 5
Microsoft.Graphics.Imaging.SegmentationPoint struct
public struct SegmentationPoint
-strukturfält
-fälttyp
-field x
-fält y
Microsoft.Graphics.Imaging.SegmentationPointType enum-typ
public enum SegmentationPointType