Welcome to the Xamarin.Forms feedback portal. We’re happy you’re here! If you have feedback on how to improve the Xamarin.Forms, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
Hello,
If you assign an image to a PdfGridCell via BackgroundImage, this image is displayed distorted.
Stream imageStream = Application.Current.GetType().Assembly.GetManifestResourceStream("BusProNet.App.Resources.Icons.account-switch.png"); PdfImage image = PdfImage.FromStream(imageStream); PdfGridCellStyle gridCellStyle = new() { BackgroundImage = image }; pdfGridRow.Cells[PdfGridColumn.Nr.ToInt()].Value = ""; pdfGridRow.Cells[PdfGridColumn.Nr.ToInt()].Style = gridCellStyle; pdfGridRow.Cells[PdfGridColumn.Nr.ToInt()].ImagePosition = PdfGridImagePosition.Center;