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
- CodeLabeledStatement.cs
- ContentHostHelper.cs
- SurrogateEncoder.cs
- Scripts.cs
- BinaryObjectInfo.cs
- RequestCacheEntry.cs
- ListBindableAttribute.cs
- Trace.cs
- Module.cs
- SerializationHelper.cs
- TransformPatternIdentifiers.cs
- SafeIUnknown.cs
- WebControlAdapter.cs
- UrlMappingCollection.cs
- ModelVisual3D.cs
- CustomErrorsSectionWrapper.cs
- FileNotFoundException.cs
- InvalidEnumArgumentException.cs
- SelectedDatesCollection.cs
- QuaternionAnimation.cs
- StructuredCompositeActivityDesigner.cs
- OracleTransaction.cs
- ValidatingPropertiesEventArgs.cs
- StoreItemCollection.Loader.cs
- TextWriterTraceListener.cs
- AdRotatorDesigner.cs
- KeyTimeConverter.cs
- EncoderNLS.cs
- HuffCodec.cs
- SiteIdentityPermission.cs
- BuildProviderAppliesToAttribute.cs
- AttributeUsageAttribute.cs
- ISAPIWorkerRequest.cs
- EdmRelationshipRoleAttribute.cs
- SqlConnection.cs
- Thumb.cs
- CheckedPointers.cs
- EditingCoordinator.cs
- ExpandableObjectConverter.cs
- SpecialFolderEnumConverter.cs
- ErasingStroke.cs
- RtfFormatStack.cs
- XPathChildIterator.cs
- ContainerUIElement3D.cs
- FSWPathEditor.cs
- MatrixTransform.cs
- ConnectionPoint.cs
- HttpWriter.cs
- SqlMethodAttribute.cs
- TrackBar.cs
- MembershipUser.cs
- PagePropertiesChangingEventArgs.cs
- PKCS1MaskGenerationMethod.cs
- XPathNodeInfoAtom.cs
- ToolboxBitmapAttribute.cs
- Transform3D.cs
- UInt32.cs
- TileModeValidation.cs
- DocumentAutomationPeer.cs
- _Events.cs
- FileSystemEventArgs.cs
- TextFindEngine.cs
- CLSCompliantAttribute.cs
- ServerValidateEventArgs.cs
- ScriptingAuthenticationServiceSection.cs
- WebBrowsableAttribute.cs
- DocumentOutline.cs
- SuspendDesigner.cs
- HtmlTextArea.cs
- LambdaCompiler.Logical.cs
- PublisherMembershipCondition.cs
- Token.cs
- ISSmlParser.cs
- BinaryUtilClasses.cs
- PrePostDescendentsWalker.cs
- PageContentAsyncResult.cs
- StringComparer.cs
- SessionParameter.cs
- NullEntityWrapper.cs
- ViewEventArgs.cs
- BypassElementCollection.cs
- FunctionQuery.cs
- BadImageFormatException.cs
- TempEnvironment.cs
- BaseCodeDomTreeGenerator.cs
- WebPartHeaderCloseVerb.cs
- PropertyInfoSet.cs
- SchemaExporter.cs
- GcHandle.cs
- SingleAnimationBase.cs
- Point.cs
- SingleObjectCollection.cs
- ValidationErrorCollection.cs
- ModulesEntry.cs
- WebAdminConfigurationHelper.cs
- LayoutEngine.cs
- AssociationProvider.cs
- PermissionAttributes.cs
- XmlReflectionImporter.cs
- DesignerHierarchicalDataSourceView.cs