52 Commits
Author SHA1 Message Date
Frederik Carlier c238778b63 Use Drawing2D classes from CoreFX 2017-06-15 18:51:09 +02:00
Alexander Köplinger 1ba011835d [System.Drawing] Rename method parameters to match .NET contract 2017-03-16 13:02:09 +01:00
Zoltan Varga 0985d4aa4b [bcl] Remove NET_2_0 defines from the class libs. This has been done using: unifdef -t -DNET_2_0 -o <filename> <filename>. 2015-01-13 15:29:38 -05:00
Sebastien Pouliot 233f3615b3 revert big, unreviewed, broken changes from r104029/30/31
svn path=/trunk/mcs/; revision=104043
2008-05-25 23:11:32 +00:00
Gert Driesen b1ce7f744d * GraphicsPath.cs: Changed argument names to match MS. Changed spaces
to tabs, and removed extra tabs.
* HatchBrush.cs: Changed argument names to match MS.

svn path=/trunk/mcs/; revision=104030
2008-05-25 16:45:09 +00:00
Atsushi Eno 2faded11db 2007-11-13 Atsushi Enomoto <[email protected]>
* GraphicsPath.cs : AddBeziers(Point[]) arg is "params" in 2.0.


svn path=/trunk/mcs/; revision=89541
2007-11-13 10:33:27 +00:00
Sebastien Pouliot dfd2c8407e 2007-10-30 Sebastien Pouliot <[email protected]>
* GraphicsPath.cs: Remove some TODO specific to libgdiplus.


svn path=/trunk/mcs/; revision=88485
2007-10-30 17:49:57 +00:00
Sebastien Pouliot 18873406d0 2006-11-22 Sebastien Pouliot <[email protected]>
* GraphicsPath.cs: Better MonoTODO description.
	* LinearGradientBrush.cs: Better MonoTODO description.


svn path=/trunk/mcs/; revision=68367
2006-11-22 20:09:00 +00:00
Sebastien Pouliot 6162c8e3ed 2006-08-10 Sebastien Pouliot <[email protected]>
* GraphicsPath.cs: Fix unit tests wrt libgdiplus return value change.


svn path=/trunk/mcs/; revision=63595
2006-08-10 15:09:26 +00:00
Sebastien Pouliot bdbacb9a85 2006-08-04 Sebastien Pouliot <[email protected]>
* GraphicsPath.cs: Fix unit tests wrt libgdiplus return value change.


svn path=/trunk/mcs/; revision=63352
2006-08-04 12:57:03 +00:00
Sebastien Pouliot 4203520310 2006-06-08 Sebastien Pouliot <[email protected]>
* GraphicsPath.cs: Update/remove some MonoTODO on IsVisible methods.


svn path=/trunk/mcs/; revision=61589
2006-06-08 21:21:07 +00:00
Sebastien Pouliot 17de26b65d 2006-06-07 Sebastien Pouliot <[email protected]>
* GraphicsPath.cs: IsOutlineVisible throws ArgumentNullException
	if a null pen is supplied. Update/remove some MonoTODO on 
	IsOutlineVisible methods.


svn path=/trunk/mcs/; revision=61526
2006-06-07 13:59:36 +00:00
Sebastien Pouliot 95b88b03da 2006-06-06 Sebastien Pouliot <[email protected]>
* GraphicsPath.cs: Fix IsOutlineVisible wrt API signature change.


svn path=/trunk/mcs/; revision=61496
2006-06-06 17:06:42 +00:00
Sebastien Pouliot 7cfafe47d9 2006-05-24 Sebastien Pouliot <[email protected]>
* GraphicsPath.cs: Remove MonoTODO on GetBounds. For 1.x throw an
	OutOfMemoryException if Widen is called on an empty path.


