←Select platform

FromDoubleTo2bFixed2bNumber Method

Summary
Converts a fractional number into a value that is consistent with any of the ICC specification formats: u16FixedU16Number or u1Fixed15Number.
Syntax
C#
VB
C++
public static int FromDoubleTo2bFixed2bNumber( 
   double number 
) 
  
Public Shared Function FromDoubleTo2bFixed2bNumber( _ 
   ByVal number As Double _ 
) As Integer 
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.

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.
Example

For an additional example, refer to IccParametricCurveTagType.

Requirements

Target Platforms

Help Version 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.ColorConversion Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.