MIL_ID LutBufId, | //in |
MIL_INT StartIndex, | //in |
MIL_DOUBLE StartValue, | //in |
MIL_INT EndIndex, | //in |
MIL_DOUBLE EndValue | //in |
This function generates a ramp, inverse ramp, or a constant in the specified LUT buffer region (StartIndex to EndIndex). The increment between LUT entries is the difference between StartValue and EndValue, divided by the number of entries.
If you need to generate a more complex LUT, use MgenLutFunction() or generate the values with your Host system and load them into a MIL LUT buffer, using MbufPut1d() or MbufPutColor().
Specifies the identifier of the LUT in which to generate values. This parameter must be given a valid LUT buffer identifier. Allocate a LUT buffer, using MbufAlloc1d() or MbufAllocColor().
Specifies the first LUT index entry for which to generate values. StartIndex must be less than or equal to EndIndex.
Specifies the extreme value from which the increment is calculated; that is, the first LUT entry.
Specifies the last LUT index entry for which to generate values. EndIndex must be greater than or equal to StartIndex.
Specifies the extreme value from which the increment is calculated; that is, the last LUT entry. If both StartValue and EndValue are the same, the entire LUT range is filled with this value. If EndValue is smaller than StartValue, an inverse ramp is generated. These parameters accept only integer values, except when using a floating-point LUT buffer.
Header | Include mil.h. |
Library | Use mil.lib. |
DLL | Requires mil.dll. |