SoOffscreenRenderAreaRenderToFile Method |
Render the given scene graph and save the result in the given file.
Namespace: OIV.Inventor
path and name of the image file to be generated. If the file extension is not one of the above type, no file is generated.
The format of the generated image is chosen automatically according to the file extension. Returns true if successful.
If your application needs more control over creation of the file, please see the OIV.Inventor.SoOffscreenRenderArea.RenderToBuffer(OIV.Inventor.Devices.SoBufferObject) method.
Supported file types are:
extension file (case insensitive) | raster image type |
.bmp | Windows bitmap |
.dds | DirectDraw surface |
.gif | Graphics Interchange Format |
.hdr | hdr |
.jp2, .j2c, .j2k, .jpc, .jpx, .ecw, .ecwp | jpeg 2000 |
.jpg, .jpeg, .jif, .jfif | Joint Photographic Experts Group |
.pgx | pgx |
.png | Portable Network Graphics |
.pnm .pgm .ppm | pnm |
.ps | PostScript |
.rgb .sgi | sgi |
.ras | sun |
.tif .tiff | Tagged Image File Format |