Topic: Accessing image buffer in Appgraphics
Hello
I would like to produce fast calculations of bitmap graphics, e.g. high resolution mandelbrot set (2500 x 2000 pixels).
I manage to do this by calling putpixel(px,py,creatergb(ih,ih,ih)) for each point. However, this is very slow bcause every putpixel is essentially a call to the windows GDI system.
Logically there must be a way to define an image buffer
type(imagetype):: iarr
...
call allocateimage(iarr, 2500, 2000)
....
manipulate, access iarr(x,y)
....
then
call pasteimage(1,1,iarr)
and finally
call freeimage(iarr)
How does one access the image buffer?
Regards,
Roland