PictureMediaBufferExtensionsCopyToAndUnlock Method |
Copies a PictureMediaBuffer to a WriteableBitmap and unlocks the input buffer.
Namespace: StreamCoders.HelpersAssembly: MediaBase (in MediaBase.dll) Version: 2.0.5.0 (2.0.5.0)
Syntax public static bool CopyToAndUnlock(
this PictureMediaBuffer inputPictureMediaBuffer,
ref WriteableBitmap outputWriteableBitmap,
bool setDirty = true
)
<ExtensionAttribute>
Public Shared Function CopyToAndUnlock (
inputPictureMediaBuffer As PictureMediaBuffer,
ByRef outputWriteableBitmap As WriteableBitmap,
Optional setDirty As Boolean = true
) As Boolean
public:
[ExtensionAttribute]
static bool CopyToAndUnlock(
PictureMediaBuffer^ inputPictureMediaBuffer,
WriteableBitmap^% outputWriteableBitmap,
bool setDirty = true
)
[<ExtensionAttribute>]
static member CopyToAndUnlock :
inputPictureMediaBuffer : PictureMediaBuffer *
outputWriteableBitmap : WriteableBitmap byref *
?setDirty : bool
(* Defaults:
let _setDirty = defaultArg setDirty true
*)
-> bool
Parameters
- inputPictureMediaBuffer
- Type: StreamCodersPictureMediaBuffer
The PictureMediaBuffer to be copied from. - outputWriteableBitmap
- Type: System.Windows.Media.ImagingWriteableBitmap
The WriteableBitmap to copy to. - setDirty (Optional)
- Type: SystemBoolean
Indicates whether the WriteableBitmap should be set dirty.
Return Value
Type:
BooleanUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
PictureMediaBuffer. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also