Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: use CGImageAlphaInfo.noneSkipLast.rawValue instead of CGImageAlp…
…haInfo.none.rawValue

for create CGContext
  • Loading branch information
guoyingtao committed May 22, 2023
1 parent a4e19d1 commit 3882317
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Mantis/Extensions/CGImageExtensions.swift
Expand Up @@ -38,7 +38,7 @@ extension CGImage {
case (16, 5):
return CGImageAlphaInfo.noneSkipFirst.rawValue
case (24, 8), (48, 16):
return CGImageAlphaInfo.none.rawValue
return CGImageAlphaInfo.noneSkipLast.rawValue
case (32, 8), (64, 16):
return CGImageAlphaInfo.premultipliedLast.rawValue
case (32, 10):
Expand Down

0 comments on commit 3882317

Please sign in to comment.