ImageBuffer() equivalent?

BlitzMax Forums/BlitzMax Programming/ImageBuffer() equivalent?

Sorry if this has been covered by something else, but I've done a search and can't find anything.

I am wondering how / if it is possible to perform drawing commands such as DrawRect and DrawText upon a separate image (or pixmap), as was possible in Blitz2D using SetBuffer(ImageBuffer(MyImage))? I'm trying to create a very basic GUI engine and would like to render each gadget as an image before drawing it, as it just seems more efficient that way - or would doing the individual draw commands be just as good?