| PictureMediaBuffer Methods | 
The PictureMediaBuffer type exposes the following members.
 Methods
Methods| Name | Description | |
|---|---|---|
|  | CheckPreconditions | 
                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.
             | 
|  | CopyMetaDataFrom(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).) | 
|  | CopyMetaDataFrom(PictureMediaBuffer) | 
                Copies the meta data from source to local instance. The data includes all fields from
                MediaBuffer plus all fields from PictureMediaBuffer.
             | 
|   | CreateFromTemplate(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.
             | 
|   | CreateFromTemplate(Int32, Int32, PictureFormat) | 
                Creates a PictureMediaBuffer given resolution and format. The OffsetBuffer will also be allocated.
             | 
|  | DeepCopy | 
                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.) | 
|  | ResetVariables | 
                Resets StartTime, EndTime, Duration, Buffer.Offset to 0.
            (Inherited from MediaBufferT.) | 
|  | ToString | 
                Convert this instance into a string representation.
            (Inherited from MediaBufferT.) | 
 Extension Methods
Extension Methods| Name | Description | |
|---|---|---|
|  | Copy | Overloaded. 
            Creates a copy of the object.
            (Defined by ObjectExtensions.) | 
|  | Copy(Object) | Overloaded. 
            Creates a deep copy of the object using the supplied object as a target for the copy operation.
            (Defined by ObjectExtensions.) | 
|  | CopyToAndUnlock | 
            Copies a PictureMediaBuffer to a WriteableBitmap and unlocks the input buffer.
            (Defined by PictureMediaBufferExtensions.) | 
|  | Rgb24ToBitmap | 
	Converts a PictureMediaBuffer to an RGB 24-bit Bitmap (System.Drawing.Imaging.Bitmap)
(Defined by ImageTools.) | 
|  | ToWriteableBitmap | Overloaded. (Defined by PictureMediaBufferExtensions.) | 
|  | ToWriteableBitmap(WriteableBitmap) | Overloaded. (Defined by PictureMediaBufferExtensions.) | 
|  | ToWriteableBitmap(WriteableBitmap, Boolean) | Overloaded. (Defined by PictureMediaBufferExtensions.) | 
 See Also
See Also