How to fill a vImage buffer with a color - Cocoa Objective C

206 Views Asked by At

I want to fill an VImage buffer with black color. I have found that using vImageBufferFill_ARGB8888(<#const vImage_Buffer *dest#>, <#const uint8_t *color#>, <#vImage_Flags flags#>) I can fill the buffer but I am not sure how to pass the color information. I am new to Mac development and All I know are NSColor or CGColor but this method need to pass in the color info in const uint8_t format which I assume is a reference. Could someone help me with an example as I couldn't find one for Objective C anywhere.

0

There are 0 best solutions below