* GraphicsPath.cs: IsOutlineVisible throws ArgumentNullException
if a null pen is supplied. Update/remove some MonoTODO on
IsOutlineVisible methods.
svn path=/trunk/mcs/; revision=61526
* 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
* GraphicsPath.cs: Added MonoTODO on some AddCurve methods because
libgdiplus doesn't use the numberOfSegments argument.
svn path=/trunk/mcs/; revision=60039
* 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
* GraphicsPath.cs: Fix exception handle in AddString methods to match
MS behahiour. Updated MonoTODO to reflect current status.
svn path=/trunk/mcs/; revision=59979
* 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
* 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
* 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
* 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
* 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
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
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
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
(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
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
* 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