Click or drag to resize
PictureMediaBuffer Methods

The PictureMediaBuffer type exposes the following members.

Methods
  NameDescription
Public methodCheckPreconditions
Checks whether the resolution is set and the allocated buffer is big enough to hold the specified amount of pixels. These checks are made with preconditions, so if enabled will throw exceptions.
Public methodCopyMetaDataFrom(MediaBufferByte)
Copies the meta data from source to local instance. If the passed object is a up-cast PictureMediaBuffer, then CopyMetaDataFrom(PictureMediaBuffer) will be invoked.
(Overrides MediaBufferTCopyMetaDataFrom(MediaBufferT).)
Public methodCopyMetaDataFrom(PictureMediaBuffer)
Copies the meta data from source to local instance. The data includes all fields from MediaBuffer plus all fields from PictureMediaBuffer.
Public methodStatic memberCreateFromTemplate(PictureMediaBuffer)
Creates a PictureMediaBuffer given the meta-data from another buffer. The OffsetBuffer will not be copied, but will be allocated given resolution and format.
Public methodStatic memberCreateFromTemplate(Int32, Int32, PictureFormat)
Creates a PictureMediaBuffer given resolution and format. The OffsetBuffer will also be allocated.
Public methodDeepCopy
Creates a deep copy of MediaBuffer by cloning the OffsetBuffer and meta data. Exceptions are: ExtendedInfo and when a MediaBuffer is locked, then the lock state will remain unlocked (unacquired).
(Inherited from MediaBufferT.)
Public methodResetVariables
Resets StartTime, EndTime, Duration, Buffer.Offset to 0.
(Inherited from MediaBufferT.)
Public methodToString
Convert this instance into a string representation.
(Inherited from MediaBufferT.)
Top
Extension Methods
  NameDescription
Public Extension MethodCopyOverloaded.
Creates a copy of the object.
(Defined by ObjectExtensions.)
Public Extension MethodCopy(Object)Overloaded.
Creates a deep copy of the object using the supplied object as a target for the copy operation.
(Defined by ObjectExtensions.)
Public Extension MethodCopyToAndUnlock
Copies a PictureMediaBuffer to a WriteableBitmap and unlocks the input buffer.
(Defined by PictureMediaBufferExtensions.)
Public Extension MethodRgb24ToBitmap
Converts a PictureMediaBuffer to an RGB 24-bit Bitmap (System.Drawing.Imaging.Bitmap)
(Defined by ImageTools.)
Public Extension MethodToWriteableBitmapOverloaded. (Defined by PictureMediaBufferExtensions.)
Public Extension MethodToWriteableBitmap(WriteableBitmap)Overloaded. (Defined by PictureMediaBufferExtensions.)
Public Extension MethodToWriteableBitmap(WriteableBitmap, Boolean)Overloaded. (Defined by PictureMediaBufferExtensions.)
Top
See Also