GetDIB
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.
EX1
#include <image_utils.h> // Assume a matrix is the active window void MatrixObject_GetDIB_Ex1() { MatrixLayer ml = Project.ActiveLayer(); if(ml) { MatrixObject mo = ml.MatrixObjects(0); HDIB h = mo.GetDIB(); } else printf("Matrix window not active.\n"); }
MatrixObject::SetDIB
origin.h