Das Bild hat 320x192 Pixel.
8 Pixel in der Reihe möchte ich als ein Byte abspeichern, 40 Byte in einer Reihe und das 192x.
Ich finde da keine Lösung.
danke.
Code: Alles auswählen
Global x.l,y.l,farbe.l
InitSprite()
InitKeyboard()
OpenWindow(0,0,0,400,400,"draw",#PB_Window_SystemMenu|#PB_Window_SizeGadget|#PB_Window_ScreenCentered)
CreateImage(0, 320,192)
StartDrawing(ImageOutput(0))
Box(0,0,320,192, RGB(255,255,255))
DrawingMode(#PB_2DDrawing_Outlined )
Circle(160,90,70,RGB(0,0,0))
StopDrawing()
ImageGadget(0, 20, 20, 0, 0, ImageID(0))
Repeat
EventID = WaitWindowEvent()
StartDrawing(ImageOutput(0))
For y=0 To 191
For x=0 To 319
farbe=Point(x,y)
If farbe = 0
Debug x
Debug y
Break 3
EndIf
Next
Next
StopDrawing()
Until EventID = #PB_Event_CloseWindow
End

