Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CommonUI / System / Drawing / Advanced / WmfPlaceableFileHeader.cs / 1 / WmfPlaceableFileHeader.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*************************************************************************\
*
* Copyright (c) 1998-1999, Microsoft Corp. All Rights Reserved.
*
* Module Name:
*
* WmfPlaceableFileHeader.cs
*
* Abstract:
*
* Native GDI+ WmfPlaceableFileHeader structure.
*
* Revision History:
*
* 10/21/1999 [....]
* Created it.
*
\**************************************************************************/
namespace System.Drawing.Imaging {
using System.Diagnostics;
using System;
using System.Drawing;
using System.Runtime.InteropServices;
///
///
/// Defines an Placeable Metafile.
///
[StructLayout(LayoutKind.Sequential)]
public sealed class WmfPlaceableFileHeader {
int key = unchecked((int)0x9aC6CDD7);
short hmf;
short bboxLeft;
short bboxTop;
short bboxRight;
short bboxBottom;
short inch;
int reserved;
short checksum;
///
///
/// Indicates the presence of a placeable
/// metafile header.
///
public int Key {
get { return key; }
set { key = value; }
}
///
///
/// Stores the handle of the metafile in
/// memory.
///
public short Hmf {
get { return hmf; }
set { hmf = value; }
}
///
///
/// The x-coordinate of the upper-left corner
/// of the bounding rectangle of the metafile image on the output device.
///
public short BboxLeft {
get { return bboxLeft; }
set { bboxLeft = value; }
}
///
///
///
/// The y-coordinate of the upper-left corner of the bounding rectangle of the
/// metafile image on the output device.
///
///
public short BboxTop {
get { return bboxTop; }
set { bboxTop = value; }
}
///
///
///
/// The x-coordinate of the lower-right corner of the bounding rectangle of the
/// metafile image on the output device.
///
///
public short BboxRight {
get { return bboxRight; }
set { bboxRight = value; }
}
///
///
///
/// The y-coordinate of the lower-right corner of the bounding rectangle of the
/// metafile image on the output device.
///
///
public short BboxBottom {
get { return bboxBottom; }
set { bboxBottom = value; }
}
///
///
/// Indicates the number of twips per inch.
///
public short Inch {
get { return inch; }
set { inch = value; }
}
///
///
/// Reserved. Do not use.
///
public int Reserved {
get { return reserved; }
set { reserved = value; }
}
///
///
///
/// Indicates the checksum value for the
/// previous ten WORDs in the header.
///
///
public short Checksum {
get { return checksum; }
set { checksum = value; }
}
}
}
// 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
- ServerValidateEventArgs.cs
- FullTextState.cs
- MemoryStream.cs
- CompressionTracing.cs
- HttpStaticObjectsCollectionBase.cs
- BindingMAnagerBase.cs
- MatrixTransform.cs
- PackWebResponse.cs
- RequestCacheManager.cs
- EventProvider.cs
- FlowDocument.cs
- FormClosedEvent.cs
- SpellerHighlightLayer.cs
- WebEvents.cs
- InstanceLockQueryResult.cs
- NativeRecognizer.cs
- DynamicActionMessageFilter.cs
- GZipDecoder.cs
- UInt16.cs
- DataBindEngine.cs
- ListView.cs
- UpdatePanel.cs
- PageThemeBuildProvider.cs
- ExitEventArgs.cs
- HostingEnvironmentSection.cs
- GlyphRunDrawing.cs
- SafeRightsManagementQueryHandle.cs
- DataGridViewCellConverter.cs
- XmlSchemaFacet.cs
- TraceContext.cs
- PreviewPageInfo.cs
- DataGridItem.cs
- x509utils.cs
- TextRangeEditTables.cs
- VirtualizingStackPanel.cs
- RegistryExceptionHelper.cs
- ValueTypeIndexerReference.cs
- DataErrorValidationRule.cs
- GridViewColumnCollection.cs
- SqlNodeAnnotation.cs
- FontInfo.cs
- CachedBitmap.cs
- Crc32.cs
- ByValueEqualityComparer.cs
- WbemProvider.cs
- ContextStaticAttribute.cs
- BitmapDownload.cs
- BitmapMetadataEnumerator.cs
- DataRow.cs
- KeyInfo.cs
- CTreeGenerator.cs
- Logging.cs
- SelectedDatesCollection.cs
- SerialReceived.cs
- DefaultBinder.cs
- ChineseLunisolarCalendar.cs
- AttachmentService.cs
- Iis7Helper.cs
- BypassElement.cs
- ApplicationContext.cs
- DataSvcMapFileSerializer.cs
- GcHandle.cs
- MultiBindingExpression.cs
- CodeNamespaceImportCollection.cs
- Span.cs
- ShutDownListener.cs
- HandledEventArgs.cs
- LinearGradientBrush.cs
- EncoderBestFitFallback.cs
- ComboBox.cs
- WhitespaceRuleReader.cs
- ResumeStoryboard.cs
- SplitterPanel.cs
- Oid.cs
- SynchronizedReadOnlyCollection.cs
- ISessionStateStore.cs
- EnumDataContract.cs
- RecordBuilder.cs
- BamlStream.cs
- ThemeDirectoryCompiler.cs
- RoutedEventHandlerInfo.cs
- RecognizeCompletedEventArgs.cs
- WebDisplayNameAttribute.cs
- SkipQueryOptionExpression.cs
- GridToolTip.cs
- XamlFigureLengthSerializer.cs
- DbConnectionStringBuilder.cs
- HttpRequestCacheValidator.cs
- XmlElementList.cs
- WindowsButton.cs
- JoinGraph.cs
- XamlTypeMapperSchemaContext.cs
- handlecollector.cs
- BaseHashHelper.cs
- FilteredDataSetHelper.cs
- EntityDataSourceSelectingEventArgs.cs
- TrackingExtract.cs
- Configuration.cs
- TextRange.cs
- CaretElement.cs