BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
Hi,
I have some Text that I am finding on the slides and I need to set it's Alpha to 0.75 if I can.
This is my current attempt but it's not setting the Alpha just the Color.
//Update the Colour of the E3 1st Score to the alpha color
ITextPart E3Text = pptxDoc.Find("XXXXXX", true, true).GetAsOneTextPart();
E3Text.Font.Color = Syncfusion.Presentation.ColorObject.FromArgb(40, 255, 103, 0);
Thanks
Cliff
Cliff, we have confirmed that the reported issue
with “Alpha value is not applied properly in font color” is a defect and
we have logged a defect report. We will include the fix for this defect in our
weekly NuGet release, which is estimated to be available on two weeks. We
will let you know once the fix is included in the weekly release.
The status of this bug can be tracked through the below link:
https://www.syncfusion.com/feedback/41040/alpha-value-is-not-applied-properly-in-font-color
Disclaimer: Inclusion of this solution in the weekly release may change
due to other factors including but not limited to QA checks and works
reprioritization.
However, we suggest you to use the below workaround solution until we solve
this problem.
//Opens an existing presentation. using (IPresentation pptxDoc = Presentation.Open("Input.pptx")) { //Gets the first shape from the first slide IShape shape = pptxDoc.Slides[0].Shapes[0] as IShape; //Gets the first text part from the shape ITextPart textPart = shape.TextBody.Paragraphs[0].TextParts[0]; textPart.Font.Color.SystemColor = Color.FromArgb(255 - 40, 255, 0, 0); //Saves the Presentation pptxDoc.Save("Output.pptx"); } |
Cliff, as promised
earlier, we have included the fix for the reported issue with “Alpha value
is not applied properly in font color” in our latest weekly NuGet release (v20.4.0.52).
Please use
the below link to download our latest weekly NuGet:
https://www.nuget.org/packages/Syncfusion.Presentation.NET/20.4.0.52
The status
of this bug task can be tracked through the below link:
https://www.syncfusion.com/feedback/41040/alpha-value-is-not-applied-properly-in-font-color
Note: We will include
this fix in our 2023 Volume 1 Main Release which will be available in mid of March
2023.