Hi,
Code for this task, could look like the one below. It assumes 3
seperate fields, with c, m and y values.
In the range 0-255. Adapt for your specific file format. Untested !!
Regards
Uffe Kousgaard
include "mapbasic.def"
dim obj as object
dim row as integer
Dim b_fillstyle As Brush
fetch first from mytable
row = 1
while not eot(mytable)
obj = mytable.object
b_fillstyle = makebrush(2,rgb(255-mytable.c, 255-mytable.m,
255-mytable.y),0)
alter object obj Info OBJ_INFO_BRUSH, b_fillstyle
update mytable
set object = obj
where rowid = row
fetch next from mytable
row = row+1
wend