Hi,
I am using Aspose.Slides to create a MSO chart. I wants to format the backgroud of the chart.
How can i set the background as transparent and multitoned color for chart Background and Foreground?
Thanks,
Amit
Hi,
I am using Aspose.Slides to create a MSO chart. I wants to format the backgroud of the chart.
How can i set the background as transparent and multitoned color for chart Background and Foreground?
Thanks,
Amit
Hi Amit,
Thanks for inquiring Aspose.Slides.
I have observed the requirement shared. Can you please share the requirement in the form of sample presentation so that I may observe it clearly to help you further about its possibility of implementation.
Many Thanks,
Hi,
I am attaching the image of PPTx file. If you see in chart Area then we have option to set gradient background color. How we can achieve same using Aspose Slide.
Hi Amit,
public static void test3D(){PresentationEx pres = new PresentationEx();SlideEx slide = pres.Slides[0];ChartEx chart=slide.Shapes.AddChart(ChartTypeEx.ClusteredColumn3D, 20, 20, 300, 300);chart.PlotArea.Format.Fill.FillType = FillTypeEx.Solid;
chart.PlotArea.Format.Fill.SolidFillColor.Color = Color.LightCyan;chart.PlotArea.Format.Fill.FillType = FillTypeEx.Gradient;chart.PlotArea.Format.Fill.GradientFormat.GradientShape = GradientShapeEx.Linear;
//Set the Gradient Directionchart.PlotArea.Format.Fill.GradientFormat.GradientDirection = GradientDirectionEx.FromCorner2;
//Add two Gradiant Stopschart.PlotArea.Format.Fill.GradientFormat.GradientStops.Add((float)1.0, PresetColorEx.Purple);chart.PlotArea.Format.Fill.GradientFormat.GradientStops.Add((float)0, PresetColorEx.Red);
ChartSeriesEx series = chart.ChartData.Series[0];series.Format.Effect3D.Camera.CameraType = CameraPresetTypeEx.OrthographicFront;
series.Format.Effect3D.BevelBottom.BevelType = BevelPresetTypeEx.Convex;series.Format.Effect3D.BevelBottom.Height = 10;series.Format.Effect3D.BevelTop.BevelType = BevelPresetTypeEx.Convex;series.Format.Effect3D.BevelTop.Height = 5;
pres.Write(“D:\Aspose Data\Test3d.pptx”);}
Many Thanks,
Hi,
Thanks for your reply.
But if i wants to use any HTML color code combination to set GradientStop position instead of the PresetColorEx enum. Because i am not able to get the PresetColorEx value for every HTML color code. How can i do that?
Thanks,
Amit
Hi Amit,
Color color1 = Color.FromArgb(255,255,255);shape.FillFormat.SolidFillColor.Color = System.Drawing.ColorTranslator.FromHtml("#E9E9E9");
Hi,
I am using the gradient formatting to apply in the series. But i can see the GradientDirectionEx allows only for "cornor 1 to cornor 4" but there is no option for "top","bottom". we do have these options in PPT.
Please see the attached screen shot.
Thanks,
Amit
Hi Amit,