Click or drag to resize

RasterStream Class

A raster, the data of which, is updated dynamically at the specified UpdateDelta. The class can be used to stream video and other dynamic raster data to textures and other Raster clients. Note to Implementers: When implementing a derived class of RasterStream, you must provide an implementation for the Update(JulianDate, JulianDate) method. The Attributes property of the Raster should be set in the constructor of the derived class.
Inheritance Hierarchy

Namespace:  AGI.Foundation.Graphics.Imaging
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 19.5.402.0 (19.5.402.0)
Syntax
public abstract class RasterStream : Raster

The RasterStream type exposes the following members.

Constructors
  NameDescription
Protected methodRasterStream
Initializes a new instance of the RasterStream class
Top
Properties
  NameDescription
Public propertyAttributes
Gets the RasterAttributes that define the raster data.
(Inherited from Raster.)
Public propertyHeight
Gets the height of the raster in pixels.
(Inherited from Raster.)
Public propertyScan0
Gets the IntPtr associated with the first value of data in the raster.
(Inherited from Raster.)
Public propertyUpdateDelta
Gets or sets the update delta of the raster stream in seconds. The UpdateDelta defines the interval at which the Update(JulianDate, JulianDate) method will be called. The default UpdateDelta is 0, which will call the Update(JulianDate, JulianDate) method every time the SceneManager time changes. When animating, this means the Update(JulianDate, JulianDate) method would be called on every animation step.
Public propertyWidth
Gets the width of the raster in pixels.
(Inherited from Raster.)
Top
Methods
  NameDescription
Public methodApply
Applies a RasterFilter to the raster and returns a new raster with the results of the filtering. The current raster is not modified.
(Inherited from Raster.)
Public methodApplyInPlace
Applies a RasterFilter to the raster. The current raster will contain the results of the filtering.
(Inherited from Raster.)
Public methodCopyFromBitmap
Copies a .NET Bitmap with a supported PixelFormat into this raster. Format8bppIndexed, Format24bppRgb, Format32bppRgb, and Format32bppArgb bitmap data are supported.
(Inherited from Raster.)
Public methodCopyFromMemory(Byte, RasterAttributes)
Copies the given memory into the raster.
(Inherited from Raster.)
Public methodCopyFromMemory(IntPtr, RasterAttributes)
Copies the given memory into the raster.
(Inherited from Raster.)
Public methodCopyFromRaster
Copies the data associated with the given Raster into this raster.
(Inherited from Raster.)
Public methodDispose (Inherited from Raster.)
Protected methodDispose(Boolean) (Overrides RasterDispose(Boolean).)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExtractBand(RasterBand)
Extracts the band of raster data associated with the given RasterBand.
(Inherited from Raster.)
Public methodExtractBand(RasterFormat)
Extracts the bands of raster data associated with the given RasterFormat.
(Inherited from Raster.)
Protected methodFinalize (Inherited from Raster.)
Public methodFlip
Flips the raster along the given axis.
(Inherited from Raster.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRotate
Rotates the raster by the given angle.
(Inherited from Raster.)
Public methodToBitmap
Copies the raster to a .NET Bitmap if the RasterFormat is supported. RGB, RGBA, BGR, and BGRA raster data is supported.
(Inherited from Raster.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate
When overridden in a derived class, updates the raster data associated with the raster stream at the specified time. When the Update(JulianDate, JulianDate) method is called, the raster stream contains a raster data buffer defined by the current Attributes of the stream for updating the raster data. The time parameter provides the current and next SceneManager time. Return true if the raster data was updated, otherwise return false.
Top
See Also