public void Dispose() { foreach (var mTarget in _mTargets) { mTarget.Value.Dispose(); } _mCanvas.Dispose(); _mDevice.Dispose(); }