Texture2DFactory#
- class ansys.stk.core.graphics.Texture2DFactory#
A factory for creating texture 2d objects from various sources.
Overview#
Create a new texture from a Uri, which can be a file, HTTP, HTTPS, or FTP source. See raster for a list of supported raster formats. |
|
Create a new texture from a raster. |
Import detail#
from ansys.stk.core.graphics import Texture2DFactory
Method detail#
- Texture2DFactory.load_from_string_uri(self, uri: str) RendererTexture2D #
Create a new texture from a Uri, which can be a file, HTTP, HTTPS, or FTP source. See raster for a list of supported raster formats.
- Parameters:
uri :
str
- Returns:
RendererTexture2D
- Texture2DFactory.from_raster(self, raster: IRaster) RendererTexture2D #
Create a new texture from a raster.
- Parameters:
raster :
IRaster
- Returns:
RendererTexture2D