CImage Image; Image.Load (L"D:\\Images\\PNG_Images\\Image7.png");
byte *png = reinterpret_cast<byte>(Image.GetBits());
CImage atlImage; HMODULE hMod = GetModuleHandle(NULL); atlImage.Load(bstr); void* pPixel = atlImage.GetBits(); int pitch = atlImage.GetPitch(); int depth = atlImage.GetBPP(); INT32 bytes = (iImageSize.x * depth) / 8;// iImageSize.x is unknown const BYTE* src = (const BYTE*)pPixel; BYTE* dst = (BYTE*) pBitmapData; //valid memory buffer for (int jj = atlImage.GetHeight(); --jj >= 0; ) { memcpy(dst, src, bytes); src += pitch; dst += pitch; }
INT32 bytes = (atlImage.GetWidth() * depth) / 8;
CImage::GetWidth
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)