I'm under the impression it's a faster way to plot a dot. I get a "memory access violation" when I use PutPixel2.GetPixel2, PutPixel2
The same as above, but for locked buffers only.
All I need it's to fill pixel per pixel the whole window without other function like a filler or a filled shape.
Code: Select all
SCREEN 320,200 Color 255,0,0 Repeat Lock SCREEN() For y = 0 To 200 For x = 0 To 320 c = Rnd(255) PutPixel x,y,c Next x Next y Unlock SCREEN() Text 1,1,FPS() DrawScreen Forever
(I know it's the worst way for making noise, It's just I need a faster instruction)
Have you a short exemple like this routine (or not ) for PutPixel2 ?