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
- SimplePropertyEntry.cs
- AsyncResult.cs
- MultiDataTrigger.cs
- AppSettingsExpressionBuilder.cs
- EncryptedReference.cs
- SizeAnimationUsingKeyFrames.cs
- TemplateEditingService.cs
- StylusPointPropertyInfo.cs
- ThreadStateException.cs
- EntityDataSourceWizardForm.cs
- DeviceFiltersSection.cs
- LayoutInformation.cs
- SessionStateSection.cs
- GestureRecognizer.cs
- WebBrowserProgressChangedEventHandler.cs
- RepeaterItemEventArgs.cs
- GlyphInfoList.cs
- CellConstantDomain.cs
- HtmlInputRadioButton.cs
- SchemaAttDef.cs
- ObjectPersistData.cs
- UnsafeMethods.cs
- ActivationServices.cs
- UnmanagedMemoryStreamWrapper.cs
- TreeNodeEventArgs.cs
- PropertySourceInfo.cs
- BuildProvider.cs
- ValidationErrorEventArgs.cs
- HtmlTableRow.cs
- TabletDeviceInfo.cs
- XPathNode.cs
- DataGridItemEventArgs.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- AssertFilter.cs
- SelectedDatesCollection.cs
- ProfileServiceManager.cs
- ColumnResult.cs
- SeekStoryboard.cs
- WorkflowInstance.cs
- GiveFeedbackEvent.cs
- DataGridAutoFormatDialog.cs
- SafeTimerHandle.cs
- webproxy.cs
- ScrollChangedEventArgs.cs
- StrongName.cs
- Misc.cs
- DataGridViewAdvancedBorderStyle.cs
- DayRenderEvent.cs
- DataGridRow.cs
- CodeTypeParameterCollection.cs
- UpDownBase.cs
- SettingsPropertyNotFoundException.cs
- SyndicationDeserializer.cs
- TriggerAction.cs
- RoleManagerEventArgs.cs
- ReachSerializerAsync.cs
- StateBag.cs
- MemoryMappedFile.cs
- ContentElement.cs
- ErrorFormatterPage.cs
- XsdCachingReader.cs
- StaticExtensionConverter.cs
- Bookmark.cs
- SafeNativeMethods.cs
- DataKeyArray.cs
- FontClient.cs
- SoapSchemaImporter.cs
- ErrorHandlerModule.cs
- ColorTransformHelper.cs
- XmlBoundElement.cs
- RichTextBox.cs
- TextViewSelectionProcessor.cs
- NavigationWindowAutomationPeer.cs
- DataPager.cs
- IndicShape.cs
- CurrentTimeZone.cs
- RepeaterItemEventArgs.cs
- rsa.cs
- DataControlPagerLinkButton.cs
- TabRenderer.cs
- DataViewSettingCollection.cs
- DiscardableAttribute.cs
- TextSelectionHighlightLayer.cs
- ellipse.cs
- PenLineJoinValidation.cs
- ToolboxDataAttribute.cs
- DrawItemEvent.cs
- SmiGettersStream.cs
- UserValidatedEventArgs.cs
- PrinterSettings.cs
- RegisteredDisposeScript.cs
- WebUtil.cs
- SchemaElementLookUpTableEnumerator.cs
- OrderToken.cs
- DesignerActionVerbItem.cs
- PingReply.cs
- TextTreeExtractElementUndoUnit.cs
- SerializerDescriptor.cs
- SoapFault.cs
- ImageBrush.cs