AlpacaToolsGetMetadataV1 Method

Alpaca Extension - Extracts the array metadata from in version 1 form from a byte array returned by an Alpaca device.

Definition

Namespace: ASCOM.Common.Alpaca
Assembly: ASCOM.Common (in ASCOM.Common.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public static ArrayMetadataV1 GetMetadataV1(
	this byte[] imageBytes
)

Parameters

imageBytes  Byte
The byte array from which to extract the metadata.

Return Value

ArrayMetadataV1
The metadata as a version 1 structure.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Byte. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Exceptions

InvalidOperationExceptionThe byte array is smaller than the version 1 metadata size.

Version Information

.NET Standard

Supported in: 2.0

See Also