Leadtools.ColorConversion Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.5.7
FromDoubleTo2bFixed2bNumber Method
See Also 
Leadtools.ColorConversion Namespace > IccTools Class : FromDoubleTo2bFixed2bNumber Method




number
A fractional value.
Converts a fractional number into a value that is consistent with any of the ICC specification formats: u16FixedU16Number or u1Fixed15Number.

Syntax

Visual Basic (Declaration) 
Public Shared Function FromDoubleTo2bFixed2bNumber( _
   ByVal number As Double _
) As Integer
Visual Basic (Usage)Copy Code
Dim number As Double
Dim value As Integer
 
value = IccTools.FromDoubleTo2bFixed2bNumber(number)
C# 
public static int FromDoubleTo2bFixed2bNumber( 
   double number
)
Managed Extensions for C++ 
public: static int FromDoubleTo2bFixed2bNumber( 
   double number
) 
C++/CLI 
public:
static int FromDoubleTo2bFixed2bNumber( 
   double number
) 

Parameters

number
A fractional value.

Return Value

A value that is consistent with any of the ICC specification formats: u16FixedU16Number or u1Fixed15Number.

Example

For an additional example, refer to IccParametricCurveTagType.

Remarks

The ICC specification formats (u16FixedU16Number and u1Fixed15Number) consist of a 4-bytes value that have its first 2-bytes as the fixed part of the number, and the second 2-bytes as the fractional part of the number.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also