AlpacaTools Class

Repository of tools and constants specific to Alpaca implementation

Definition

Namespace: ASCOM.Common.Alpaca
Assembly: ASCOM.Common (in ASCOM.Common.dll) Version: 4.1.0+517b408ca408f7a19aace78c1509f524714a3a13
C#
public static class AlpacaTools
Inheritance
Object    AlpacaTools

Methods

ErrorMessageToByteArray Convert an Alpaca error number and message to a byte array for transfer to a client.
GetErrrorMessage Alpaca Extension - Extracts the error message from a byte array returned by an Alpaca device.
GetImageData Alpaca Extension - Returns the image data from an ImageBytes byte array.
GetMetadataV1 Alpaca Extension - Extracts the array metadata from in version 1 form from a byte array returned by an Alpaca device.
GetMetadataVersion Alpaca Extension - Returns the metadata version in use within the byte array presentation of an image array.
ToByteArray(Array, Int32, UInt32, UInt32, AlpacaErrors, String) Alpaca Extension - Convert the array or error message to a byte array for transmission to a client
ToByteArray(Array, Int32, UInt32, UInt32, ImageArrayElementTypes, AlpacaErrors, String) Alpaca Extension - Convert the array or error message to a byte array for transmission to a client
ToImageArray Alpaca Extension - Convert a byte array to a 2D or 3D mage array based on the array metadata.

Fields

ARRAY_METADATA_VERSION Latest version number of the ImageBytes metadata array
ARRAY_METADATAV1_LENGTH Length of array metadata version 1

Version Information

Supported in: .NET Standard 2.0, .NET 8 .NET 9. .NET 10

See Also