RasterAttributes#

class ansys.stk.core.graphics.RasterAttributes#

The attributes describing a raster dataset. raster attributes define the memory layout of a raster, and includes properties defining the order of each raster band that the raster contains, as specified by the raster format…

Overview#

has_band

Get whether the raster contains the given band.

format

Get the raster format associated with the attributes.

type

Get the raster type associated with the attributes.

orientation

Get the raster orientation associated with the attributes.

byte_length

Get the size of the raster data in bytes.

width

Get the width of the raster in pixels.

height

Get the height of the raster in pixels.

pixel_aspect_ratio

Get the pixel aspect ratio of the raster.

row_alignment

Get the row alignment of the raster data in bytes.

number_of_bands

Get the number of bands comprising the raster.

row_stride

Get the stride or scan/row width in bytes of the raster data.

Import detail#

from ansys.stk.core.graphics import RasterAttributes

Property detail#

property RasterAttributes.format: RasterFormat#

Get the raster format associated with the attributes.

property RasterAttributes.type: RasterType#

Get the raster type associated with the attributes.

property RasterAttributes.orientation: RasterOrientation#

Get the raster orientation associated with the attributes.

property RasterAttributes.byte_length: int#

Get the size of the raster data in bytes.

property RasterAttributes.width: int#

Get the width of the raster in pixels.

property RasterAttributes.height: int#

Get the height of the raster in pixels.

property RasterAttributes.pixel_aspect_ratio: float#

Get the pixel aspect ratio of the raster.

property RasterAttributes.row_alignment: int#

Get the row alignment of the raster data in bytes.

property RasterAttributes.number_of_bands: int#

Get the number of bands comprising the raster.

property RasterAttributes.row_stride: int#

Get the stride or scan/row width in bytes of the raster data.

Method detail#

RasterAttributes.has_band(self, band: RasterBand) bool#

Get whether the raster contains the given band.

Parameters:

band : RasterBand

Returns:

bool