Render Window to memory buffer

Submitted by Tomas Wilhelmsson on Sun, 2007-10-14 18:13.   Tags: 

Is there any way to render a full window and its content to a memory buffer ? in R5 or Haiku ? :) (Preferably both) :)