System.Windows.ThreadingDispatcherObject
System.WindowsDependencyObject
System.WindowsFreezable
System.Windows.Media.AnimationAnimatable
System.Windows.MediaImageSource
System.Windows.Media.ImagingBitmapSource
Stemmer.Cvb.Wpf.ImagingBitmapSource
Namespace: Stemmer.Cvb.Wpf.Imaging
Assembly: Stemmer.Cvb.Wpf (in Stemmer.Cvb.Wpf.dll) Version: 14.0.0.0
The BitmapSource type exposes the following members.
Name | Description | |
---|---|---|
BitmapSource |
Creates an empty BitmapSource.
| |
BitmapSource(Image, Int32, Int32, HighBitScaleMode) |
Creates a BitmapSource from the given source image.
|
Name | Description | |
---|---|---|
CanFreeze | Gets a value that indicates whether the object can be made unmodifiable. (Inherited from Freezable.) | |
DependencyObjectType | Gets the DependencyObjectType that wraps the CLR type of this instance. (Inherited from DependencyObject.) | |
Dispatcher | Gets the Dispatcher this DispatcherObject is associated with. (Inherited from DispatcherObject.) | |
DpiX |
Horizontal DPI of the bitmap.
(Overrides BitmapSourceDpiX.) | |
DpiY |
Vertical DPI of the bitmap.
(Overrides BitmapSourceDpiY.) | |
Format |
The pixel format of this BitmapSource.
(Overrides BitmapSourceFormat.) | |
HasAnimatedProperties | Gets a value that indicates whether one or more AnimationClock objects is associated with any of this object's dependency properties. (Inherited from Animatable.) | |
Height | Gets the height of the source bitmap in device-independent units (1/96th inch per unit). (Inherited from BitmapSource.) | |
HighBitScaleMode |
Sets the HighBitScaleMode for scaling
non-8bpp images.
| |
IsDownloading |
Gets whether this bitmap source is downloading (never).
(Overrides BitmapSourceIsDownloading.) | |
IsFrozen | Gets a value that indicates whether the object is currently modifiable. (Inherited from Freezable.) | |
IsSealed | Gets a value that indicates whether this instance is currently sealed (read-only). (Inherited from DependencyObject.) | |
MaxDecodePixelHeight |
Gets/sets maximal decode height.
| |
MaxDecodePixelWidth |
Gets/sets maximal decode width.
| |
Metadata | Gets the metadata that is associated with this bitmap image. (Inherited from BitmapSource.) | |
Palette |
Palette of the bitmap.
(Overrides BitmapSourcePalette.) | |
PixelHeight |
Gets the height of this BitmapSource in pixels.
(Overrides BitmapSourcePixelHeight.) | |
PixelWidth |
Gets the width of this BitmapSource in pixels.
(Overrides BitmapSourcePixelWidth.) | |
Source |
Gets/sets the Image source for this BitmapSource.
| |
Width | Gets the width of the bitmap in device-independent units (1/96th inch per unit). (Inherited from BitmapSource.) |
Name | Description | |
---|---|---|
ApplyAnimationClock(DependencyProperty, AnimationClock) | Applies an AnimationClock to the specified DependencyProperty. If the property is already animated, the SnapshotAndReplace handoff behavior is used. (Inherited from Animatable.) | |
ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior) | Applies an AnimationClock to the specified DependencyProperty. If the property is already animated, the specified HandoffBehavior is used. (Inherited from Animatable.) | |
BeginAnimation(DependencyProperty, AnimationTimeline) | Applies an animation to the specified DependencyProperty. The animation is started when the next frame is rendered. If the specified property is already animated, the SnapshotAndReplace handoff behavior is used. (Inherited from Animatable.) | |
BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior) | Applies an animation to the specified DependencyProperty. The animation is started when the next frame is rendered. If the specified property is already animated, the specified HandoffBehavior is used. (Inherited from Animatable.) | |
BeginInit |
Begin the initialization phase.
| |
CheckAccess | Determines whether the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.) | |
ClearValue(DependencyProperty) | Clears the local value of a property. The property to be cleared is specified by a DependencyProperty identifier. (Inherited from DependencyObject.) | |
ClearValue(DependencyPropertyKey) | Clears the local value of a read-only property. The property to be cleared is specified by a DependencyPropertyKey. (Inherited from DependencyObject.) | |
Clone | Creates a modifiable clone of this BitmapSource, making deep copies of this object's values. When copying dependency properties, this method copies resource references and data bindings (but they might no longer resolve) but not animations or their current values. (Inherited from BitmapSource.) | |
CloneCurrentValue | Creates a modifiable clone of this BitmapSource object, making deep copies of this object's current values. Resource references, data bindings, and animations are not copied, but their current values are. (Inherited from BitmapSource.) | |
CoerceValue | Coerces the value of the specified dependency property. This is accomplished by invoking any CoerceValueCallback function specified in property metadata for the dependency property as it exists on the calling DependencyObject. (Inherited from DependencyObject.) | |
CopyPixels(Array, Int32, Int32) |
Requests pixels from this BitmapSource.
(Overrides BitmapSourceCopyPixels(Array, Int32, Int32).) | |
CopyPixels(Int32Rect, Array, Int32, Int32) |
Requests pixels from this BitmapSource.
(Overrides BitmapSourceCopyPixels(Int32Rect, Array, Int32, Int32).) | |
CopyPixels(Int32Rect, IntPtr, Int32, Int32) |
Requests pixels from this BitmapSource.
(Overrides BitmapSourceCopyPixels(Int32Rect, IntPtr, Int32, Int32).) | |
Dispose |
Dispose this BitmapSource.
| |
EndInit |
End the initialization phase and setup the object.
| |
Equals | Determines whether a provided DependencyObject is equivalent to the current DependencyObject. (Inherited from DependencyObject.) | |
Finalize |
Finalizer.
(Overrides ObjectFinalize.) | |
Freeze | Makes the current object unmodifiable and sets its IsFrozen property to true. (Inherited from Freezable.) | |
GetAnimationBaseValue | Returns the non-animated value of the specified DependencyProperty. (Inherited from Animatable.) | |
GetAsFrozen | Creates a frozen copy of the Freezable, using base (non-animated) property values. Because the copy is frozen, any frozen sub-objects are copied by reference. (Inherited from Freezable.) | |
GetCurrentValueAsFrozen | Creates a frozen copy of the Freezable using current property values. Because the copy is frozen, any frozen sub-objects are copied by reference. (Inherited from Freezable.) | |
GetHashCode | Gets a hash code for this DependencyObject. (Inherited from DependencyObject.) | |
GetLocalValueEnumerator | Creates a specialized enumerator for determining which dependency properties have locally set values on this DependencyObject. (Inherited from DependencyObject.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetValue | Returns the current effective value of a dependency property on this instance of a DependencyObject. (Inherited from DependencyObject.) | |
InvalidateProperty | Re-evaluates the effective value for the specified dependency property (Inherited from DependencyObject.) | |
ReadLocalValue | Returns the local value of a dependency property, if it exists. (Inherited from DependencyObject.) | |
SetCurrentValue | Sets the value of a dependency property without changing its value source. (Inherited from DependencyObject.) | |
SetValue(DependencyProperty, Object) | Sets the local value of a dependency property, specified by its dependency property identifier. (Inherited from DependencyObject.) | |
SetValue(DependencyPropertyKey, Object) | Sets the local value of a read-only dependency property, specified by the DependencyPropertyKey identifier of the dependency property. (Inherited from DependencyObject.) | |
ToString | Creates a string representation of this object based on the current culture. (Inherited from ImageSource.) | |
ToString(IFormatProvider) | Creates a string representation of this object based on the IFormatProvider passed in. If the provider is null, the CurrentCulture is used. (Inherited from ImageSource.) | |
VerifyAccess | Enforces that the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.) |
Name | Description | |
---|---|---|
Changed | Occurs when the Freezable or an object it contains is modified. (Inherited from Freezable.) | |
DecodeFailed |
Raised if the Source could not be decoded.
(Overrides BitmapSourceDecodeFailed.) | |
DownloadCompleted |
Raised if the download is completed.
(Overrides BitmapSourceDownloadCompleted.) | |
DownloadFailed | Occurs when the bitmap content failed to download. (Inherited from BitmapSource.) | |
DownloadProgress | Occurs when the download progress of the bitmap content has changed. (Inherited from BitmapSource.) |
Name | Description | |
---|---|---|
HighBitScaleModeProperty |
Dependency property backing store of HighBitScaleMode.
| |
MaxDecodePixelHeightProperty |
Dependency property backing store for
MaxDecodePixelHeight property.
| |
MaxDecodePixelWidthProperty |
Dependency property backing store for
MaxDecodePixelWidth property.
| |
SourceProperty |
Dependency property backing store for Source property.
|
Name | Description | |
---|---|---|
FindVisualParentT |
Finds a parent of a certain type of a this item in the visual tree.
(Defined by VisualTreeHelperExtensions.) |
Name | Description | |
---|---|---|
IFormattableToString | Formats the value of the current instance using the specified format. (Inherited from ImageSource.) |
Attention: do not use this class directly in any control displaying an image source. There is a bug in the WPF BitmapSource implementation throwing a NotImplemented exception in out of memory conditions in the render thread.
Makes CVB images accessible for WPF imaging. Resulting PixelFormats are either Gray8 for single plane unsigned 8bpp image or Bgr24 for all other formats (three plane 8bpp per plane images are also copied directly; all other formats are processed via the Image.ToBitmap method.
As the WPF imaging model is only designed for still image support, you need to create a new BitmapSource each time you want to display an update. Update behavior is sadly hard-coded in WPF for just three BitmapSources: WriteableBitmap, InteropBitmap and RenderTargetBitmap. Creating new BitmapSource is designed to be cheap.
BitmapSource implementation based on the articles of Dwayne Need (http://social.msdn.microsoft.com/profile/dwayne%20need%20%5Bmsft%5D).