RasterAttributesFactory#

class ansys.stk.core.graphics.RasterAttributesFactory#

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#

initialize_with_format

Initialize a new instance with the width and height of the raster in pixels, and the given raster format.

initialize_with_format_and_type

Initialize a new instance with the width and height of the raster in pixels, and the given raster format and raster type.

initialize_with_format_type_and_orientation

Initialize a new instance with the width and height of the raster in pixels, and the given raster format, raster type, and raster orientation.

initialize_with_format_type_orientation_and_alignment

Initialize a new instance with the width and height of the raster in pixels, and the given raster format, raster type, raster orientation, and row alignment.

initialize_with_format_type_orientation_alignment_and_ratio

Initialize a new instance with the width and height of the raster in pixels, and the given raster format, raster type, raster orientation, row alignment, and pixel aspect ratio.

initialize_with_raster

Initialize a new instance with the attributes of the specified raster.

Import detail#

from ansys.stk.core.graphics import RasterAttributesFactory

Method detail#

RasterAttributesFactory.initialize_with_format(self, width: int, height: int, raster_format: RasterFormat) RasterAttributes#

Initialize a new instance with the width and height of the raster in pixels, and the given raster format.

Parameters:

width : int

height : int

raster_format : RasterFormat

Returns:

RasterAttributes

RasterAttributesFactory.initialize_with_format_and_type(self, width: int, height: int, raster_format: RasterFormat, raster_type: RasterType) RasterAttributes#

Initialize a new instance with the width and height of the raster in pixels, and the given raster format and raster type.

Parameters:

width : int

height : int

raster_format : RasterFormat

raster_type : RasterType

Returns:

RasterAttributes

RasterAttributesFactory.initialize_with_format_type_and_orientation(self, width: int, height: int, raster_format: RasterFormat, raster_type: RasterType, raster_orientation: RasterOrientation) RasterAttributes#

Initialize a new instance with the width and height of the raster in pixels, and the given raster format, raster type, and raster orientation.

Parameters:

width : int

height : int

raster_format : RasterFormat

raster_type : RasterType

raster_orientation : RasterOrientation

Returns:

RasterAttributes

RasterAttributesFactory.initialize_with_format_type_orientation_and_alignment(self, width: int, height: int, raster_format: RasterFormat, raster_type: RasterType, raster_orientation: RasterOrientation, row_alignment: int) RasterAttributes#

Initialize a new instance with the width and height of the raster in pixels, and the given raster format, raster type, raster orientation, and row alignment.

Parameters:

width : int

height : int

raster_format : RasterFormat

raster_type : RasterType

raster_orientation : RasterOrientation

row_alignment : int

Returns:

RasterAttributes

RasterAttributesFactory.initialize_with_format_type_orientation_alignment_and_ratio(self, width: int, height: int, raster_format: RasterFormat, raster_type: RasterType, raster_orientation: RasterOrientation, row_alignment: int, pixel_aspect_ratio: float) RasterAttributes#

Initialize a new instance with the width and height of the raster in pixels, and the given raster format, raster type, raster orientation, row alignment, and pixel aspect ratio.

Parameters:

width : int

height : int

raster_format : RasterFormat

raster_type : RasterType

raster_orientation : RasterOrientation

row_alignment : int

pixel_aspect_ratio : float

Returns:

RasterAttributes

RasterAttributesFactory.initialize_with_raster(self, raster: IRaster) RasterAttributes#

Initialize a new instance with the attributes of the specified raster.

Parameters:

raster : IRaster

Returns:

RasterAttributes