Function

IOSurfaceGetElementWidth

Returns the width (in pixels) of each element in a particular buffer.

Declaration

size_t IOSurfaceGetElementWidth(IOSurfaceRef buffer);

Return Value

Returns 0 if buffer is invalid.