ImageMan.Net Version 3 Summer 2012 Release
ToSRational Method
See Also  Send Feedback
DTI.ImageMan.Metadata.Exif Namespace > ExifBitConverter Class : ToSRational Method





data
frombyteorder

Glossary Item Box

Returns a signed rational number converted from the first eight bytes of the given byte array. The first four bytes are assumed to be the numerator and the next four bytes are the denumerator. Numbers are converted from the given byte-order to platform byte-order.

Syntax

Visual Basic (Declaration) 
Public Shared Function ToSRational( _
   ByVal data() As System.Byte, _
   ByVal frombyteorder As BitConverterEx.ByteOrder _
) As MathEx.Fraction32
Visual Basic (Usage)Copy Code
Dim data() As System.Byte
Dim frombyteorder As BitConverterEx.ByteOrder
Dim value As MathEx.Fraction32
 
value = ExifBitConverter.ToSRational(data, frombyteorder)
C# 
public static MathEx.Fraction32 ToSRational( 
   System.byte[] data,
   BitConverterEx.ByteOrder frombyteorder
)
JScript 
public static function ToSRational( 
   data : System.byte[],
   frombyteorder : BitConverterEx.ByteOrder
) : MathEx.Fraction32;
Managed Extensions for C++ 
public: static MathEx.Fraction32 ToSRational( 
   System.byte[]* data,
   BitConverterEx.ByteOrder frombyteorder
) 
C++/CLI 
public:
static MathEx.Fraction32 ToSRational( 
   System.array<byte>^ data,
   BitConverterEx.ByteOrder frombyteorder
) 

Parameters

data
frombyteorder

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.