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.

byte_length

Get the size of the raster data in bytes.

format

Get the raster format associated with the attributes.

height

Get the height of the raster in pixels.

number_of_bands

Get the number of bands comprising the raster.

orientation

Get the raster orientation associated with the attributes.

pixel_aspect_ratio

Get the pixel aspect ratio of the raster.

row_alignment

Get the row alignment of the raster data in bytes.

row_stride

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

type

Get the raster type associated with the attributes.

width

Get the width of the raster in pixels.

Import detail#

from ansys.stk.core.graphics import RasterAttributes

Property detail#

property RasterAttributes.byte_length: int#

Get the size of the raster data in bytes.

property RasterAttributes.format: RasterFormat#

Get the raster format associated with the attributes.

property RasterAttributes.height: int#

Get the height of the raster in pixels.

property RasterAttributes.number_of_bands: int#

Get the number of bands comprising the raster.

property RasterAttributes.orientation: RasterOrientation#

Get the raster orientation associated with the attributes.

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.row_stride: int#

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

property RasterAttributes.type: RasterType#

Get the raster type associated with the attributes.

property RasterAttributes.width: int#

Get the width of the raster in pixels.

Method detail#

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

Get whether the raster contains the given band.

Parameters:

band : RasterBand

Returns:

bool