Skip to content

CGBitmapContextCreate is error ,can't use like this #2688

Description

@carbonZhao

CGContextRef imageContext = CGBitmapContextCreate(imageData, (size_t)subimageRect.size.width, (size_t)subimageRect.size.height, 8, (size_t)subimageRect.size.width * 4, genericRGBColorspace, kCGBitmapByteOrderDefault | kCGImageAlphaPremultipliedLast);

the last params is wrong!

what is 'kCGBitmapByteOrderDefault | kCGImageAlphaPremultipliedLast) '?

the last params is CGBitmapInfo type!!!!!!!!

what a fuck!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions