Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / VideoDrawing.cs / 1305600 / 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 ); } #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 ); } #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
- Control.cs
- HtmlTableRow.cs
- httpapplicationstate.cs
- ProviderSettingsCollection.cs
- DateTimeUtil.cs
- WebServiceMethodData.cs
- DataGridViewRowEventArgs.cs
- XmlLanguageConverter.cs
- FlowLayout.cs
- mediaclock.cs
- DataContract.cs
- SynchronizationValidator.cs
- DataTableExtensions.cs
- AlphaSortedEnumConverter.cs
- CodeCastExpression.cs
- Internal.cs
- graph.cs
- SingleObjectCollection.cs
- CompiledRegexRunner.cs
- IisTraceListener.cs
- FunctionImportMapping.cs
- LogReservationCollection.cs
- TypeForwardedToAttribute.cs
- IPGlobalProperties.cs
- ButtonBase.cs
- PropVariant.cs
- DragAssistanceManager.cs
- EncryptedPackage.cs
- Trigger.cs
- AttributedMetaModel.cs
- WindowsFormsLinkLabel.cs
- ValueQuery.cs
- ConstructorNeedsTagAttribute.cs
- TypeContext.cs
- DotExpr.cs
- MarginsConverter.cs
- AssemblyResourceLoader.cs
- shaperfactory.cs
- CollectionEditor.cs
- BitmapMetadataEnumerator.cs
- MailWebEventProvider.cs
- ItemChangedEventArgs.cs
- NativeMethods.cs
- QilLiteral.cs
- UserPreference.cs
- ReadOnlyAttribute.cs
- MaskInputRejectedEventArgs.cs
- externdll.cs
- BrowserCapabilitiesFactory.cs
- MD5.cs
- RelationshipType.cs
- Menu.cs
- ExpressionEditorSheet.cs
- SiteMapNode.cs
- DataPagerFieldCollection.cs
- _NetworkingPerfCounters.cs
- ApplyHostConfigurationBehavior.cs
- PenCursorManager.cs
- SettingsBindableAttribute.cs
- EffectiveValueEntry.cs
- XmlBinaryWriter.cs
- BaseDataBoundControlDesigner.cs
- ChtmlTextWriter.cs
- XmlSchemaException.cs
- Util.cs
- StringResourceManager.cs
- StronglyTypedResourceBuilder.cs
- TaiwanCalendar.cs
- EntityCommand.cs
- SettingsAttributes.cs
- Debug.cs
- TextEmbeddedObject.cs
- ClrProviderManifest.cs
- StackBuilderSink.cs
- ZoneButton.cs
- SiteMap.cs
- SymbolEqualComparer.cs
- TdsEnums.cs
- SchemaTableOptionalColumn.cs
- MonthCalendar.cs
- LocalBuilder.cs
- CompilationLock.cs
- InvalidWMPVersionException.cs
- ToolStripGripRenderEventArgs.cs
- OperationAbortedException.cs
- ClientUtils.cs
- CustomErrorCollection.cs
- CompilationUtil.cs
- UnauthorizedWebPart.cs
- FormClosingEvent.cs
- ArcSegment.cs
- ProfileManager.cs
- Comparer.cs
- XmlEncoding.cs
- TriState.cs
- Enumerable.cs
- Stroke.cs
- EncoderNLS.cs
- ContentFilePart.cs
- XmlSerializer.cs