Get the handle to the Device Independent Bitmap that represents the current data. The handle returned is not a copy. It is the same handle used by the MatrixObject.
HDIB GetDIB( LPCSTR lpcszName = NULL, BOOL bCvtDataIfNoImage = TRUE, DWORD dwOptions = 0 )
Return a handle to the Device Independent Bitmap on successful exit and NULL on failure.
// Assume a matrix is the active window
MatrixLayer ml = Project.ActiveLayer();
MatrixObject mo = ml.MatrixObjects(0);
HDIB h = mo.GetDIB();
printf("Matrix window not active.\n");