Rendering PDF vector asset as template image doesn't color properly below PDF native size
Originator: | greg.cooksey | ||
Number: | rdar://49858605 | Date Originated: | 2019-04-12 |
Status: | Open | Resolved: | |
Product: | iOS | Product Version: | 12.2 |
Classification: | Bug | Reproducible: | Always |
Area: Core Graphics Summary: When I include a PDF asset in my app and preserve vector information, then use CoreGraphics to render it as a template with custom colors, if I render below the PDF's native size, the coloring is only applied to part of the image Steps to Reproduce: Run attached app Expected Results: Both images show the silhouette in blue on a red background Actual Results: The small image (rendered below the PDF's native size) only draws part of the foreground in blue Version/Build: iOS 11-12.2, Xcode 10.1-10.2 Configuration: I've seen this issue on every device I've tested on. As a workaround, I can render the image at the PDF's native size (72x72 in this case) and then the coloring is applied correctly.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!