Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: Snapshot problem BMP 12 bytes shift 12 bytes
http://www.biewer.com/wetter.pngHowever the bitmap created is not correct, at the right side I miss some pixels which are added at the left. Looks like a memory allocation problem to me. Anyone has any ideas?
Snapshot(0) size=BinaryClipGet(0,8) bb=BinaryAlloc(size) BinaryClipGet(bb,8) bb2=BinaryAlloc(size+14) BinaryPokeStr(bb2,0,"BM") BinaryPoke4(bb2,2,size+14) tableloc=BinaryPeek4(bb,0)+14 BinaryPoke4(bb2,10,tableloc) BinaryCopy(bb2,14,bb,0,size) BinaryWrite(bb2,"\\Peacock\Shared\UserProg\weblinks\wetter.bmp") BinaryFree(bb) BinaryFree(bb2)
BinaryPoke4(bb2,10,tableloc)to:
BinaryPoke4(bb2,10,tableloc+12)and let me know if that helps...
It started working and I stopped.
However it seems there was a small error.
The fix seems to correct the error.
A confusing problem is that there are several different BMP file formats. Not all programs recognise all formats.
When you save a file is MSPAINT, it save it in a different, more compressed format than the sample code saves it in, making debugging more difficult. This also depends on your version of MSPAINT.
Article ID: W15109
File Created: 2002:09:05:13:49:42
Last Updated: 2002:09:05:13:49:42