AlpacaTools Class

Repository of tools and constants specific to Alpaca implementation

Definition

Namespace: ASCOM.Common.Alpaca
Assembly: ASCOM.Common (in ASCOM.Common.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
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

.NET Standard

Supported in: 2.0

See Also