How to use AddArrayXYZ method in color grid
Posted: Fri Dec 20, 2013 11:19 pm
Hi,
I am using colorgrid for mapping with C#. xCoordinate, yCoordinate are coordinate array ,zValue is the value of x-y, c is different colors , programme is :
TChart2.Series(0).asColorGrid.IrregularGrid = true
for (int i = 0; i < MyDb.zValue.Length; i++)
{
UInt32 c = MyDb.allocate(MyDb.zValue);
TChart2.Series(0).asColorGrid.AddXYZ(xCoordinate, zValue, yCoordinate, "", c);
}
sometimes I can work out images,but sometimes I cannot, see attached. I checked the original data of black color in images, the color should not be black.I wonder if data are large(about 50000 records)
Now if I use addarrayXYZ(x,z,y) to replace addxyz to finish the same task. z represents color, how I define z in c#?
thanks,
I am using colorgrid for mapping with C#. xCoordinate, yCoordinate are coordinate array ,zValue is the value of x-y, c is different colors , programme is :
TChart2.Series(0).asColorGrid.IrregularGrid = true
for (int i = 0; i < MyDb.zValue.Length; i++)
{
UInt32 c = MyDb.allocate(MyDb.zValue);
TChart2.Series(0).asColorGrid.AddXYZ(xCoordinate, zValue, yCoordinate, "", c);
}
sometimes I can work out images,but sometimes I cannot, see attached. I checked the original data of black color in images, the color should not be black.I wonder if data are large(about 50000 records)
Now if I use addarrayXYZ(x,z,y) to replace addxyz to finish the same task. z represents color, how I define z in c#?
thanks,