Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Media / VideoDrawing.cs / 1 / VideoDrawing.cs
//----------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Description: VideoDrawing represents a drawing operation that renders
// video into a destination rectangle.
//
// History:
//
// 2004/11/17 : timothyc - Created it.
//
//---------------------------------------------------------------------------
using System.Diagnostics;
namespace System.Windows.Media
{
///
/// The class definition for VideoDrawing
///
public sealed partial class VideoDrawing : Drawing
{
#region Constructors
///
/// Default VideoDrawing constructor.
/// Constructs an object with all properties set to their default values
///
public VideoDrawing()
{
}
#endregion
#region Internal methods
///
/// Calls methods on the DrawingContext that are equivalent to the
/// Drawing with the Drawing's current value.
///
internal override void WalkCurrentValue(DrawingContextWalker ctx)
{
// We avoid unneccessary ShouldStopWalking checks based on assumptions
// about when ShouldStopWalking is set. Guard that assumption with an
// assertion. See DrawingGroup.WalkCurrentValue comment for more details.
Debug.Assert(!ctx.ShouldStopWalking);
ctx.DrawVideo(
Player,
Rect
);
}
///
/// Video drawings don't require realization updates.
///
internal override void PrecomputeCore()
{
RequiresRealizationUpdates = false;
}
///
/// Video drawings don't need realization updates.
///
internal override void UpdateRealizations(RealizationContext realizationContext)
{
Debug.Assert(RequiresRealizationUpdates == false);
}
#endregion Internal methods
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//----------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Description: VideoDrawing represents a drawing operation that renders
// video into a destination rectangle.
//
// History:
//
// 2004/11/17 : timothyc - Created it.
//
//---------------------------------------------------------------------------
using System.Diagnostics;
namespace System.Windows.Media
{
///
/// The class definition for VideoDrawing
///
public sealed partial class VideoDrawing : Drawing
{
#region Constructors
///
/// Default VideoDrawing constructor.
/// Constructs an object with all properties set to their default values
///
public VideoDrawing()
{
}
#endregion
#region Internal methods
///
/// Calls methods on the DrawingContext that are equivalent to the
/// Drawing with the Drawing's current value.
///
internal override void WalkCurrentValue(DrawingContextWalker ctx)
{
// We avoid unneccessary ShouldStopWalking checks based on assumptions
// about when ShouldStopWalking is set. Guard that assumption with an
// assertion. See DrawingGroup.WalkCurrentValue comment for more details.
Debug.Assert(!ctx.ShouldStopWalking);
ctx.DrawVideo(
Player,
Rect
);
}
///
/// Video drawings don't require realization updates.
///
internal override void PrecomputeCore()
{
RequiresRealizationUpdates = false;
}
///
/// Video drawings don't need realization updates.
///
internal override void UpdateRealizations(RealizationContext realizationContext)
{
Debug.Assert(RequiresRealizationUpdates == false);
}
#endregion Internal methods
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DiagnosticsElement.cs
- DetailsViewInsertEventArgs.cs
- SelectionChangedEventArgs.cs
- WindowsListViewScroll.cs
- TextBoxAutoCompleteSourceConverter.cs
- recordstate.cs
- InternalConfigSettingsFactory.cs
- TextServicesManager.cs
- Bold.cs
- HttpTransportManager.cs
- SetterBaseCollection.cs
- ScalarOps.cs
- SafeRightsManagementQueryHandle.cs
- SmtpException.cs
- AsymmetricAlgorithm.cs
- TableRowCollection.cs
- TableCell.cs
- StringUtil.cs
- GridView.cs
- WebPartChrome.cs
- X509WindowsSecurityToken.cs
- PriorityChain.cs
- ButtonFlatAdapter.cs
- DeclaredTypeElement.cs
- ListBoxChrome.cs
- TextTreeTextElementNode.cs
- ErrorHandlerModule.cs
- ObjectDataSourceMethodEventArgs.cs
- WebEventTraceProvider.cs
- WebPageTraceListener.cs
- UnconditionalPolicy.cs
- FormViewDeletedEventArgs.cs
- OleDbRowUpdatingEvent.cs
- QualificationDataItem.cs
- PreservationFileReader.cs
- NumericUpDown.cs
- UpdatePanelControlTrigger.cs
- DataListItemEventArgs.cs
- SizeFConverter.cs
- MasterPageParser.cs
- ByteAnimationBase.cs
- SocketPermission.cs
- DictionaryEntry.cs
- TimeoutException.cs
- UInt64.cs
- WebControlParameterProxy.cs
- QilBinary.cs
- XmlSchemaComplexContentExtension.cs
- RadioButtonStandardAdapter.cs
- ConfigurationSettings.cs
- HMACSHA512.cs
- XmlILStorageConverter.cs
- ContainerVisual.cs
- XmlCharCheckingReader.cs
- CodeParameterDeclarationExpressionCollection.cs
- SafeHandles.cs
- CacheChildrenQuery.cs
- AdornerPresentationContext.cs
- FileUpload.cs
- Assert.cs
- CachedPathData.cs
- OleDbException.cs
- CompensationTokenData.cs
- DocumentSequence.cs
- SmtpFailedRecipientException.cs
- Matrix3D.cs
- MobileFormsAuthentication.cs
- HelloOperationAsyncResult.cs
- Run.cs
- ResXResourceReader.cs
- XmlStreamStore.cs
- SystemColors.cs
- TextTreeTextBlock.cs
- _CommandStream.cs
- ViewgenGatekeeper.cs
- StateBag.cs
- SqlDuplicator.cs
- QueryCursorEventArgs.cs
- ListBase.cs
- ObjectConverter.cs
- StrongNameKeyPair.cs
- ProfessionalColorTable.cs
- ObjectSecurity.cs
- TreeView.cs
- DateTimeParse.cs
- ImageAutomationPeer.cs
- RegistrationServices.cs
- BitmapEffectCollection.cs
- RenderContext.cs
- SafeNativeMethods.cs
- InternalBufferOverflowException.cs
- EndpointDispatcher.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- EmptyQuery.cs
- EventHandlersStore.cs
- PowerModeChangedEventArgs.cs
- GridItemPattern.cs
- SpecialTypeDataContract.cs
- Graph.cs
- FieldBuilder.cs