Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media / ImageSource.cs / 1 / ImageSource.cs
//------------------------------------------------------------------------------ // Microsoft Avalon // Copyright (c) Microsoft Corporation, All Rights Reserved. // // File: ImageSource.cs // //----------------------------------------------------------------------------- using System; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Reflection; using MS.Internal; using System.Diagnostics; using System.Windows.Media; using System.Globalization; using System.Security; using System.Security.Permissions; using System.Runtime.InteropServices; using System.Windows.Media.Animation; using System.Windows.Media.Composition; using System.Windows.Markup; using MS.Win32; namespace System.Windows.Media { #region ImageSource ////// Interface for Bitmap Sources, included decoders and effects /// [TypeConverter(typeof(System.Windows.Media.ImageSourceConverter))] [ValueSerializer(typeof(ImageSourceValueSerializer))] [Localizability(LocalizationCategory.None, Readability = Readability.Unreadable)] public abstract partial class ImageSource : Animatable { #region Constructor ////// Don't allow 3rd party extensibility. /// internal ImageSource() { } #endregion Constructor ////// Get the width of the image in measure units (96ths of an inch). /// abstract public double Width { get; } ////// Get the height of the image in measure units (96ths of an inch). /// abstract public double Height { get; } ////// Get the metadata associated with this image source /// abstract public ImageMetadata Metadata { get; } ////// Get the Size associated with this image source /// internal virtual Size Size { get { return new Size(Width, Height); } } #region ToInstanceDescriptor ////// Can serialze "this" to a string /// internal virtual bool CanSerializeToString() { return false; } #endregion ////// Derived classes must override this method and update realizations on dependent /// resources if required. /// internal virtual void UpdateRealizations(RealizationContext ctx) { return; } } #endregion // ImageSource } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HttpStreamMessageEncoderFactory.cs
- CryptoApi.cs
- BinaryObjectReader.cs
- PositiveTimeSpanValidatorAttribute.cs
- DocumentPageViewAutomationPeer.cs
- DataRelationCollection.cs
- DataGridViewTopLeftHeaderCell.cs
- HandlerBase.cs
- ScrollItemPatternIdentifiers.cs
- RowCache.cs
- XPathNavigatorKeyComparer.cs
- ServiceInfo.cs
- DateTimeOffsetConverter.cs
- EditingMode.cs
- ImageMap.cs
- JulianCalendar.cs
- KeysConverter.cs
- Rotation3DAnimation.cs
- Brush.cs
- ChameleonKey.cs
- XPathParser.cs
- _SpnDictionary.cs
- CapacityStreamGeometryContext.cs
- ping.cs
- RightsManagementLicense.cs
- SerializationAttributes.cs
- MainMenu.cs
- KeyFrames.cs
- WmlTextViewAdapter.cs
- ReachDocumentSequenceSerializerAsync.cs
- InputBinding.cs
- HandlerFactoryWrapper.cs
- DocumentPageViewAutomationPeer.cs
- ProviderMetadata.cs
- AppendHelper.cs
- CircleHotSpot.cs
- Brush.cs
- _UriSyntax.cs
- CurrentChangingEventManager.cs
- GCHandleCookieTable.cs
- InstanceKeyCompleteException.cs
- BoundField.cs
- ScrollItemProviderWrapper.cs
- PageCatalogPart.cs
- LassoHelper.cs
- ExtendedPropertyInfo.cs
- ContactManager.cs
- MailMessage.cs
- EntityDataSourceViewSchema.cs
- Configuration.cs
- DataGridViewAdvancedBorderStyle.cs
- SupportingTokenProviderSpecification.cs
- TextProperties.cs
- GenerateTemporaryAssemblyTask.cs
- XmlAtomErrorReader.cs
- BufferedStream.cs
- DebugView.cs
- ContentElement.cs
- TemplatePropertyEntry.cs
- WebRequest.cs
- RelationshipConverter.cs
- ProfileGroupSettings.cs
- Propagator.cs
- Menu.cs
- OutputChannel.cs
- WebConfigurationHostFileChange.cs
- WebPartUtil.cs
- UserControlBuildProvider.cs
- NominalTypeEliminator.cs
- X509Chain.cs
- RectIndependentAnimationStorage.cs
- InfoCardSchemas.cs
- ConfigDefinitionUpdates.cs
- TreeViewImageGenerator.cs
- __Error.cs
- _CommandStream.cs
- ComponentEditorForm.cs
- SqlNode.cs
- DependencyPropertyHelper.cs
- DbExpressionVisitor.cs
- AnnotationComponentChooser.cs
- RegexNode.cs
- GridProviderWrapper.cs
- FontInfo.cs
- MediaCommands.cs
- XmlCharType.cs
- OracleParameterCollection.cs
- DataControlFieldCell.cs
- SchemaImporterExtensionsSection.cs
- ToolStripRenderEventArgs.cs
- AlignmentXValidation.cs
- XomlCompilerResults.cs
- ServicesUtilities.cs
- CardSpacePolicyElement.cs
- Point.cs
- SQLInt32Storage.cs
- Visual3D.cs
- Types.cs
- EmptyCollection.cs
- OdbcConnectionStringbuilder.cs