SoTextureReadTexture Method (String, SoTextureFileTypes) |
Convenience function that loads the image data from any texture file supported by Open Inventor and returns an OIV.Inventor.Image.SbRasterImage object.
Namespace: OIV.Inventor.Nodes
public static SbRasterImage ReadTexture( string filename, SoTextureFileTypes filetype )
Returns null if the load fails for any reason.
If the file type is known, you may specify it using the OIV.Inventor.Nodes.SoTexture.FileTypes enum and Open Inventor will use the corresponding image reader. If filetype is UNKNOWN, Open Inventor will try to automatically determine which image reader should be used for the given file.