User (Legacy) Posted September 6, 2001 Report Share Posted September 6, 2001 I just noticed a problem... when viewing images (not activex) ... the colors seem faded. Above each bar and to the right of each bar, should be the same color as the bar, not the light green color. This only happens when I use a color palette. I have attached an image & Here is my code: <!-- #include virtual="/Include/CfxIE.inc" --> <!-- #include virtual="/Include/CfxIECmds.inc" --> <HTML> <HEAD> </HEAD> <BODY> <% Set Chart1 = Server.CreateObject("ChartFX.WebServer") ' General Settings Chart1.TypeMask = &H6A90114& ' Axis Settings Chart1.RGBBk = &H1000000& Chart1.ToolColor = &H1000000& ' Title Settings Chart1.Title(2) = "" ' Color Settings Chart1.Palette = "Light Pastels" %> <%= Chart1.GetHtmlTag(578,474,"gif","Chart1") %> </BODY> </HTML> Thanks Link to comment Share on other sites More sharing options...
Software FX Posted September 6, 2001 Report Share Posted September 6, 2001 There are two things that will affect the quality of the resulting image. a) JPEG. The JPEG format is not the best one for line art because it will lose quality. Your image seems to be a JPG, if you let ChartFX select the best type of image depending on the browser (supplying "Image" as the third parameter in the GetHtmlTag) you will typically get a PNG where you don't lose any quality. You are specifying "gif" which is a format we don't support so we are defaulting to JPEG. Palletized PNGs If you know your clients will have full color displays you may want to switch your server to 16K colors (or more) and specify that you want full color images, there is a property called ImgColors that you can set to 24 to generate full color images. -- Regards, JC SoftwareFX "AB" <arden.barsamian@hostedware.com> wrote in message news:VsOt1JvNBHA.1812@webserver1.softwarefx.com... > I just noticed a problem... when viewing images (not activex) ... the colors > seem faded. Above each bar > and to the right of each bar, should be the same color as the bar, not the > light green color. > > This only happens when I use a color palette. > > I have attached an image & > > Here is my code: > > <!-- #include virtual="/Include/CfxIE.inc" --> > <!-- #include virtual="/Include/CfxIECmds.inc" --> > <HTML> > <HEAD> > </HEAD> > <BODY> > <% > Set Chart1 = Server.CreateObject("ChartFX.WebServer") > > ' General Settings > Chart1.TypeMask = &H6A90114& > > ' Axis Settings > Chart1.RGBBk = &H1000000& > Chart1.ToolColor = &H1000000& > > ' Title Settings > Chart1.Title(2) = "" > > ' Color Settings > Chart1.Palette = "Light Pastels" > %> > <%= Chart1.GetHtmlTag(578,474,"gif","Chart1") %> > </BODY> > </HTML> > > Thanks > > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.