Thanks for the message. Sorry for not posting the code immediately due to the time difference. The essence of the code is to generate triangles on a given line dynamically based on the input file. These triangle are 3 pixel in the base and height. The problem I am having is that the slope of the triangle is not smooth (can this problem be related to my screen resolution?). Also the image does not appear to be sharp. The code runs into several hundered lines and I will put the relavant code