Use
pbImageBuffer to associate a buffer (that has already been allocated
by some means other than DIVE) to a DIVE buffer number. You must still
call DiveFreeImageBuffer to
free up the associated buffer and deallocate the buffer using the same means
in which it was allocated.