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
- HttpRequest.cs
- AppDomainUnloadedException.cs
- DuplicateWaitObjectException.cs
- ColumnResizeAdorner.cs
- SerializationHelper.cs
- CuspData.cs
- BulletChrome.cs
- ExclusiveTcpListener.cs
- SubpageParaClient.cs
- ProgressBarRenderer.cs
- RuleRef.cs
- StoryFragments.cs
- EntityDataSourceSelectingEventArgs.cs
- RemoteAsymmetricSignatureFormatter.cs
- TextParentUndoUnit.cs
- SystemIcmpV6Statistics.cs
- SQLInt32Storage.cs
- Brushes.cs
- FileChangeNotifier.cs
- ViewGenResults.cs
- AdjustableArrowCap.cs
- PropVariant.cs
- AnnotationStore.cs
- TreeNodeCollectionEditor.cs
- XmlRootAttribute.cs
- Selection.cs
- SqlFormatter.cs
- EllipseGeometry.cs
- InvalidCastException.cs
- CopyAttributesAction.cs
- Expr.cs
- AnimationException.cs
- DebugHandleTracker.cs
- WebServiceEnumData.cs
- WebPartCatalogCloseVerb.cs
- PropertyMapper.cs
- GridItem.cs
- UpdateProgress.cs
- XmlAttributeHolder.cs
- invalidudtexception.cs
- cryptoapiTransform.cs
- DomNameTable.cs
- Range.cs
- ToolStripMenuItem.cs
- ByeMessage11.cs
- DbXmlEnabledProviderManifest.cs
- Renderer.cs
- PingOptions.cs
- CodeRegionDirective.cs
- KnownColorTable.cs
- Msec.cs
- OleDbInfoMessageEvent.cs
- EntityClientCacheEntry.cs
- CodeLinePragma.cs
- _SslStream.cs
- PropertyInformation.cs
- InstanceData.cs
- XmlKeywords.cs
- HtmlTableCell.cs
- WindowsFormsLinkLabel.cs
- RuntimeHandles.cs
- DynamicAttribute.cs
- XmlReaderSettings.cs
- WindowsListViewGroup.cs
- PackageDigitalSignatureManager.cs
- ItemChangedEventArgs.cs
- OdbcDataReader.cs
- SiteMapPath.cs
- SplayTreeNode.cs
- LightweightCodeGenerator.cs
- OrderingInfo.cs
- Encoder.cs
- RSAPKCS1SignatureDeformatter.cs
- DeploymentExceptionMapper.cs
- Utils.cs
- Documentation.cs
- DefaultTraceListener.cs
- GridViewAutoFormat.cs
- WebOperationContext.cs
- Transform3DGroup.cs
- ListBoxItem.cs
- SqlCacheDependencySection.cs
- SecurityToken.cs
- UIElement3D.cs
- TransformedBitmap.cs
- Point4D.cs
- MessageSecurityTokenVersion.cs
- AmbientLight.cs
- ApplicationCommands.cs
- ExpressionLink.cs
- Tokenizer.cs
- ExpressionValueEditor.cs
- ListViewTableRow.cs
- Listbox.cs
- ConstrainedDataObject.cs
- XmlAnyAttributeAttribute.cs
- Transform3DGroup.cs
- StoreItemCollection.Loader.cs
- MenuItemCollectionEditorDialog.cs
- DependencyPropertyHelper.cs