Skip to main content

Class Image

Represents an Image object

Assembly: MicroGraphics.dll​
View Source​
Declaration
public class Image

Properties​

DisplayBuffer​

The image pixel data

View Source​
Declaration
public IPixelBuffer? DisplayBuffer { get; }

Width​

The image width in pixels

View Source​
Declaration
public int Width { get; }

Height​

The image height in pixels

View Source​
Declaration
public int Height { get; }

BitsPerPixel​

The image bits per pixel

View Source​
Declaration
public int BitsPerPixel { get; protected set; }

Methods​

LoadFromFile(string)​

Load an image from a file

View Source​
Declaration
public static Image LoadFromFile(string path)
Returns​

Meadow.Foundation.Graphics.Image: A new image object

Parameters​
TypeNameDescription
System.StringpathThe file path
Exceptions​

System.IO.FileNotFoundException
Throws if the image file cannot be found

LoadFromResource(string)​

Load an image from a resource

View Source​
Declaration
public static Image LoadFromResource(string name)
Returns​

Meadow.Foundation.Graphics.Image

Parameters​
TypeNameDescription
System.StringnameThe resource name
Exceptions​

System.ArgumentException
Throws if the resource cannot be found

LoadFromStream(Stream)​

Load an image from a Stream

View Source​
Declaration
public static Image LoadFromStream(Stream stream)
Returns​

Meadow.Foundation.Graphics.Image

Parameters​
TypeNameDescription
System.IO.StreamstreamThe resource stream