8000 CGBitmapContextCreate return NULL · Issue #71 · IFTTT/FastttCamera · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
CGBitmapContextCreate return NULL #71
Open
@wanghongli123

Description

@wanghongli123

CGBitmapInfo bitmapInfo = CGImageGetBitmapInfo(imageRef) & kCGBitmapAlphaInfoMask;

//Since iOS8 it's not allowed anymore to create contexts with unmultiplied Alpha info
if (bitmapInfo == kCGImageAlphaLast) {
    bitmapInfo = kCGImageAlphaPremultipliedLast;
}
if (bitmapInfo == kCGImageAlphaFirst) {
    bitmapInfo = kCGImageAlphaPremultipliedFirst;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0