Dela via


MLImage Class

Definition

Provide interfaces for imaging operations.

public sealed class MLImage : IDisposable
type MLImage = class
    interface IDisposable
Public NotInheritable Class MLImage
Implements IDisposable
Inheritance
MLImage
Implements

Properties

BitsPerPixel

Gets how many bits per pixel used by current image object.

GetBGRPixels
Height

Gets the image height in pixels.

PixelFormat

Gets the pixel format for this Image.

Pixels

Gets the image pixel data.

Tag

Gets or sets the image tag.

Width

Gets the image width in pixels.

Methods

CreateFromFile(String)

Create a new MLImage instance from a stream.

CreateFromPixels(Int32, Int32, MLPixelFormat, ReadOnlySpan<Byte>)

Creates MLImage object from the pixel data span.

CreateFromStream(Stream)

Create a new MLImage instance from a stream.

Dispose()

Disposes the image.

Save(String)

Save the current image to a file.

Applies to