Click or drag to resize

RasterAttributes Class

The attributes describing a Raster dataset. RasterAttributes define the memory layout of a Raster, and includes properties defining the order of each RasterBand that the raster contains, as specified by the RasterFormat. It also describes the type of data, or RasterType of the contained bands, the Height and Width of the raster in pixels, the RowAlignment of the raster, and other relevant properties.
Inheritance Hierarchy
SystemObject
  AGI.Foundation.Graphics.ImagingRasterAttributes

Namespace:  AGI.Foundation.Graphics.Imaging
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.1.418.0 (24.1.418.0)
Syntax
public sealed class RasterAttributes : IDisposable

The RasterAttributes type exposes the following members.

Constructors
  NameDescription
Public methodRasterAttributes(Bitmap)
Initializes a new instance from a .NET Bitmap with a supported PixelFormat. Format8bppIndexed, Format24bppRgb, Format32bppRgb, and Format32bppArgb bitmap data are supported.
Public methodRasterAttributes(Raster)
Initializes a new instance with the attributes of the specified Raster
Public methodRasterAttributes(Int32, Int32, RasterFormat)
Initializes a new instance with the width and height of the raster in pixels, and the given RasterFormat.
Public methodRasterAttributes(Int32, Int32, RasterFormat, RasterType)
Initializes a new instance with the width and height of the raster in pixels, and the given RasterFormat and RasterType.
Public methodRasterAttributes(Int32, Int32, RasterFormat, RasterType, RasterOrientation)
Initializes a new instance with the width and height of the raster in pixels, and the given RasterFormat, RasterType, and RasterOrientation.
Public methodRasterAttributes(Int32, Int32, RasterFormat, RasterType, RasterOrientation, Int32)
Initializes a new instance with the width and height of the raster in pixels, and the given RasterFormat, RasterType, RasterOrientation, and row alignment.
Public methodRasterAttributes(Int32, Int32, RasterFormat, RasterType, RasterOrientation, Int32, Double)
Initializes a new instance with the width and height of the raster in pixels, and the given RasterFormat, RasterType, RasterOrientation, row alignment, and pixel aspect ratio.
Top
Properties
  NameDescription
Public propertyByteLength
Gets the size of the raster data in bytes.
Public propertyFormat
Gets the RasterFormat associated with the attributes.
Public propertyHeight
Gets the height of the raster in pixels.
Public propertyNumberOfBands
Gets the number of bands comprising the raster.
Public propertyOrientation
Gets the RasterOrientation associated with the attributes.
Public propertyPixelAspectRatio
Gets the pixel aspect ratio of the raster.
Public propertyRowAlignment
Gets the row alignment of the raster data in bytes.
Public propertyRowStride
Gets the stride or scan/row width in bytes of the raster data.
Public propertyType
Gets the RasterType associated with the attributes.
Public propertyWidth
Gets the width of the raster in pixels.
Top
Methods
  NameDescription
Public methodDispose
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasBand
Gets whether the raster contains the given band.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also