RasterFactory#

class ansys.stk.core.graphics.RasterFactory#

A raster dataset. A raster consists of one or more bands, or sets of values, which are most commonly associated with colors when the raster represents an image…

Overview#

initialize_with_string_uri

Initialize a raster from a Uri, which can be a file, HTTP, HTTPS, or FTP source. See raster for a list of supported formats.

initialize_with_string_uri_xy_width_and_height

Initialize a raster from a Uri. Only the specified subsection of the raster is read. See raster for a list of supported formats.

initialize_with_raster

Initialize a raster from another raster.

Import detail#

from ansys.stk.core.graphics import RasterFactory

Method detail#

RasterFactory.initialize_with_string_uri(self, uri: str) IRaster#

Initialize a raster from a Uri, which can be a file, HTTP, HTTPS, or FTP source. See raster for a list of supported formats.

Parameters:

uri : str

Returns:

IRaster

RasterFactory.initialize_with_string_uri_xy_width_and_height(self, uri: str, x: int, y: int, width: int, height: int) IRaster#

Initialize a raster from a Uri. Only the specified subsection of the raster is read. See raster for a list of supported formats.

Parameters:

uri : str

x : int

y : int

width : int

height : int

Returns:

IRaster

RasterFactory.initialize_with_raster(self, raster: IRaster) IRaster#

Initialize a raster from another raster.

Parameters:

raster : IRaster

Returns:

IRaster