Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CommonUI / System / Drawing / Advanced / GPPOINT.cs / 2 / GPPOINT.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- 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. // //----------------------------------------------------------------------------- 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ToolStripTextBox.cs
- PropertyPath.cs
- WebResourceUtil.cs
- Point3DAnimationUsingKeyFrames.cs
- SynchronizedInputProviderWrapper.cs
- DirectoryNotFoundException.cs
- XmlSchemaAny.cs
- MD5.cs
- CssStyleCollection.cs
- PrimitiveType.cs
- ContextConfiguration.cs
- ScrollItemPatternIdentifiers.cs
- DispatchProxy.cs
- TypeUtils.cs
- AdCreatedEventArgs.cs
- ZipIOCentralDirectoryBlock.cs
- ContentType.cs
- OutOfProcStateClientManager.cs
- IODescriptionAttribute.cs
- _StreamFramer.cs
- StrongNameSignatureInformation.cs
- RtfControls.cs
- DataGridHyperlinkColumn.cs
- LoginUtil.cs
- DelayedRegex.cs
- CacheDependency.cs
- UnauthorizedWebPart.cs
- COM2ICategorizePropertiesHandler.cs
- WeakReadOnlyCollection.cs
- Point3DCollectionConverter.cs
- CapacityStreamGeometryContext.cs
- BulletedList.cs
- RepeaterItemCollection.cs
- PassportIdentity.cs
- ServiceNameElementCollection.cs
- ObjectConverter.cs
- ProtocolsSection.cs
- TemplateBamlRecordReader.cs
- SortedList.cs
- MiniMapControl.xaml.cs
- PrimitiveCodeDomSerializer.cs
- PackageFilter.cs
- GridViewCancelEditEventArgs.cs
- IOThreadTimer.cs
- PersonalizationState.cs
- _SSPISessionCache.cs
- GeneralTransform3DCollection.cs
- PropertyChangingEventArgs.cs
- PageRanges.cs
- storepermissionattribute.cs
- InvokeHandlers.cs
- XmlSerializationReader.cs
- DataColumnMappingCollection.cs
- ValidatorCompatibilityHelper.cs
- AppliedDeviceFiltersEditor.cs
- BaseServiceProvider.cs
- PrintDialog.cs
- CodeAttributeDeclaration.cs
- MetricEntry.cs
- IfAction.cs
- SerializationHelper.cs
- Operator.cs
- TableLayoutPanel.cs
- AttributeEmitter.cs
- MarshalByRefObject.cs
- BinaryMethodMessage.cs
- NotImplementedException.cs
- MasterPage.cs
- WebPartMinimizeVerb.cs
- _HelperAsyncResults.cs
- EllipseGeometry.cs
- SlotInfo.cs
- SmiMetaData.cs
- EventRecord.cs
- RenderOptions.cs
- DesignSurfaceManager.cs
- XmlChildNodes.cs
- Int32Collection.cs
- VisualCollection.cs
- LogEntrySerialization.cs
- XmlAttributeCollection.cs
- BehaviorEditorPart.cs
- ExternalFile.cs
- SurrogateEncoder.cs
- ConstraintManager.cs
- RemoveStoryboard.cs
- PixelFormats.cs
- WebPartChrome.cs
- ExtensionDataObject.cs
- SQLInt64.cs
- StreamResourceInfo.cs
- LineMetrics.cs
- SecurityProtocol.cs
- SemanticKeyElement.cs
- XsltLoader.cs
- ObjectViewEntityCollectionData.cs
- EntityContainerEmitter.cs
- TextBoxBase.cs
- PropertyEntry.cs
- EncodingInfo.cs