Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / ImageDrawing.cs / 1305600 / ImageDrawing.cs
//---------------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // Description: ImageDrawing represents a drawing operation that renders // an image into a destination rectangle. // // History: // // 2004/11/17 : timothyc - Created it. // //--------------------------------------------------------------------------- using System.Diagnostics; using System.Windows.Media.Imaging; using MS.Internal; namespace System.Windows.Media { ////// ImageDrawing represents a drawing operation that renders an image into /// a destination rectangle /// public sealed partial class ImageDrawing : Drawing { #region Constructors ////// Default ImageDrawing constructor. /// Constructs an object with all properties set to their default values /// public ImageDrawing() { } ////// Two-argument ImageDrawing constructor. /// Constructs an object with the ImageSource and Rect properties /// set to the value of their respective arguments. /// public ImageDrawing(ImageSource imageSource, Rect rect) { ImageSource = imageSource; Rect = rect; } #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. ctx.DrawImage( ImageSource, 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
- RectAnimationUsingKeyFrames.cs
- Exceptions.cs
- MetadataFile.cs
- ProbeMatchesMessageCD1.cs
- SqlConnection.cs
- GridViewUpdatedEventArgs.cs
- WebBaseEventKeyComparer.cs
- DefaultTextStoreTextComposition.cs
- GrammarBuilderPhrase.cs
- sqlcontext.cs
- AssemblyAttributesGoHere.cs
- SizeConverter.cs
- MatrixStack.cs
- DropSource.cs
- _HeaderInfo.cs
- TextEndOfSegment.cs
- DateRangeEvent.cs
- InvalidContentTypeException.cs
- DocComment.cs
- UnhandledExceptionEventArgs.cs
- PersonalizableTypeEntry.cs
- TableChangeProcessor.cs
- MarkerProperties.cs
- QilLoop.cs
- PeerCollaboration.cs
- BindingSource.cs
- OdbcRowUpdatingEvent.cs
- LayeredChannelFactory.cs
- MachineKeyValidationConverter.cs
- OutputCacheSection.cs
- QilTypeChecker.cs
- HorizontalAlignConverter.cs
- XmlSchemaObject.cs
- SmtpReplyReaderFactory.cs
- SerialPort.cs
- DataGridViewTopRowAccessibleObject.cs
- Matrix3DStack.cs
- EntityDesignerUtils.cs
- TailCallAnalyzer.cs
- OrderedDictionary.cs
- DataTable.cs
- KeyPressEvent.cs
- CheckBoxList.cs
- BasicKeyConstraint.cs
- _AutoWebProxyScriptWrapper.cs
- WmfPlaceableFileHeader.cs
- safePerfProviderHandle.cs
- TextEditorMouse.cs
- SqlDataSourceCommandEventArgs.cs
- lengthconverter.cs
- SendingRequestEventArgs.cs
- XsltConvert.cs
- WebPartRestoreVerb.cs
- TemplateBaseAction.cs
- SQLInt32Storage.cs
- MemoryMappedViewStream.cs
- __Error.cs
- ApplicationFileCodeDomTreeGenerator.cs
- Brush.cs
- RootProfilePropertySettingsCollection.cs
- PropertyStore.cs
- ToolStripItemCollection.cs
- RecognizedAudio.cs
- SuppressMessageAttribute.cs
- NumericUpDownAcceleration.cs
- XmlSchemaIdentityConstraint.cs
- ObjectDataSourceFilteringEventArgs.cs
- SystemPens.cs
- SamlAssertion.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- DocumentPageView.cs
- XPathArrayIterator.cs
- VectorValueSerializer.cs
- EventLogPropertySelector.cs
- DateTimeConverter2.cs
- MessageFormatterConverter.cs
- InvalidCastException.cs
- RegistryPermission.cs
- PersistenceProviderFactory.cs
- CqlParserHelpers.cs
- IdentitySection.cs
- ExtensionSurface.cs
- Timer.cs
- TextDecorationCollection.cs
- Package.cs
- UInt64.cs
- ColorAnimationUsingKeyFrames.cs
- TypeDescriptionProvider.cs
- EnumConverter.cs
- _BaseOverlappedAsyncResult.cs
- DoubleLinkList.cs
- UdpDiscoveryMessageFilter.cs
- DecimalStorage.cs
- HttpInputStream.cs
- Configuration.cs
- XmlEntityReference.cs
- DataGridViewControlCollection.cs
- TableDetailsRow.cs
- List.cs
- ObjectNotFoundException.cs