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
- MenuItemAutomationPeer.cs
- ConnectionPoolManager.cs
- PackageFilter.cs
- SharedDp.cs
- Enum.cs
- TextRangeBase.cs
- IndicShape.cs
- Property.cs
- ListViewGroup.cs
- DecimalAnimation.cs
- mediaeventshelper.cs
- TextDecorationCollection.cs
- SmiEventSink_DeferedProcessing.cs
- Int32CollectionConverter.cs
- HostProtectionPermission.cs
- SQLStringStorage.cs
- WebPermission.cs
- UMPAttributes.cs
- WizardStepBase.cs
- TextEditorMouse.cs
- CodeThrowExceptionStatement.cs
- FixedBufferAttribute.cs
- RegexStringValidatorAttribute.cs
- AnonymousIdentificationSection.cs
- HtmlSelect.cs
- PropertyToken.cs
- hresults.cs
- ResourcePermissionBaseEntry.cs
- ScriptModule.cs
- SpnegoTokenAuthenticator.cs
- DataGridViewComboBoxColumnDesigner.cs
- GetPolicyDetailsRequest.cs
- ManipulationDeltaEventArgs.cs
- FontInfo.cs
- DelegatedStream.cs
- TouchDevice.cs
- ComponentEvent.cs
- TextTreeFixupNode.cs
- DataGrid.cs
- XmlEntityReference.cs
- SignedXml.cs
- SizeFConverter.cs
- NonVisualControlAttribute.cs
- DataGridViewCellStyleChangedEventArgs.cs
- WebPartEventArgs.cs
- SoapExtension.cs
- DataGridViewButtonColumn.cs
- TextDecorationCollectionConverter.cs
- ResourceExpressionBuilder.cs
- SvcMapFile.cs
- InvariantComparer.cs
- XmlSerializationReader.cs
- Context.cs
- PointAnimationClockResource.cs
- DesignerForm.cs
- AdjustableArrowCap.cs
- CollectionBase.cs
- Exceptions.cs
- X509SecurityTokenProvider.cs
- VisualTarget.cs
- XamlToRtfWriter.cs
- PeerPresenceInfo.cs
- CommandField.cs
- Version.cs
- xmlfixedPageInfo.cs
- DecimalAnimationUsingKeyFrames.cs
- Page.cs
- DataGridViewElement.cs
- EntityDescriptor.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- NodeFunctions.cs
- altserialization.cs
- ScriptingJsonSerializationSection.cs
- ButtonRenderer.cs
- XmlDownloadManager.cs
- PersonalizationStateInfo.cs
- ToolboxItem.cs
- StorageFunctionMapping.cs
- FolderBrowserDialog.cs
- SessionChannels.cs
- Function.cs
- Misc.cs
- HeaderUtility.cs
- HttpServerVarsCollection.cs
- Brush.cs
- XmlSchemaSubstitutionGroup.cs
- TokenBasedSet.cs
- XmlHierarchyData.cs
- EntityDataSourceUtil.cs
- OracleMonthSpan.cs
- EdmSchemaAttribute.cs
- NonSerializedAttribute.cs
- HTTPNotFoundHandler.cs
- UdpMessageProperty.cs
- ArrangedElement.cs
- PreparingEnlistment.cs
- FrugalList.cs
- _SSPISessionCache.cs
- FormViewPageEventArgs.cs
- ContextMenu.cs