Available in the LEADTOOLS Imaging toolkit. |
ClientToBitmap example for C++ 4.0 and later
void CMfcClientToBitmapDlg::OnMouseDownLeadctrl1(short Button, short Shift, long x, long y)
{
float BitmapX;
float BitmapY;
BitmapX = (float)x;
BitmapY = (float)y;
m_LEAD1.ClientToBitmap(BitmapX, BitmapY);
//Change that pixel to White
m_LEAD1.SetPixel(m_LEAD1.GetConvertX(),
m_LEAD1.GetConvertY(),
RGB(255,255,255));
}