GetBufferPointer method
Provides direct access to the ICanvasPixelArray RGBA buffer from native code (such as an ActiveX control, Browser Helper Object (BHO), or WebBrowser control (WebOC) host).
Syntax
HRESULT retVal = object.GetBufferPointer(ppBuffer, pBufferLength);
Parameters
ppBuffer [out]
Type: BYTEAddress of a pointer to the ICanvasPixelArray RGBA buffer.
pBufferLength [out]
Type: unsigned longLength of buffer in bytes.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
This interface provides access to the ICanvasPixelArray data for COM-based code. JavaScript code can access the ICanvasPixelArray object using array syntax.