Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CommonUI / System / Drawing / Advanced / GPPOINT.cs / 1 / GPPOINT.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*************************************************************************\
*
* Copyright (c) 1998-1999, Microsoft Corp. All Rights Reserved.
*
* Module Name:
*
* GPPOINT.cs
*
* Abstract:
*
* Native GDI+ integer coordinate point structure.
*
* Revision History:
*
* 12/14/1998 davidx
* Created it.
*
\**************************************************************************/
namespace System.Drawing.Internal {
using System.Diagnostics;
using System;
using System.Drawing;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential)]
internal class GPPOINT
{
internal int X;
internal int Y;
internal GPPOINT()
{
}
internal GPPOINT(PointF pt)
{
X = (int) pt.X;
Y = (int) pt.Y;
}
internal GPPOINT(Point pt)
{
X = pt.X;
Y = pt.Y;
}
internal PointF ToPoint()
{
return new PointF(X, Y);
}
}
}
// 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
- Int64AnimationUsingKeyFrames.cs
- PasswordBox.cs
- RoutingEndpointTrait.cs
- DBConnection.cs
- XsdDuration.cs
- PluralizationServiceUtil.cs
- TemplateXamlParser.cs
- Pkcs7Signer.cs
- OneOfTypeConst.cs
- Int32Storage.cs
- EdgeProfileValidation.cs
- WizardForm.cs
- DesignerLabelAdapter.cs
- ToolStripDesigner.cs
- CultureTableRecord.cs
- EventWaitHandleSecurity.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- CodeSnippetCompileUnit.cs
- PropertyContainer.cs
- SafeHandle.cs
- ByteAnimation.cs
- CriticalHandle.cs
- SequentialUshortCollection.cs
- SchemaNotation.cs
- HitTestResult.cs
- SafeBuffer.cs
- basecomparevalidator.cs
- IdentityValidationException.cs
- SelectionChangedEventArgs.cs
- DurableEnlistmentState.cs
- RemotingServices.cs
- CurrentChangingEventManager.cs
- Baml2006ReaderFrame.cs
- SafeNativeMethods.cs
- CompositeScriptReferenceEventArgs.cs
- BufferedGraphicsContext.cs
- DocumentPageHost.cs
- EntityDataSourceDesignerHelper.cs
- StyleConverter.cs
- XmlCountingReader.cs
- TrackPoint.cs
- SchemaMapping.cs
- MediaTimeline.cs
- ContextBase.cs
- Command.cs
- SuppressIldasmAttribute.cs
- ListenerElementsCollection.cs
- BinaryCommonClasses.cs
- RecommendedAsConfigurableAttribute.cs
- StorageConditionPropertyMapping.cs
- DropShadowBitmapEffect.cs
- StrokeCollectionDefaultValueFactory.cs
- ModelService.cs
- ListManagerBindingsCollection.cs
- RadioButtonAutomationPeer.cs
- ProcessManager.cs
- SimpleWorkerRequest.cs
- OdbcInfoMessageEvent.cs
- TCPClient.cs
- FixedSOMContainer.cs
- ScaleTransform.cs
- GridViewSortEventArgs.cs
- TokenBasedSet.cs
- TypeReference.cs
- AutomationIdentifier.cs
- ConstraintStruct.cs
- OutputScope.cs
- XslTransform.cs
- RecordsAffectedEventArgs.cs
- TagNameToTypeMapper.cs
- LinkUtilities.cs
- WebPartsSection.cs
- hebrewshape.cs
- RenderCapability.cs
- SystemWebCachingSectionGroup.cs
- HMACSHA256.cs
- StrongNameMembershipCondition.cs
- IERequestCache.cs
- Roles.cs
- TagPrefixCollection.cs
- StreamAsIStream.cs
- UnsafeNativeMethods.cs
- SettingsPropertyIsReadOnlyException.cs
- LocalIdKeyIdentifierClause.cs
- SafeFileMappingHandle.cs
- FrameworkObject.cs
- NavigateEvent.cs
- Attributes.cs
- _RequestCacheProtocol.cs
- DependencyObjectCodeDomSerializer.cs
- DesigntimeLicenseContext.cs
- UInt32.cs
- GetPageCompletedEventArgs.cs
- HtmlImage.cs
- WCFModelStrings.Designer.cs
- DesignRelation.cs
- NativeMethodsOther.cs
- Mutex.cs
- SubqueryRules.cs
- NativeMethods.cs