Table: Table of UInt16, holding initial values for nodes. create CLUT with 15 grid points for 1st channel, 16 for 2nd channel and 17 for 3rd channelĭim CLUT as LCMS2StageMBS = LCMS2StageMBS.CreateStageWithCLut16bitGranular( nil, ChannelGridPoints, 3, 4, noData)ĬlutPoints: Array of UInt32 holding the number of nodes for each component. CreateStageWithCLut16bitGranular(Context as LCMS2ContextMBS, clutPoints() as UInt32, inputChan as UInt32, outputChan as UInt32) as LCMS2StageMBS.Table: Memoryblock with table of UInt16, holding initial values for nodes. CreateStageWithCLut16bitGranular(context as LCMS2ContextMBS, clutPoints() as UInt32, inputChan as UInt32, outputChan as UInt32, TableUInt16 as Memoryblock) as LCMS2StageMBS CreateStageWithCLut16bitGranular(Context as LCMS2ContextMBS, clutPoints() as UInt32, inputChan as UInt32, outputChan as UInt32, TableUInt16() as UInt16) as LCMS2StageMBS.CreateStageWithCLut16bitGranular(context as LCMS2ContextMBS, clutPoints() as UInt32, inputChan as UInt32, outputChan as UInt32, TableUInt16 as Memoryblock) as LCMS2StageMBS.Similar to CreateStageWithCLut16bit, but it allows different granularity on each CLUT dimension.ĬlutPoints: Memoryblock with array of UInt32 holding the number of nodes for each component. CreateStageWithCLut16bitGranular(Context as LCMS2ContextMBS, clutPoints() as UInt32, inputChan as UInt32, outputChan as UInt32) as LCMS2StageMBS Raises exception if values array is not empty/nil, but has wrong size. Values: array of UInt16, holding initial values for nodes. The CLUT can be initialized by specifying values in Table parameter.
fill all the data into the table upfront, RGB to CMYKįor Grid0 as Integer = 0 to 16 // 17 grid, 1st inputįor Grid1 as Integer = 0 to 16 // 17 grid, 2nd inputįor Grid2 as Integer = 0 to 16 // 17 grid, 3rd inputĭim CLUT as LCMS2StageMBS = LCMS2StageMBS.CreateStageWithCLut16bit( nil, 17, 3, 4, data)Įach dimension has same resolution. creates CLUT with 17 grid points, 3 input channels RGB and 4 output channels CMYK CreateStageWithCLut16bit(Context as LCMS2ContextMBS, GridPoints as UInt32, inputChan as UInt32, outputChan as UInt32) as LCMS2StageMBS.Raises exception if table memoryblock is not empty/nil, but has wrong size. Table: Memoryblock with a table of UInt16, holding initial values for nodes.
The recommended way is to set Table to nil and use StageSampleCLut16bit with a event, because this way the implementation is independent of the selected number of grid points. CreateStageWithCLut16bit(context as LCMS2ContextMBS, GridPoints as UInt32, inputChan as UInt32, outputChan as UInt32, TableUInt16 as Memoryblock) as LCMS2StageMBSĮach dimension has same resolution.