MonobjcMonobjc Documented Class Library
CreateWithBytes Method (allocator, width, height, pixelFormatType, baseAddress, bytesPerRow, releaseCallback, releaseRefCon, pixelBufferAttributes, pixelBufferOut)
NamespacesMonobjc.QuartzCoreCVPixelBufferCreateWithBytes(IntPtr, NSUInteger, NSUInteger, UInt32, IntPtr, NSUInteger, IntPtr, IntPtr, NSDictionary, IntPtr)

Creates a pixel buffer for a given size and pixel format containing data specified by a memory location.

Original signature is 'CVReturn CVPixelBufferCreateWithBytes ( CFAllocatorRef allocator, size_t width, size_t height, OSType pixelFormatType, void *baseAddress, size_t bytesPerRow, CVPixelBufferReleaseBytesCallback releaseCallback, void *releaseRefCon, CFDictionaryRef pixelBufferAttributes, CVPixelBufferRef *pixelBufferOut );'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static int CreateWithBytes(
	IntPtr allocator,
	NSUInteger width,
	NSUInteger height,
	uint pixelFormatType,
	IntPtr baseAddress,
	NSUInteger bytesPerRow,
	IntPtr releaseCallback,
	IntPtr releaseRefCon,
	NSDictionary pixelBufferAttributes,
	IntPtr pixelBufferOut
)
Public Shared Function CreateWithBytes ( _
	allocator As IntPtr, _
	width As NSUInteger, _
	height As NSUInteger, _
	pixelFormatType As UInteger, _
	baseAddress As IntPtr, _
	bytesPerRow As NSUInteger, _
	releaseCallback As IntPtr, _
	releaseRefCon As IntPtr, _
	pixelBufferAttributes As NSDictionary, _
	pixelBufferOut As IntPtr _
) As Integer
public:
static int CreateWithBytes(
	IntPtr allocator, 
	NSUInteger width, 
	NSUInteger height, 
	unsigned int pixelFormatType, 
	IntPtr baseAddress, 
	NSUInteger bytesPerRow, 
	IntPtr releaseCallback, 
	IntPtr releaseRefCon, 
	NSDictionary^ pixelBufferAttributes, 
	IntPtr pixelBufferOut
)
Parameters
allocator (IntPtr)
MISSING
width (NSUInteger)
MISSING
height (NSUInteger)
MISSING
pixelFormatType (UInt32)
MISSING
baseAddress (IntPtr)
MISSING
bytesPerRow (NSUInteger)
MISSING
releaseCallback (IntPtr)
MISSING
releaseRefCon (IntPtr)
MISSING
pixelBufferAttributes (NSDictionary)
MISSING
pixelBufferOut (IntPtr)
MISSING
Return Value
A Core Video result code. See Core Video Constants Reference for possible values.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)