Click to See Complete Forum and Search --> : i really need help here...


May 5th, 1999, 09:13 PM
How do i do logic operations on my images? I'm using VC++ . Do i have to delete the header files like they do in VB?

C. Sonntag
May 5th, 1999, 10:06 PM
I don't exactly know what you mean with "images", but if you mean bitmaps, try the functions of the CDC-Class of MFC (BitBlt() or PatBlt()...)

May 6th, 1999, 12:17 AM
yeah i'm using a bitmap image. Will it work if i use other formats like gif, jpg and png as well?

tangzibo
May 6th, 1999, 01:43 AM
LPBITMAPINFO lpBitmapInfo = (LPBITMAPINFO)yourDib;
BYTE* imageBits = (BYTE*)&lpBitmapInfo->bmiColors[lpBitmapInfo->bmiHeader.biClrUsed];

C. Sonntag
May 6th, 1999, 03:50 PM
I don't think so, CDC only offers functions for bitmap images, because Windows only uses bitmaps for display