Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CommonUI / System / Drawing / Advanced / GPPOINTF.cs / 1 / GPPOINTF.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /*************************************************************************\ * * Copyright (c) 1998-1999, Microsoft Corp. All Rights Reserved. * * Module Name: * * GPPOINTF.cpp * * Abstract: * * Native GDI+ floating-point 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 GPPOINTF { internal float X; internal float Y; internal GPPOINTF() { } internal GPPOINTF(PointF pt) { X = pt.X; Y = pt.Y; } internal GPPOINTF(Point pt) { X = (float) pt.X; Y = (float) 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
- TiffBitmapDecoder.cs
- AdPostCacheSubstitution.cs
- ReadOnlyDataSource.cs
- HttpApplicationStateBase.cs
- WindowAutomationPeer.cs
- HttpInputStream.cs
- XamlGridLengthSerializer.cs
- CodeGotoStatement.cs
- AnonymousIdentificationSection.cs
- StringUtil.cs
- XamlTypeMapper.cs
- SuppressMergeCheckAttribute.cs
- TextElementEnumerator.cs
- ListSourceHelper.cs
- ScriptControl.cs
- XdrBuilder.cs
- GraphicsState.cs
- DWriteFactory.cs
- CheckableControlBaseAdapter.cs
- DictionaryTraceRecord.cs
- MsmqBindingElementBase.cs
- Property.cs
- Timer.cs
- BuildProvider.cs
- VisualStyleElement.cs
- DropDownList.cs
- log.cs
- MethodAccessException.cs
- TagPrefixAttribute.cs
- ComAwareEventInfo.cs
- ObjectAnimationBase.cs
- XPathSelectionIterator.cs
- WebPartPersonalization.cs
- SwitchElementsCollection.cs
- SecurityTimestamp.cs
- BuildProvider.cs
- ChameleonKey.cs
- NavigationProperty.cs
- ImageClickEventArgs.cs
- SessionParameter.cs
- PopupEventArgs.cs
- Size3D.cs
- CommonDialog.cs
- SafeFileHandle.cs
- WebBrowserPermission.cs
- MsmqDecodeHelper.cs
- Literal.cs
- BaseValidator.cs
- ElementNotEnabledException.cs
- DocumentReferenceCollection.cs
- EventLogReader.cs
- IPEndPointCollection.cs
- Range.cs
- SQLResource.cs
- Timer.cs
- RouteParameter.cs
- DataGridPagerStyle.cs
- StoreUtilities.cs
- EventPrivateKey.cs
- StrokeNodeData.cs
- XmlSchemaChoice.cs
- InputScopeManager.cs
- DescriptionCreator.cs
- PermissionSetTriple.cs
- DateTimePicker.cs
- Main.cs
- JoinTreeNode.cs
- BitmapFrameDecode.cs
- DataObject.cs
- DoubleCollection.cs
- Visual3DCollection.cs
- PropertyTabChangedEvent.cs
- ColorContext.cs
- TargetInvocationException.cs
- dtdvalidator.cs
- Point3DIndependentAnimationStorage.cs
- DataGridDesigner.cs
- FormatException.cs
- Command.cs
- IntranetCredentialPolicy.cs
- Ray3DHitTestResult.cs
- DataGridRowDetailsEventArgs.cs
- DiscoveryDocumentSearchPattern.cs
- DocumentOrderComparer.cs
- UnconditionalPolicy.cs
- MergeExecutor.cs
- CompilerParameters.cs
- ClientSideProviderDescription.cs
- DisposableCollectionWrapper.cs
- TableStyle.cs
- _HelperAsyncResults.cs
- InvokeWebServiceDesigner.cs
- SessionEndingCancelEventArgs.cs
- StrokeIntersection.cs
- GestureRecognizer.cs
- ImageCodecInfoPrivate.cs
- ZipFileInfo.cs
- MatrixTransform.cs
- GlobalProxySelection.cs
- ReadOnlyHierarchicalDataSourceView.cs