ImageMan.Net Version 3 Summer 2012 Release
ToInt16(Byte[],Int32,ByteOrder,ByteOrder) Method
See Also  Send Feedback
DTI.ImageMan.Metadata.Exif Namespace > BitConverterEx Class > ToInt16 Method : ToInt16(Byte[],Int32,ByteOrder,ByteOrder) Method





value
startIndex
from
to

Glossary Item Box

Converts the given array of bytes to a 16-bit signed integer.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function ToInt16( _
   ByVal value() As System.Byte, _
   ByVal startIndex As System.Integer, _
   ByVal from As BitConverterEx.ByteOrder, _
   ByVal to As BitConverterEx.ByteOrder _
) As System.Short
Visual Basic (Usage)Copy Code
Dim value() As System.Byte
Dim startIndex As System.Integer
Dim from As BitConverterEx.ByteOrder
Dim to As BitConverterEx.ByteOrder
Dim value As System.Short
 
value = BitConverterEx.ToInt16(value, startIndex, from, to)
C# 
public static System.short ToInt16( 
   System.byte[] value,
   System.int startIndex,
   BitConverterEx.ByteOrder from,
   BitConverterEx.ByteOrder to
)
JScript 
public static function ToInt16( 
   value : System.byte[],
   startIndex : System.int,
   from : BitConverterEx.ByteOrder,
   to : BitConverterEx.ByteOrder
) : System.short;
Managed Extensions for C++ 
public: static System.short ToInt16( 
   System.byte[]* value,
   System.int startIndex,
   BitConverterEx.ByteOrder from,
   BitConverterEx.ByteOrder to
) 
C++/CLI 
public:
static System.short ToInt16( 
   System.array<byte>^ value,
   System.int startIndex,
   BitConverterEx.ByteOrder from,
   BitConverterEx.ByteOrder to
) 

Parameters

value
startIndex
from
to

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2014 Data Techniques, Inc. All Rights Reserved.