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
- UnsafeNativeMethods.cs
- InvalidOleVariantTypeException.cs
- AssemblyUtil.cs
- XhtmlBasicPageAdapter.cs
- EventManager.cs
- InertiaTranslationBehavior.cs
- EntityTypeBase.cs
- AutoResizedEvent.cs
- AcceleratedTokenProviderState.cs
- Image.cs
- DataTableMapping.cs
- DefaultShape.cs
- TypeDelegator.cs
- sqlstateclientmanager.cs
- CompilerTypeWithParams.cs
- RoleGroup.cs
- SafeCryptHandles.cs
- ListManagerBindingsCollection.cs
- UIElement3D.cs
- HttpCookieCollection.cs
- ParseChildrenAsPropertiesAttribute.cs
- SoapIncludeAttribute.cs
- X509Certificate2Collection.cs
- DataControlImageButton.cs
- XmlWriterDelegator.cs
- Symbol.cs
- MetadataUtilsSmi.cs
- BinaryConverter.cs
- ConfigurationCollectionAttribute.cs
- Transform3DCollection.cs
- PropVariant.cs
- SiteMapDataSourceDesigner.cs
- XMLUtil.cs
- ProfileSettings.cs
- ZipIOCentralDirectoryFileHeader.cs
- SkipQueryOptionExpression.cs
- NamespaceMapping.cs
- Message.cs
- SimpleTypeResolver.cs
- BidPrivateBase.cs
- ColorAnimationUsingKeyFrames.cs
- HelpEvent.cs
- _LocalDataStoreMgr.cs
- RenderCapability.cs
- CacheMode.cs
- RefType.cs
- Int32RectConverter.cs
- SchemaImporterExtensionsSection.cs
- DiffuseMaterial.cs
- TemplateBindingExtensionConverter.cs
- DataBindingList.cs
- ValidatorCollection.cs
- QilExpression.cs
- SplashScreenNativeMethods.cs
- ValidatorUtils.cs
- X509InitiatorCertificateServiceElement.cs
- SqlConnectionStringBuilder.cs
- ColumnWidthChangedEvent.cs
- FileCodeGroup.cs
- ComPlusDiagnosticTraceSchemas.cs
- InvalidEnumArgumentException.cs
- ErrorWrapper.cs
- PostBackTrigger.cs
- ExtendedProtectionPolicy.cs
- ContentPlaceHolder.cs
- FixedLineResult.cs
- HttpRuntime.cs
- ClaimTypeElement.cs
- TemplateField.cs
- TypeDescriptionProvider.cs
- XmlAtomicValue.cs
- CompositeKey.cs
- EndPoint.cs
- HashSetDebugView.cs
- RightNameExpirationInfoPair.cs
- BindingMAnagerBase.cs
- PageContentAsyncResult.cs
- TargetParameterCountException.cs
- DbProviderFactoriesConfigurationHandler.cs
- ExpressionConverter.cs
- Parser.cs
- MarkerProperties.cs
- SchemaAttDef.cs
- MemberJoinTreeNode.cs
- SapiAttributeParser.cs
- ModuleElement.cs
- TypeConverterHelper.cs
- BitmapEffectState.cs
- COM2PropertyBuilderUITypeEditor.cs
- ScriptHandlerFactory.cs
- CustomBinding.cs
- DesignBinding.cs
- GenericTextProperties.cs
- DragEvent.cs
- HashAlgorithm.cs
- NetworkInformationPermission.cs
- NativeWrapper.cs
- Debug.cs
- RegexWorker.cs
- InvalidateEvent.cs