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





data
frombyteorder

Glossary Item Box

Returns an unsigned 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 ToURational( _
   ByVal data() As System.Byte, _
   ByVal frombyteorder As BitConverterEx.ByteOrder _
) As MathEx.UFraction32
Visual Basic (Usage)Copy Code
Dim data() As System.Byte
Dim frombyteorder As BitConverterEx.ByteOrder
Dim value As MathEx.UFraction32
 
value = ExifBitConverter.ToURational(data, frombyteorder)
C# 
public static MathEx.UFraction32 ToURational( 
   System.byte[] data,
   BitConverterEx.ByteOrder frombyteorder
)
JScript 
public static function ToURational( 
   data : System.byte[],
   frombyteorder : BitConverterEx.ByteOrder
) : MathEx.UFraction32;
Managed Extensions for C++ 
public: static MathEx.UFraction32 ToURational( 
   System.byte[]* data,
   BitConverterEx.ByteOrder frombyteorder
) 
C++/CLI 
public:
static MathEx.UFraction32 ToURational( 
   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.