svn path=/trunk/mcs/; revision=61068
2006-05-24 16:11:43 +00:00
Sebastien Pouliot f87c5219f8 2006-05-12 Sebastien Pouliot <[email protected]>
* GraphicsPath.cs: Fix misnamed GdipAdd*Path*String[I] API (#78383)


svn path=/trunk/mcs/; revision=60662
2006-05-12 19:58:22 +00:00
Sebastien Pouliot 115bdad20a 2006-05-01 Sebastien Pouliot <[email protected]>
* GraphicsPath.cs: Removed MonoTODO on AddCurve methods (it's fixed 
	in libgdiplus).


svn path=/trunk/mcs/; revision=60129
2006-05-01 18:22:07 +00:00
Jordi Mas i Hernandez bd31a8750f 2006-04-29 Jordi Mas i Hernandez <[email protected]>
* GraphicsPath.cs: Fixes use of unasssigned variables


svn path=/trunk/mcs/; revision=60079
2006-04-29 16:58:28 +00:00
Sebastien Pouliot d6c227ce90 2006-04-28 Sebastien Pouliot <[email protected]>
* GraphicsPath.cs: Added MonoTODO on some AddCurve methods because 
	libgdiplus doesn't use the numberOfSegments argument.


svn path=/trunk/mcs/; revision=60039
2006-04-28 15:48:44 +00:00
Sebastien Pouliot 3e2edeb4cc 2006-04-27 Sebastien Pouliot <[email protected]>
* GraphicsPath.cs: Re-write two versions of AddLines method to use 
	GdipAddPathLine2[I] functions. This fix a unit test where we can add
	a single point with those methods. It also prevent multiple managed to
	unmanaged transitions.


svn path=/trunk/mcs/; revision=60003
2006-04-27 18:37:51 +00:00
Sebastien Pouliot f5216a1756 2006-04-27 Sebastien Pouliot <[email protected]>
* GraphicsPath.cs: Fix exception handle in AddString methods to match
	MS behahiour. Updated MonoTODO to reflect current status.


svn path=/trunk/mcs/; revision=59979
2006-04-27 14:23:39 +00:00
Sebastien Pouliot abb1b0114d 2006-04-19 Sebastien Pouliot <[email protected]>
* GraphicsPath.cs: Fix null pen handling in Widen.
	* LinearGradientBrush.cs: Avoid temporary Rectangle local and directly
	get use the instance RectangleF.


svn path=/trunk/mcs/; revision=59645
2006-04-19 15:02:27 +00:00
Sebastien Pouliot c30257b17d 2006-03-22 Sebastien Pouliot <[email protected]>
* GraphicsPath.cs: Call [libgdiplus|GDI+] for AddString (even if it 
	is not yet implemented in libgdiplus).
	* LinearGradientBrush.cs: Update the rectangle when using the internal
	ctor. Fix a few missing validations.


svn path=/trunk/mcs/; revision=58311
2006-03-22 20:22:00 +00:00
Sebastien Pouliot 6e6cb401a3 GraphicsPath.cs: Removed TODO on Flatten methods (now supported in libgdiplus). Added a private constant for FlatnessDefault (0.25). Added MonoTODO on IsVisible* methods (not supported in libgdiplus).
svn path=/trunk/mcs/; revision=56163
2006-01-27 14:42:22 +00:00
Sebastien Pouliot e995f81919 2006-01-16 Sebastien Pouliot <[email protected]>
* GraphicsPath.cs: Updated TODO description on GetBounds as it's now
	only missing support for Pens (when used with libgidplus).


svn path=/trunk/mcs/; revision=55655
2006-01-16 21:23:59 +00:00
Sebastien Pouliot 59031dd362 2006-01-13 Sebastien Pouliot <[email protected]>
* GraphicsPath.cs: Added more parameter checks to methods (to match
	unit tests). Added descriptions to TODOs.
	* PathData.cs: Don't clone the arrays! Removed unused internal 
	properties.


svn path=/trunk/mcs/; revision=55543
2006-01-13 20:04:49 +00:00
Sebastien Pouliot 3c6197c3d0 2006-01-12 Sebastien Pouliot <[email protected]>
* GraphicsPath.cs: Throw an ArgumentException if either PathPoints or
	PathTypes properties are empty (0 length). Note that PathData property
	still works in that case.
	* PathData.cs: Don't clone empty arrays (results in NRE).


svn path=/trunk/mcs/; revision=55444
2006-01-12 18:50:48 +00:00
Geoff Norton c47915ea2a 2005-01-02 Geoff Norton <[email protected]>
* GraphicsPath.cs: Fixed the AddPoints methods.  Fixes bug #70916



svn path=/trunk/mcs/; revision=38230
2005-01-02 17:22:51 +00:00
Ravindra 9904f37266 * gdipFunctions.cs: Corrected signatures of GdipPathIterCopyData and
GdipPathIterEnumerate P/Invoke functions for GraphicsPathIterator.
	* GraphicsPath.cs: Implemented Dispose method and added error
	checking in constructors.
	* GraphicsPathIterator.cs: Fixed CopyData and Enumerate methods.

svn path=/trunk/mcs/; revision=31353
2004-07-22 02:23:44 +00:00
Ravindra e63e0963f8 * GraphicsPathIterator.cs: New implementation using GDI+ APIs.
This change makes this class fit into the rest of the design well
	and also it takes care of a scenario when path gets modified. Old
	implementation was not taking care of this.

svn path=/trunk/mcs/; revision=31236
2004-07-16 16:43:41 +00:00
Ravindra a44076d1a4 Correction to my previous checkin.
svn path=/trunk/mcs/; revision=31175
2004-07-15 11:19:12 +00:00
Ravindra 051d8814cc * GraphicsPath.cs: Implemented PathData property and some formatting.
svn path=/trunk/mcs/; revision=31174
2004-07-15 11:12:03 +00:00
Ravindra 2a54f7ba41 Code cleaning: Changed format of various files to unix from dos.
Also, changed access of instance variables to private in
	some classes.

svn path=/trunk/mcs/; revision=31166
2004-07-15 05:53:10 +00:00
Sachin Kumar 15a49e8b92 Add license and copyright to all source files in System.Drawing
svn path=/trunk/mcs/; revision=29667
2004-06-16 06:32:39 +00:00
Gert Driesen c8514597c4 * GraphicsPath.cs: renamed SetMarker to SetMarkers, to fix
public API to match MS.NET

svn path=/trunk/mcs/; revision=27473
2004-05-16 11:34:27 +00:00
Duncan Mak f7b1c1a722 Instead of casting null to an IntPtr, use IntPtr.Zero instead. Thanks
to Nick Drochak for spotting this.

svn path=/trunk/mcs/; revision=27460
2004-05-15 19:05:00 +00:00
Nick Drochak 3f569a1079 2004-05-14 Nick Drochak <[email protected]>
* GraphicsPath.cs: fix build with csc.  No implicit conversion from
	null to IntPtr.  Bug in mcs?

svn path=/trunk/mcs/; revision=27442
2004-05-15 10:53:40 +00:00
Duncan Mak 0a60e85735 * GraphicsPath.cs (ConvertPoints): Removed, we'll do the
conversion in C.
(GraphicsPath): Use GdipCreatePath2I instead.
(SetMarker, ClearMarkers):
(Flatten, GetBounds, IsOutlineVisible, IsVisible):
(StartFigure, CloseFigure, CloseFigures):
(Warp, Widen): Implemented. I left the MonoTODO attribute on for
the methods where the equivalent C function has not yet been
implemented.

* GraphicsPathIterator.cs (Count): Implemented.

* gdipFunctions.cs (GdipCreatePath2I, GdipAddPathPieI):
(GdipFlattenPath, GdipWarpPath, GdipWidenPath):
(GdipGetPathWorldBounds, GdipGetPathWorldBoundsI): Imported.

svn path=/trunk/mcs/; revision=27424
2004-05-14 19:29:19 +00:00
Sanja Gupta 02bc85cf44 ChangeLog: Updated ChangeLog.
GraphicsPath.cs: Added stub for missing method CloseFigure().

svn path=/trunk/mcs/; revision=27215
2004-05-13 03:06:41 +00:00
Duncan Mak b1c50589c8 * GraphicsPath.cs (GraphicsPath): Filled out the missing
constructors.
(ConvertPoints): New helper function. Converts a Point array to a
PointF array.

* gdipFunctions.cs (GdipCreatePath2): Fixed signature.

* pie.cs: Save to PNG, instead of BMP.

svn path=/trunk/mcs/; revision=25125
2004-04-07 02:19:42 +00:00
Jordi Mas i Hernandez be9e053790 added missing members
svn path=/trunk/mcs/; revision=25044
2004-04-05 15:50:40 +00:00
Duncan Mak e052b7bdd0 * GraphicsPath.cs (AddCurve, AddClosedCurve): Added all overloads.
* Graphics.cs (DrawCurve): Call the correct GDI+ wrappers.

* gdipFunctions.cs (GdipAddPathCurveI):
(GdipAddPathCurve2, GdipAddPathCurve2I):
(GdipAddPathCurve3, GdipAddPathCurve3I):
(GdipAddPathClosedCurve, GdipAddPathClosedCurveI):
(GdipAddPathClosedCurve2, GdipAddPathClosedCurve2I): Added new
wrappers from GDI+.

svn path=/trunk/mcs/; revision=24936
2004-04-02 01:20:34 +00:00
Duncan Mak a381c8cfaa * GraphicsPath.cs (PathCount): Corrected. The name should be PointCount.
(AddPath): Implemented.

* RectangleF.cs: Changed the internal structure from a PointF,
SizeF to floats in order to match the layout from the C API.

svn path=/trunk/mcs/; revision=23725
2004-03-05 03:27:16 +00:00
Duncan Mak b84ccfd050 (AddPie): Corrected arguments sent to P/Invoke. This fixes the strange
NaNs we were getting when we tried to draw Paths with a Pie figure.

svn path=/trunk/mcs/; revision=22616
2004-01-30 19:40:18 +00:00
Jordi Mas i Hernandez a7de5f45cf more functions implemented in graphics.cs
svn path=/trunk/mcs/; revision=22506
2004-01-26 17:57:37 +00:00
Duncan Mak 636e1eda1f 2004-01-23 Duncan Mak <[email protected]>
* graphics.c (GdipDrawPath): Implemented.

        * Graphics.cs (DrawPath): Implemented.

        * GraphicsPath.cs (AddEllipse): Added.

svn path=/trunk/mcs/; revision=22466
2004-01-24 18:43:58 +00:00
Duncan Mak bfddd84cdb (GdipGetPathTypes, GdipGetPathPoints): Add
OutAttribute to the array argument. This fixes the PathPoints
property in System.Drawing.Drawing2D.GraphicsPath.

svn path=/trunk/mcs/; revision=22371
2004-01-22 01:55:34 +00:00
Duncan Mak dc30685e5f I've been busy with school and also with preparing for the upcoming
release, so I haven't been spending a lot of time on
GraphicsPath. Rather than letting my changes go stale, I'll commit
them now while they are still in a compilable state.

* GraphicsPath.cs: Implemented. Still needs testing, though.
Particular the PathPoints property, I ran into a P/Invoke problem,
I need to first fix that before I can go on with the rest of the testing.

* gdipFunctions.cs: Import functions for GraphicsPath.

* graphics-path.c (GdipGetPathPoints): Fixed.
(GdipCreatePath): Remember to	initialize the arrays instead of
just setting them to NULL.
(GdipGetPathTypes, GdipGetPathPoints): Fix signature.

* Makefile (local_sources): Add graphics-path.c to the build.

* Matrix.cs (Matrix): Removed reference to GpRect/GpRectF.

* Bitmap.cs (LockBits):
* Graphics.cs (DrawString): Removed reference to GpRectF.

* gdipStructs.cs (GpRectF, GpRect, GpPointF, GpPoint):
Removed. Didn't know that structs are laid out sequentially by
default. We don't need these anymore.

svn path=/trunk/mcs/; revision=22282
2004-01-20 04:44:52 +00:00
Miguel de Icaza ce61784792 2003-10-24 Miguel de Icaza <[email protected]>
* SystemBrushes.cs: Some more brushe3s.

	* SystemPens.cs: More pens.

	* Pen.cs: Implement IDisposable, ICloneable.

	* Region.cs: Add some more stubs here.

	* StringFormat.cs: Add some more code here.

2003-10-24  Miguel de Icaza  <[email protected]>

	* GraphicsPath.cs: Stub some more.

svn path=/trunk/mcs/; revision=19365
2003-10-24 20:29:45 +00:00
Alexandre Pigolkine c3af0168a9 checkin for Dennis Hayes <[email protected]>, see ChangeLog
svn path=/trunk/mcs/; revision=12550
2003-03-15 20:13:27 +00:00
Alexandre Pigolkine edde6cf456 checkin for Dennis Hayes, see changeLog for details
svn path=/trunk/mcs/; revision=12099
2003-03-02 09:12:37 +00:00