IRaster#
- class ansys.stk.core.graphics.IRaster#
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#
Flips the raster along the given axis. |
|
Rotate the raster by the given angle. |
|
Apply a raster filter to the raster and returns a new raster with the results of the filtering. The current raster is not modified. |
|
Apply a raster filter to the raster. The current raster will contain the results of the filtering. |
|
Extract the band of raster data associated with the given raster band. |
|
Extract the bands of raster data associated with the given raster format. |
|
Copy the data associated with the given raster into this raster. |
Get the raster attributes that define the raster data. |
|
Get the width of the raster in pixels. |
|
Get the height of the raster in pixels. |
Import detail#
from ansys.stk.core.graphics import IRaster
Property detail#
- property IRaster.attributes: RasterAttributes#
Get the raster attributes that define the raster data.
Method detail#
- IRaster.flip(self, axis: RasterFlipAxis) None #
Flips the raster along the given axis.
- Parameters:
axis :
RasterFlipAxis
- Returns:
- IRaster.apply(self, filter: IRasterFilter) IRaster #
Apply a raster filter to the raster and returns a new raster with the results of the filtering. The current raster is not modified.
- Parameters:
filter :
IRasterFilter
- Returns:
IRaster
- IRaster.apply_in_place(self, filter: IRasterFilter) None #
Apply a raster filter to the raster. The current raster will contain the results of the filtering.
- Parameters:
filter :
IRasterFilter
- Returns:
- IRaster.extract_band(self, band: RasterBand) IRaster #
Extract the band of raster data associated with the given raster band.
- Parameters:
band :
RasterBand
- Returns:
IRaster
- IRaster.extract_band_from_raster_format(self, format: RasterFormat) IRaster #
Extract the bands of raster data associated with the given raster format.
- Parameters:
format :
RasterFormat
- Returns:
IRaster