GetBitmapStatisticsInfo example for C++ 5.0 and later
CString strMsg;
ILEADRasterProcess* m_pRasterProc= NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&m_pRasterProc);
m_pRasterProc->GetBitmapStatisticsInfo(m_LeadRasterView.GetRaster(), CHANNEL_MASTER, 0, 255);
strMsg.Format(TEXT("Bitmap Median : %d \n Bitmap Mean :%d \n Bitmap Min Value:%d \n\
Bitmap Max Value: %d \n Bitmap Pixels Count: %d \n Bitmap Selected Pixel Percent:%d \n\
Bitmap Standard Deviation: %d \n Bitmap Total Pixel Count: %d \n Bitmap Selected Pixel Percent:%d"),
m_pRasterProc->BitmapMedian,m_pRasterProc->BitmapMean,
m_pRasterProc->BitmapMinValue,m_pRasterProc->BitmapMaxValue,
m_pRasterProc->BitmapPixelsCount,m_pRasterProc->BitmapSelectedPixelPercent,
m_pRasterProc->BitmapStandardDeviation,m_pRasterProc->BitmapTotalPixelCount);
MessageBox(strMsg);
m_pRasterProc->Release();