|
안녕하세요~ ㅡㅡ; VC++에서는 잘 되는데... Borland에서는 왜 안되는건지...
Borland고수님들의 조언 좀 듣고 싶습니다..
for(int l = 0; l < 256*3l++)
{
pBarBits[l] = l;
pBarBits[l+1] = l
pBarBits[l+2] = l
}
해서 값 세팅하구요...
BITMAPINFO bi;
bi.bmiHeader.biSize = 256;
bi.bmiHeader.biWidth = 1;
bi.bmiHeader.biHeight = 256;
bi.bmiHeader.biPlanes = 1;
bi.bmiHeader.biBitCount = 24;
bi.bmiHeader.biCompression = BI_RGB;
bi.bmiHeader.biSizeImage = 256*3;
bi.bmiHeader.biXPelsPerMeter = 0;
bi.bmiHeader.biYPelsPerMeter = 0;
bi.bmiHeader.biClrUsed = 0;
bi.bmiHeader.biClrImportant = NULL;
요렇게 비트맵정보 셋팅하구요...
StretchDIBits(Image2->Canvas->Handle , 0, 0, 1, 256, 0, 0, 1, 256, pBarBits, &bi, DIB_RGB_COLORS, SRCCOPY);
요렇게 그려줍니다..
근데 왜인지... 하얀색으로 나오네요..
이것저것 다 해봤는데도... 언제나 하얀색...
그냥 지나치지 마시고... 간단한 답변... 이라도 부탁드립니다.
|