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!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

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;