Hello, I have this little Problem with WritePixelFast:
i just want to copy the frontbuffer into an image and then make every third pixel black...
it just makes a copy of the frontbuffer.....
if you remove the copyrect command,it writes the image of the frontbuffer in every third pixel... (strange strange?!???!? I didn't do any ReadPixel Operation )
Am I blind or stupid??
Please help!
i just want to copy the frontbuffer into an image and then make every third pixel black...
it just makes a copy of the frontbuffer.....
if you remove the copyrect command,it writes the image of the frontbuffer in every third pixel... (strange strange?!???!? I didn't do any ReadPixel Operation )
Am I blind or stupid??
Please help!
SetBuffer ImageBuffer(BackG) CopyRect (0,0,ScreenWidth%,ScreenHeight%,0,0,FrontBuffer(),ImageBuffer(BackG)) LockBuffer(ImageBuffer(BackG)) For yy% = 0 To ScreenHeight% - 1 Step 3 For xx% = 0 To ScreenWidth% - 1 Step 3 WritePixelFast ( xx%, yy% , 0 ) Next Next UnlockBuffer(ImageBuffer(BackG))