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
- StatusBarPanel.cs
- CustomValidator.cs
- ApplicationSecurityInfo.cs
- WebPartConnectionsConnectVerb.cs
- HtmlEmptyTagControlBuilder.cs
- OlePropertyStructs.cs
- DirectionalLight.cs
- IconHelper.cs
- embossbitmapeffect.cs
- SqlOuterApplyReducer.cs
- EmptyEnumerator.cs
- Ref.cs
- CustomCategoryAttribute.cs
- PropertyIDSet.cs
- Reference.cs
- ResourceWriter.cs
- AutomationProperty.cs
- RefExpr.cs
- AudioFormatConverter.cs
- ArrayExtension.cs
- BasicHttpSecurityElement.cs
- PrintingPermissionAttribute.cs
- PageStatePersister.cs
- Int16KeyFrameCollection.cs
- UnhandledExceptionEventArgs.cs
- WindowsListViewGroupHelper.cs
- VectorCollectionConverter.cs
- GrammarBuilderWildcard.cs
- CustomBindingElement.cs
- XmlAggregates.cs
- SemanticResolver.cs
- CommentEmitter.cs
- RSACryptoServiceProvider.cs
- basecomparevalidator.cs
- XmlElementAttributes.cs
- TraceXPathNavigator.cs
- FacetValues.cs
- WebPartEditorCancelVerb.cs
- CodeStatement.cs
- ClosableStream.cs
- UserControlBuildProvider.cs
- PersonalizationDictionary.cs
- HelpProvider.cs
- FlowLayoutSettings.cs
- DropSource.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- RepeaterItem.cs
- WebServiceHost.cs
- Point3D.cs
- ClaimComparer.cs
- PerformanceCounterCategory.cs
- DeleteHelper.cs
- UnsafeNativeMethods.cs
- ScriptRegistrationManager.cs
- EnumerableRowCollection.cs
- FontStretchConverter.cs
- StartFileNameEditor.cs
- DeclaredTypeElement.cs
- NativeMethods.cs
- Int16Storage.cs
- SkinBuilder.cs
- DispatcherExceptionEventArgs.cs
- ComponentDispatcherThread.cs
- TextEditorCopyPaste.cs
- ResourceDescriptionAttribute.cs
- SecurityDocument.cs
- RtfToXamlLexer.cs
- SecurityTokenParameters.cs
- PathStreamGeometryContext.cs
- ChannelDispatcherCollection.cs
- SafeNativeMethods.cs
- DictionaryEntry.cs
- TabControl.cs
- FileUtil.cs
- AssociationSet.cs
- FileSecurity.cs
- SqlDataSourceCache.cs
- TextSelectionProcessor.cs
- CorrelationTokenInvalidatedHandler.cs
- TagMapInfo.cs
- XPathEmptyIterator.cs
- BitmapEffect.cs
- ToolboxDataAttribute.cs
- SchemaImporterExtension.cs
- IsolatedStorageFileStream.cs
- DataSourceXmlElementAttribute.cs
- GregorianCalendar.cs
- CatalogZone.cs
- WebPartConnectionsCancelEventArgs.cs
- TraceSource.cs
- CellIdBoolean.cs
- PhysicalFontFamily.cs
- StreamingContext.cs
- XamlTypeMapper.cs
- UnsafeNativeMethodsCLR.cs
- GridViewUpdateEventArgs.cs
- ToolStripSettings.cs
- HatchBrush.cs
- UInt16Storage.cs
- TypeElement.cs