Function

IOSurfaceGetWidth

Returns the width of the IOSurface buffer in pixels.

Declaration

size_t IOSurfaceGetWidth(IOSurfaceRef buffer);

Return Value

Returns 0 if buffer is invalid.