Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / CommonUI / System / Drawing / Advanced / FrameDimension.cs / 1 / FrameDimension.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*************************************************************************\
*
* Copyright (c) 1998-1999, Microsoft Corp. All Rights Reserved.
*
* Module Name:
*
* FrameDimension.cs
*
* Abstract:
*
* Image format constant types
*
* Revision History:
*
* 12/14/1998 [....]
* Created it.
*
\**************************************************************************/
namespace System.Drawing.Imaging {
using System;
using System.Diagnostics;
using System.Drawing;
using System.ComponentModel;
/**
* frame dimension constants (used with Bitmap.FrameDimensionsList)
*/
///
///
///
///
// [TypeConverterAttribute(typeof(FrameDimensionConverter))]
public sealed class FrameDimension {
// Frame dimension GUIDs, from sdkinc\imgguids.h
private static FrameDimension time = new FrameDimension(new Guid("{6aedbd6d-3fb5-418a-83a6-7f45229dc872}"));
private static FrameDimension resolution = new FrameDimension(new Guid("{84236f7b-3bd3-428f-8dab-4ea1439ca315}"));
private static FrameDimension page = new FrameDimension(new Guid("{7462dc86-6180-4c7e-8e3f-ee7333a7a483}"));
private Guid guid;
///
///
/// Initializes a new instance of the class with the specified GUID.
///
public FrameDimension(Guid guid) {
this.guid = guid;
}
///
///
/// Specifies a global unique identifier (GUID)
/// that represents this .
///
public Guid Guid {
get { return guid;}
}
///
///
/// The time dimension.
///
public static FrameDimension Time {
get { return time;}
}
///
///
/// The resolution dimension.
///
public static FrameDimension Resolution {
get { return resolution;}
}
///
///
/// The page dimension.
///
public static FrameDimension Page {
get { return page;}
}
///
///
/// Returns a value indicating whether the
/// specified object is an equivalent to this .
///
public override bool Equals(object o) {
FrameDimension format = o as FrameDimension;
if (format == null)
return false;
return this.guid == format.guid;
}
///
///
/// [To be supplied.]
///
public override int GetHashCode() {
return guid.GetHashCode();
}
///
///
/// Converts this to a human-readable string.
///
public override string ToString() {
if (this == time) return "Time";
if (this == resolution) return "Resolution";
if (this == page) return "Page";
return "[FrameDimension: " + guid + "]";
}
}
}
// 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
- ControlBuilderAttribute.cs
- ToolStripItemTextRenderEventArgs.cs
- EarlyBoundInfo.cs
- DbgUtil.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- VerticalAlignConverter.cs
- WindowsListViewSubItem.cs
- WebEncodingValidator.cs
- XmlDataSourceNodeDescriptor.cs
- AddInAdapter.cs
- URL.cs
- TextTreeTextElementNode.cs
- TypographyProperties.cs
- PassportPrincipal.cs
- DeferredTextReference.cs
- RemotingAttributes.cs
- ToolboxComponentsCreatedEventArgs.cs
- SectionRecord.cs
- Ray3DHitTestResult.cs
- PageBreakRecord.cs
- ProxyGenerator.cs
- ComboBoxAutomationPeer.cs
- figurelength.cs
- BitStream.cs
- BitmapSource.cs
- SerializationBinder.cs
- CodeLinePragma.cs
- InternalConfigSettingsFactory.cs
- WindowsFormsSynchronizationContext.cs
- AuthenticatedStream.cs
- XslTransform.cs
- DataGridItemEventArgs.cs
- GridViewUpdateEventArgs.cs
- FontWeightConverter.cs
- EndOfStreamException.cs
- PersistenceException.cs
- CustomLineCap.cs
- HashRepartitionStream.cs
- AdPostCacheSubstitution.cs
- ConfigurationCollectionAttribute.cs
- Encoder.cs
- TypeInfo.cs
- PropertyManager.cs
- BufferedGraphicsManager.cs
- FeedUtils.cs
- ProxyElement.cs
- sqlpipe.cs
- GridViewCancelEditEventArgs.cs
- AmbientValueAttribute.cs
- MdiWindowListItemConverter.cs
- BitmapDecoder.cs
- TextRangeProviderWrapper.cs
- TreeNodeStyleCollectionEditor.cs
- ExpanderAutomationPeer.cs
- TextSpanModifier.cs
- ResourceWriter.cs
- LazyTextWriterCreator.cs
- TemplateContainer.cs
- ObjectQueryState.cs
- SmtpMail.cs
- HelpPage.cs
- DynamicValueConverter.cs
- ToolStripDropTargetManager.cs
- ClipboardData.cs
- WindowsNonControl.cs
- BoolExpr.cs
- Compilation.cs
- CompositeFontFamily.cs
- TriggerBase.cs
- WhitespaceRule.cs
- DataControlImageButton.cs
- Control.cs
- ValidatorCollection.cs
- SqlConnectionManager.cs
- KeyProperty.cs
- Error.cs
- BasePropertyDescriptor.cs
- UserControl.cs
- MetroSerializationManager.cs
- WebCodeGenerator.cs
- SizeKeyFrameCollection.cs
- xmlglyphRunInfo.cs
- InfoCardSymmetricCrypto.cs
- coordinator.cs
- XmlLinkedNode.cs
- HtmlTableRowCollection.cs
- BuildProviderAppliesToAttribute.cs
- PointAnimationBase.cs
- EpmContentSerializerBase.cs
- SingleObjectCollection.cs
- IncrementalHitTester.cs
- WinInetCache.cs
- TextDecorationUnitValidation.cs
- MediaScriptCommandRoutedEventArgs.cs
- CompatibleComparer.cs
- XmlBindingWorker.cs
- KeyValueSerializer.cs
- PointConverter.cs
- Itemizer.cs
- GeneralTransform3DGroup.cs