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?
Printable View
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?
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()...)
yeah i'm using a bitmap image. Will it work if i use other formats like gif, jpg and png as well?
LPBITMAPINFO lpBitmapInfo = (LPBITMAPINFO)yourDib;
BYTE* imageBits = (BYTE*)&lpBitmapInfo->bmiColors[lpBitmapInfo->bmiHeader.biClrUsed];
I don't think so, CDC only offers functions for bitmap images, because Windows only uses bitmaps for display