StartVectorDrawing( ArrayVectorOutput(MyVectorArray()) ) and StartDrawing( ArrayOutput(MyArray()) )
Posted: Sat Dec 18, 2021 2:26 am
I often find myself having to copy image data to an array so that I can work with it more effectively. Sometimes this requires the resulting data to be copied back to an image so that the 2D drawing and vector drawing libraries can be used to draw to it. It would simplify things if those libraries could work directly with arrays as their output. This would also help with some Point() and Plot() operations that require an array to be used as an intermediary, as you can read directly from the array without the need for Point().
Example
Dim MyArray.l( x, y )
StartDrawing( ArrayOutput(MyArray()) )
; Draw to the array here.
StopDrawing()
Dim MyVectorArray.l( x, y )
StartVectorDrawing( ArrayVectorOutput(MyVectorArray()) )
; Draw to the array here.
StopVectorDrawing()
Example
Dim MyArray.l( x, y )
StartDrawing( ArrayOutput(MyArray()) )
; Draw to the array here.
StopDrawing()
Dim MyVectorArray.l( x, y )
StartVectorDrawing( ArrayVectorOutput(MyVectorArray()) )
; Draw to the array here.
StopVectorDrawing()