Page 1 of 1

Unpredictable graph quality

Posted: Mon Dec 08, 2003 9:28 pm
by 6920710
Please check these 2 similar images:
http://www32.brinkster.com/rajneeshbanyal/badimage.gif
http://www32.brinkster.com/rajneeshbanyal/goodimage.gif

The same code is used to generate the two files . How can I fix the first image's properties in VB code to always display like the second image?

FYI: I am using TeeChart Pro ActiveX 5.
Also the images have different sizes.

(Please copy the image URLs to Browser window. Brinkster problem.)

Posted: Tue Dec 09, 2003 4:50 pm
by Pep
Have you tried using :
tchart1.Export.asGIF.ColorReduction = rmWindows256

Josep Lluis Jorge
http://support.steema.com

Sorry. It didn't help

Posted: Tue Dec 09, 2003 6:22 pm
by 6920710
strFile = "currentratio" & lReportID & ".gif"
strFileName = sDir & strFile

moChart.Export.asGIF.ColorReduction = rmWindows256
moChart.Export.asGIF.SaveToFile strFileName

This is the code. Does it need any more adjustments? Tried changing the ColorReduction through many values. The dots are still there.

The ugly image with dots is generated using some data by a VB application using a dll on a web server.

The good image is generated by an ASP page (same code as in the VB application) using the same data and the same dll (on the same server).

Why would same code and data generate different looking images that too with a little different sizes :?:

FYI: Another weird thing. Both the VB app and the ASP code on a separate server generate ugly dotted images.

Please let me know if you need more details. Been trying to fix this since 3 days and need it fixed urgently.

Thanks
Raj

Posted: Wed Dec 10, 2003 9:58 pm
by Marc
Hello Raj,

This may be due to the graphics card on the server that is generating the Chart images. If the graphics card has a low colour specification TeeChart’s use of colour is limited too. There may be a software solution though I’m not sure what that may be at the moment. If the problem is due to the Graphics card a sure solution would be to upgrade the card on the server.

Best regards,
Marc Meumann
Steema Support

Posted: Wed Dec 10, 2003 10:36 pm
by 6920710
This means the graphics card is givng correct charts for one application and wrong for the other though both access the same dll that draws the same chart.

Posted: Thu Dec 11, 2003 4:46 am
by 6920710
I was able to find a workaround by using :

moChart.Series(0).Add dblThis, gsCurrentPeriod, vbBlue

instead of this

moChart.Series(0).Add dblThis, gsCurrentPeriod, RGB( 116, 121, 212)

This means that the RGB palette is not working correctly?

Posted: Thu Dec 11, 2003 8:32 am
by Marc
Hello,

Ok, I may have misunderstood, I thought that all applications on the same server were behaving in the same way. That not being the case, you do have a workaround at least, I'm unaware of what other factors may explain the differences of palette between one application and another on the same machine.

Regards,
Marc Meumann
Steema Support