I would like to get the pixels color of TImage in BCB.
So, I found all win32 and method of TImage,
it was the only method GetDIBits.
Part of the program is:
HDC hDC = Image->Canvas->Handle;
HBITMAP hBitmap = CreateCompatibleBitmap(hDC,400,400);
int kk= GetDIBits(hDC,
Edit1->Text = IntToStr(kk);
But the above kk is zero,the method can't work.
Hope any help.
The another method is that usimg for loop we move
the Image->Canvas->Pixels to lpBuf.
Have any other method?