I know the example basic2d have a line:
"CL_ProviderFactory::save(CL_Display::get_current_ window()->get_gc()->get_pixeldata(CL_Rect(100, 200, 500, 300)), filename);"

CL_PixelBuffer saved to a file,but I want CL_PixelBuffer save as a CL_Surface,my mean is that I want the current CL_PixelBuffer save in memory and I can operate this CL_PixelBuffer as a CL_Surface,than not to save a file and load this file to a CL_Surface.

I believe Clanlib must can do it,just I don't know.Somebody can help me?
Thanks in advance.