Class Image
Represents an Image object
Assembly: MicroGraphics.dll
View Source
public class Image
Properties
DisplayBuffer
The image pixel data
View Source
public IPixelBuffer? DisplayBuffer { get; }
Width
The image width in pixels
View Source
public int Width { get; }
Height
The image height in pixels
View Source
public int Height { get; }
BitsPerPixel
The image bits per pixel
View Source
public int BitsPerPixel { get; protected set; }
Methods
LoadFromFile(string)
Load an image from a file
View Source
public static Image LoadFromFile(string path)
Returns
Meadow.Foundation.Graphics.Image: A new image object
Parameters
Type | Name | Description |
---|---|---|
System.String | path | The file path |
Exceptions
System.IO.FileNotFoundException
Throws if the image file cannot be found
LoadFromResource(string)
Load an image from a resource
View Source
public static Image LoadFromResource(string name)
Returns
Meadow.Foundation.Graphics.Image
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The resource name |
Exceptions
System.ArgumentException
Throws if the resource cannot be found