* Matrix.cs: Fixed ctors to check for the right number (3) of points.
Added missing 'ref' to rectangles (required with fixed wrapper code).
svn path=/trunk/mcs/; revision=59315
2005-03-15 Jordi Mas i Hernandez <[email protected]>
* GraphicsState.cs: should only contain the nativeState cookie
* Matrix.cs: Fixes Dispose method to allow to be called multiple times
In System.Drawing:
2005-03-15 Jordi Mas i Hernandez <[email protected]>
* Pen.cs: Fixes dispose method to allow to be called multiple times
* Graphics.cs: matrix are saved and restored at gdiplus level
svn path=/trunk/mcs/; revision=41832
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
to avoid calling the Elements property repeatedly.
* graphics-path.c (GdipAddPathLine): Use append instead of
append_point.
(GdipTransformPath): Remember to reset the points after the
transformation.
svn path=/trunk/mcs/; revision=21485
math in unmanaged code instead of doing it in C#.
* gdipFunctions.cs
(GdipResetWorldTransform, GdipSetWorldTransform):
(GdipGetWorldTransform, GdipScaleWorldTransform): Imported.
* Graphics.cs: Remove unnecessary TODO, and reformatted the code.
(transform): Removed this field. Always use the
matrix associated in the GpGraphics ptr.
(DrawBeziers): Implemented.
(DrawLine): Don't need to manually invoke the transform now.
(MultiplyTransform, ResetTransform):
(ScaleTransform, TranslateTransform): Use GDI+ implementation.
(Transform): Instead of storing a Matrix in managed code, use
equivalent GDI+ functions.
* matrix.c (GdipCreateMatrix3, GdipCreateMatrix3I): Implemented.
(GdipCloneMatrix): Fixed.
(GdipShearMatrix, set_shear): Implemented.
* graphics.c:
(GdipGetWorldTransform, GdipMultiplyWorldTransform): Implemented.
(GdipRotatePenTransform, GdipTranslatePenTransform): Use GDI+
functions instead.
* gdip.h
(GdipRotatePenTransform, GdipTranslatePenTransform): Fix
signature.
(GdipCreateMatrix3, GdipCreateMatrix3I): Use const appropriately.
svn path=/trunk/mcs/; revision=20344