public Bitmap GetSceneImage(int position, int height, int width, xpScene scene_name) { xpImage image_preview; if (scene_name.GetRenderedFrame(position, width, height, out image_preview)) { return(xpTools.xpImageToBitmap(image_preview)); } return(null); }