Click or drag to resize

FilteringRasterStream Class

A class decorator for applying a RasterFilter to each update of a RasterStream. Can be used to apply filters to videos and other raster streams as they are updated.
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 sealed class FilteringRasterStream : RasterStream

The FilteringRasterStream type exposes the following members.

Constructors
  NameDescription
Public methodFilteringRasterStream
Initializes a new instance with a RasterStream and the RasterFilter that will be applied to each update of that stream.
Top
Properties
  NameDescription
Public propertyAttributes
Gets the RasterAttributes that define the raster data.
(Inherited from Raster.)
Public propertyFilter
Gets the RasterFilter that will be applied to the RasterStream on each update.
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 propertyStream
Gets the RasterStream that will have the RasterFilter applied on each update.
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.
(Inherited from RasterStream.)
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.)
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.)
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.)
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.
(Overrides RasterStreamUpdate(JulianDate, JulianDate).)
Top
See Also