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
- BooleanKeyFrameCollection.cs
- InfoCardRSACryptoProvider.cs
- oledbmetadatacollectionnames.cs
- RemotingSurrogateSelector.cs
- ResourceExpressionBuilder.cs
- FontCacheUtil.cs
- QueryTask.cs
- TargetInvocationException.cs
- SqlConnectionStringBuilder.cs
- ObfuscationAttribute.cs
- ClaimComparer.cs
- PbrsForward.cs
- ParallelTimeline.cs
- StoryFragments.cs
- ServiceBusyException.cs
- TraceFilter.cs
- VisualStyleTypesAndProperties.cs
- TreeViewEvent.cs
- EventPropertyMap.cs
- FlowDocumentReaderAutomationPeer.cs
- Emitter.cs
- ComboBoxItem.cs
- MouseEvent.cs
- _ContextAwareResult.cs
- EncryptedType.cs
- Line.cs
- SqlProviderManifest.cs
- GraphicsPath.cs
- BamlLocalizationDictionary.cs
- Accessible.cs
- DataGridPagingPage.cs
- WebProxyScriptElement.cs
- SwitchAttribute.cs
- SoapHeader.cs
- Point3D.cs
- GestureRecognitionResult.cs
- Point4D.cs
- QueryGenerator.cs
- NavigationHelper.cs
- Attributes.cs
- TemplatedMailWebEventProvider.cs
- ByeMessage11.cs
- MergeFilterQuery.cs
- Int64KeyFrameCollection.cs
- CqlIdentifiers.cs
- wgx_exports.cs
- InstanceHandleConflictException.cs
- ModelTreeEnumerator.cs
- FixedDocumentSequencePaginator.cs
- Helpers.cs
- TraceContextEventArgs.cs
- InfoCardService.cs
- ClientBuildManager.cs
- SqlGatherConsumedAliases.cs
- DeclaredTypeElement.cs
- Ref.cs
- XPathAxisIterator.cs
- Logging.cs
- MLangCodePageEncoding.cs
- SqlGenericUtil.cs
- DataColumnMappingCollection.cs
- FrameworkElement.cs
- Oci.cs
- EntityDataSourceSelectedEventArgs.cs
- ToolStripManager.cs
- COM2TypeInfoProcessor.cs
- MouseGestureConverter.cs
- RadialGradientBrush.cs
- XmlMtomReader.cs
- IconBitmapDecoder.cs
- ScrollItemProviderWrapper.cs
- RawStylusInputCustomData.cs
- HandlerBase.cs
- StreamSecurityUpgradeInitiatorBase.cs
- OracleParameterCollection.cs
- CallId.cs
- OutputCacheSettingsSection.cs
- DayRenderEvent.cs
- ConfigWriter.cs
- securitycriticaldata.cs
- SQLDateTimeStorage.cs
- VersionConverter.cs
- CodeMethodInvokeExpression.cs
- PropertyManager.cs
- InheritanceRules.cs
- TdsEnums.cs
- XmlLinkedNode.cs
- PublisherMembershipCondition.cs
- FtpRequestCacheValidator.cs
- WindowsBrush.cs
- RegexParser.cs
- LoginUtil.cs
- OdbcException.cs
- SmiSettersStream.cs
- Baml2006ReaderContext.cs
- XPathNodeIterator.cs
- SrgsDocument.cs
- MissingManifestResourceException.cs
- PageOutputQuality.cs
- BitmapCodecInfo.cs