Characteristic Locus
Inheritance object > Image
Inherited Members object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString()
Namespace Meadow.Foundation.Graphics
Assembly MicroGraphics.dll

Syntax

public class Image

Properties

BitsPerPixel

The image bits per pixel

Declaration
public int BitsPerPixel { get; protected set; }

Property Value

Type Description
int

DisplayBuffer

The image pixel data

Declaration
public IPixelBuffer? DisplayBuffer { get; }

Property Value

Type Description
IPixelBuffer

Height

The image height in pixels

Declaration
public int Height { get; }

Property Value

Type Description
int

Width

The image width in pixels

Declaration
public int Width { get; }

Property Value

Type Description
int

Methods

LoadFromFile(string)

Load an image from a file

Declaration
public static Image LoadFromFile(string path)

Parameters

Type Name Description
string path

The file path

Returns

Type Description
Image

A new image object

Exceptions

Type Condition
FileNotFoundException

Throws if the image file cannot be found

LoadFromResource(string)

Load an image from a resource

Declaration
public static Image LoadFromResource(string name)

Parameters

Type Name Description
string name

The resource name

Returns

Type Description
Image

Exceptions

Type Condition
ArgumentException

Throws if the resource cannot be found