Unpredictable graph quality

TeeChart for ActiveX, COM and ASP
Post Reply
rb79
Newbie
Newbie
Posts: 5
Joined: Sun Dec 09, 2001 5:00 am

Unpredictable graph quality

Post by rb79 » Mon Dec 08, 2003 9:28 pm

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.)

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Dec 09, 2003 4:50 pm

Have you tried using :
tchart1.Export.asGIF.ColorReduction = rmWindows256

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

rb79
Newbie
Newbie
Posts: 5
Joined: Sun Dec 09, 2001 5:00 am

Sorry. It didn't help

Post by rb79 » Tue Dec 09, 2003 6:22 pm

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

Marc
Site Admin
Site Admin
Posts: 1272
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Wed Dec 10, 2003 9:58 pm

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

rb79
Newbie
Newbie
Posts: 5
Joined: Sun Dec 09, 2001 5:00 am

Post by rb79 » Wed Dec 10, 2003 10:36 pm

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.

rb79
Newbie
Newbie
Posts: 5
Joined: Sun Dec 09, 2001 5:00 am

Post by rb79 » Thu Dec 11, 2003 4:46 am

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?

Marc
Site Admin
Site Admin
Posts: 1272
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Thu Dec 11, 2003 8:32 am

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

Post Reply