We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f694f5 commit c2ea51aCopy full SHA for c2ea51a
Sources/Mantis/Extensions/CGImageExtensions.swift
@@ -89,7 +89,8 @@ extension CGImage {
89
/* Convert a 10-bit image to a 16-bit image to preserve accuracy.
90
Since we haven't successfully created a 10-bit image CGContext yet, we're temporarily using this method.
91
*/
92
- if (32, 10) == (bitsPerPixel, bitsPerComponent) {
+ if (32, 10) == (bitsPerPixel, bitsPerComponent)
93
+ || (48, 16) == (bitsPerPixel, bitsPerComponent) {
94
actualBitsPerComponent = 16
95
actualBitmapBytesPerRow = Int(round(size.width)) * 8
96
}
0 commit comments