Image Class
Namespace: System.Drawing · Assembly: GHIElectronics.TinyCLR.Drawing
Abstract base for raster images. Concrete subclass: Bitmap.
public abstract class Image : MarshalByRefObject, ICloneable, IDisposable
Properties
Width
public int Width { get; }
Column width in pixels. (inherited)
Height
public int Height { get; }
Frame height in pixels. (inherited)
Methods
Clone()
public object Clone()
Creates a new object that is a copy of the current instance. (inherited)
Returns object
FromStream(Stream stream)
public static Image FromStream(Stream stream)
No description available.
| Parameter | Type | Description |
|---|---|---|
stream | Stream |
Returns Image
Save(Stream stream, ImageFormat format)
public void Save(Stream stream, ImageFormat format)
No description available.
| Parameter | Type | Description |
|---|---|---|
stream | Stream | |
format | ImageFormat |
Dispose(bool disposing)
protected virtual void Dispose(bool disposing)
Closes a response stream, if present. (inherited)
| Parameter | Type | Description |
|---|---|---|
disposing | bool | Not used. |
Dispose()
public void Dispose()
Releases buffered memory (the unmanaged firmware/application buffers). (inherited)
SetPixel(int x, int y, Color color)
public virtual void SetPixel(int x, int y, Color color)
No description available.
| Parameter | Type | Description |
|---|---|---|
x | int | |
y | int | |
color | Color |
GetPixel(int x, int y)
public virtual Color GetPixel(int x, int y)
No description available.
| Parameter | Type | Description |
|---|---|---|
x | int | |
y | int |
Returns Color
GetBitmap()
public byte[] GetBitmap()
No description available.
Returns byte[]
GetBitmap(int x, int y, int width, int height)
public byte[] GetBitmap(int x, int y, int width, int height)
No description available.
| Parameter | Type | Description |
|---|---|---|
x | int | |
y | int | |
width | int | |
height | int |
Returns byte[]
MakeTransparent(Color color)
public void MakeTransparent(Color color)
No description available.
| Parameter | Type | Description |
|---|---|---|
color | Color |