Skip to main content

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.

ParameterTypeDescription
streamStream

Returns Image

Save(Stream stream, ImageFormat format)

public void Save(Stream stream, ImageFormat format)

No description available.

ParameterTypeDescription
streamStream
formatImageFormat

Dispose(bool disposing)

protected virtual void Dispose(bool disposing)

Closes a response stream, if present. (inherited)

ParameterTypeDescription
disposingboolNot 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.

ParameterTypeDescription
xint
yint
colorColor

GetPixel(int x, int y)

public virtual Color GetPixel(int x, int y)

No description available.

ParameterTypeDescription
xint
yint

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.

ParameterTypeDescription
xint
yint
widthint
heightint

Returns byte[]

MakeTransparent(Color color)

public void MakeTransparent(Color color)

No description available.

ParameterTypeDescription
colorColor