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
- MasterPageParser.cs
- UriTemplateTable.cs
- AuthenticationSection.cs
- AnnotationComponentManager.cs
- XmlSchemaNotation.cs
- FigureParagraph.cs
- ValidationRuleCollection.cs
- DataServiceException.cs
- PageOrientation.cs
- PartitionedStreamMerger.cs
- BaseTemplateBuildProvider.cs
- StringCollection.cs
- SingleAnimationUsingKeyFrames.cs
- SQLInt64Storage.cs
- SmtpReplyReaderFactory.cs
- RuntimeVariableList.cs
- ContextMenuStripGroupCollection.cs
- Control.cs
- AutomationPropertyInfo.cs
- Restrictions.cs
- TypePresenter.xaml.cs
- MetadataHelper.cs
- Rotation3DAnimationBase.cs
- SafeRightsManagementQueryHandle.cs
- SqlNotificationRequest.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- DropDownList.cs
- WebPartMinimizeVerb.cs
- FileCodeGroup.cs
- Attributes.cs
- ApplicationServicesHostFactory.cs
- Pair.cs
- QualifiedCellIdBoolean.cs
- InvalidComObjectException.cs
- ProjectionCamera.cs
- SystemResources.cs
- MetadataProperty.cs
- PersonalizationStateInfoCollection.cs
- LocalizableAttribute.cs
- ContainerCodeDomSerializer.cs
- ComponentResourceManager.cs
- DecimalAnimationBase.cs
- BuilderPropertyEntry.cs
- TemplateLookupAction.cs
- ExpressionBindingCollection.cs
- InputMethodStateTypeInfo.cs
- DataKey.cs
- PingOptions.cs
- InkPresenter.cs
- SystemColors.cs
- WinFormsComponentEditor.cs
- RangeValidator.cs
- TransformPattern.cs
- sqlinternaltransaction.cs
- DateBoldEvent.cs
- DbConnectionPoolGroupProviderInfo.cs
- CursorInteropHelper.cs
- XPathSelfQuery.cs
- MarkupProperty.cs
- MemberCollection.cs
- TextPenaltyModule.cs
- SmuggledIUnknown.cs
- XmlSchemaProviderAttribute.cs
- EntityDataSource.cs
- FixedSOMImage.cs
- Int32.cs
- LinearGradientBrush.cs
- DiscoveryEndpoint.cs
- XmlC14NWriter.cs
- MachineKeyConverter.cs
- Classification.cs
- CodeObjectCreateExpression.cs
- WebPartConnectionsConfigureVerb.cs
- Number.cs
- UnsafeNativeMethods.cs
- SoapSchemaImporter.cs
- Int32EqualityComparer.cs
- RemotingConfigParser.cs
- AnimationTimeline.cs
- Separator.cs
- HitTestParameters.cs
- ContainerActivationHelper.cs
- LabelExpression.cs
- PasswordBoxAutomationPeer.cs
- TdsParserSafeHandles.cs
- OdbcParameter.cs
- ToolStripSeparatorRenderEventArgs.cs
- EventLogTraceListener.cs
- StreamingContext.cs
- TimeSpanSecondsConverter.cs
- WorkflowApplicationCompletedEventArgs.cs
- _NativeSSPI.cs
- ResetableIterator.cs
- WebSysDescriptionAttribute.cs
- NetCodeGroup.cs
- Transform.cs
- BasePropertyDescriptor.cs
- TypeSystem.cs
- UnsafeNativeMethods.cs
- BinaryReader.cs