Platforms to show: All Mac Windows Linux Cross-Platform

Back to CVPixelBufferMBS class.

CVPixelBufferMBS.PixelBufferWithCGImage(CGImage as Variant) as CVPixelBufferMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a pixel buffer for a CGImage by making a copy of the picture.

Image parameter must be a CGImageMBS object.
For Carbon and Cocoa.
Returns nil on any error.

CVPixelBufferMBS.PixelBufferWithHandle(Handle as Integer) as CVPixelBufferMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 19.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates pixel buffer object with handle.

Handle must be a CVPixelBufferRef, which we retain.

CVPixelBufferMBS.PixelBufferWithPicture(pic as picture) as CVPixelBufferMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a pixel buffer for a picture by making a copy of the picture.
Example
Var p as new Picture(300, 200)
Var b as CVPixelBufferMBS = CVPixelBufferMBS.PixelBufferWithPicture(p)
MsgBox str(b.Width)+" x "+str(b.Height)

For Carbon and Cocoa.
Returns nil on any error.

The items on this page are in the following plugins: MBS AVFoundation Plugin.


The biggest plugin in space...