-
Notifications
You must be signed in to change notification settings - Fork 536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] XPS DrawBitMap is clipping? #1728
Comments
Hi @Jonesie, ran into this exact issue today on version 2.88.8. |
@AndreaLabeljoy Sorry for the late reply. No, we gave up on XPS and just use PDF. Ive not tried again with later versions. |
It turns out that this is a bug in the Google Skia code. It's even commented 😆:
The code alludes to It looks as though Windows does not consider the In any case, my workaround (in my own code) is going to be adding some code to find the and replace them with a much, much larger box. In short, I don't think there's much that can be done in this repo, but there is a potential workaround for those hitting this problem. |
Thats good to know. Thank you !!! |
Thanks @oatkins for the info. |
Description
Im using SkiaSharp to create an XPS (and/or PDF) document that includes images for printing. Images in PDF are correctly stretched to fit the required rect, but on XPS they seem to be clipped. My code and sample images are below.
Is this a bug or am I doing something wrong? I would have thought that the code for PDF should be identical for XPS but maybe there's extra trick or hack I need to do?
Code
Expected Behavior
Actual Behavior
Some images are clipped - it seems like small ones are ok. Maybe there is a buffer size issue or ... ?
Basic Information
Detailed IDE/OS information (click to expand)
Screenshots
Original image:
PDF:
XPS:
The text was updated successfully, but these errors were encountered: