Commit Graph
135 Commits
Author SHA1 Message Date
Sebastien Pouliot 07be13d622 2008-11-01 Sebastien Pouliot <[email protected]>
* GraphicsPathIterator.cs: Add proper null check that match the same
	behavior that MS has.
	* LinearGradientBrush.cs: Add comments to setter that dont do any null
	check in order to be compatible with MS. Fix InterpolationColors to 
	throw a ArgumentNullException.
	* PathGradientBrush.cs: Add comments to setter that dont do any null
	check in order to be compatible with MS.
	[Found using Gendarme CheckParametersNullityInVisibleMethodsRule]


svn path=/trunk/mcs/; revision=117627
2008-11-02 00:46:24 +00: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
Adar Wesley 5429568b4b 2007-05-21 Adar Wesley <[email protected]>
* Graphics.jvm.cs
	* Pen.jvm.cs
	* Region.jvm.cs: Changed MemberwiseClone to clone.
	* Matrix.jvm.cs: changed MemberwiseClone to clone.
	* LineLayout.jvm.cs: change MemberwiseClone to clone.
 

svn path=/trunk/mcs/; revision=77742
2007-05-21 08:26:57 +00:00
Igor Zelmanovich 3e2972ecb0 2007-05-09 Igor Zelmanovich <[email protected]>
* FontConverter.cs: for TARGET_JVM destructor is not used.

	* AdjustableArrowCap.jvm.cs:
	* CustomLineCap.jvm.cs:
	* GraphicsPath.jvm.cs:
	added MonoNotSupported attributes.			

	* EncoderParameter.jvm.cs: removed destructor, 
	Dispose doesn't throw exception.


svn path=/trunk/mcs/; revision=76989
2007-05-09 08:29:29 +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 f29b9985a4 2006-08-10 Sebastien Pouliot <[email protected]>
* PathGradientBrush.cs: Fix unit tests when running under Windows.

svn path=/trunk/mcs/; revision=63617
2006-08-10 19:16:47 +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
Andrew Skiba 304870c32d TARGET_JVM fixes
svn path=/trunk/mcs/; revision=63431
2006-08-07 15:19:47 +00:00
Sebastien Pouliot 152a212813 2006-08-04 Sebastien Pouliot <[email protected]>
* PathGradientBrush.cs: Fix unit tests wrt libgdiplus return value 
	changes.

svn path=/trunk/mcs/; revision=63355
2006-08-04 13:28:47 +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 94c905a18f 2006-05-21 Sebastien Pouliot <[email protected]>
* CombineMode.cs: Removed [Serializable] from 2.0 profile.
	* CompostingMode.cs: Removed [Serializable] from 2.0 profile.
	* CompostingQuality.cs: Removed [Serializable] from 2.0 profile.
	* CoordinateSpace.cs: Removed [Serializable] from 2.0 profile.
	* DashCap.cs: Removed [Serializable] from 2.0 profile.
	* DashStyle.cs: Removed [Serializable] from 2.0 profile.
	* FillMode.cs: Removed [Serializable] from 2.0 profile.
	* FlushIntention.cs: Removed [Serializable] from 2.0 profile.
	* HatchStyle.cs: Removed [Serializable] from 2.0 profile.
	* InterpolationMode.cs: Removed [Serializable] from 2.0 profile.
	* LinearGradientMode.cs: Removed [Serializable] from 2.0 profile.
	* LineCap.cs: Removed [Serializable] from 2.0 profile.
	* LineJoin.cs: Removed [Serializable] from 2.0 profile.
	* MatrixOrder.cs: Removed [Serializable] from 2.0 profile.
	* PathPointType.cs: Removed [Serializable] from 2.0 profile.
	* PenAlignment.cs: Removed [Serializable] from 2.0 profile.
	* PenType.cs: Removed [Serializable] from 2.0 profile.
	* PixelOffsetMode.cs: Removed [Serializable] from 2.0 profile.
	* QualityMode.cs: Removed [Serializable] from 2.0 profile.
	* SmoothingMode.cs: Removed [Serializable] from 2.0 profile.
	* WarpMode.cs: Removed [Serializable] from 2.0 profile.
	* WrapMode.cs: Removed [Serializable] from 2.0 profile.


svn path=/trunk/mcs/; revision=60926
2006-05-21 14:36:14 +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 05ccd74adc 2006-05-10 Sebastien Pouliot <[email protected]>
* PathGradientBrush.cs: Added MonoTODO to warn about the lack of 
	support, for most cases, when using libgdiplus.


svn path=/trunk/mcs/; revision=60532
2006-05-10 17:29:28 +00:00
Sebastien Pouliot 55f2437598 2006-05-09 Sebastien Pouliot <[email protected]>
* PathGradientBrush.cs: Added missing checks before calling libgdiplus
	(or GDI+).


svn path=/trunk/mcs/; revision=60473
2006-05-09 21:17:42 +00:00
Sebastien Pouliot fd39de8698 2006-05-02 Sebastien Pouliot <[email protected]>
* GraphicsContainer.cs: Change the state from int to uint to match the
	Save/Restore methods (and code). Removed unrequired stuff.


svn path=/trunk/mcs/; revision=60178
2006-05-02 15:25:47 +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 1ad96bcefb 2006-04-28 Sebastien Pouliot <[email protected]>
* ColorBlend.cs: Removed TODO. ColorBlend may not be complete where
	used (e.g. gradients) but the class is complete.
	* CustomLineCap.cs: corcompare fixes. Clone and Dispose() methods are
	not virtual.


svn path=/trunk/mcs/; revision=60050
2006-04-28 18:51:21 +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 dc7a3a1b44 2006-04-10 Sebastien Pouliot <[email protected]>
* 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
2006-04-10 18:40:57 +00:00
Sebastien Pouliot 73a78c6003 2006-03-31 Sebastien Pouliot <[email protected]>
* LinearGradientBrush.cs: Added a [MonoTODO] to the GammaCorrection
	property as this is not used anywhere inside libgdiplus.


svn path=/trunk/mcs/; revision=58840
2006-03-31 12:57:41 +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 38cec3eb75 Matrix.cs: Add missing checks to methods (and fix unit tests).
svn path=/trunk/mcs/; revision=58111
2006-03-17 16:03:55 +00:00
Konstantin Triger 72f894485f use correct properties
svn path=/trunk/mcs/; revision=56573
2006-02-05 14:04:41 +00:00
Sebastien Pouliot efe49f445d 2006-01-27 Sebastien Pouliot <[email protected]>
* Matrix.cs: Ensure we call Marshal.FreeHGlobal even if CheckStatus
	throws an exception.

svn path=/trunk/mcs/; revision=56174
2006-01-27 18:28:21 +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
Konstantin Triger 459555c9d3 text support
svn path=/trunk/mcs/; revision=52965
2005-11-13 11:33:53 +00:00
Konstantin Triger 912cee669c restore quadTo as curveTo affects quality
svn path=/trunk/mcs/; revision=52963
2005-11-13 10:55:09 +00:00
Konstantin Triger c0064d3b49 fixing access modifiers
svn path=/trunk/mcs/; revision=52962
2005-11-13 10:52:20 +00:00
Konstantin Triger 8cf15ec059 forward quadTo to curveTo
svn path=/trunk/mcs/; revision=52411
2005-10-31 15:08:21 +00:00
Vladimir Krasnov 32a6225c6e * Graphics.jvm.cs: Clipping refactoring
fixed FillScaledShape, DrawShape, MeasureDraw, BeginContainer, 	ExcludeClip, IntersectClip, ResetClip, CombineClipArea, RestoreBaseClip, TranslateClip, VisibleClipBounds

* GraphicsState.jvm.cs: fixed ResetState, RestoreBaseClip

svn path=/trunk/mcs/; revision=52083
2005-10-23 15:55:21 +00:00
Vladimir Krasnov 7ff4e4574e * GraphicsPath.jvm.cs: fixed FillMode, ConvertArcAngle, AddPath, CloseFigure
* Bitmap.jvm.cs: fixed InternalSave, ToBufferedImageFormat, Clone
* PlainImage.jvm.cs: fixed Clone
* Graphics.jvm.cs: fixed FillShape, Clear, FillScaledShape

svn path=/trunk/mcs/; revision=51918
2005-10-19 16:24:19 +00:00
Vladimir Krasnov fd6a022f04 * Brush.jvm.cs: added InternalClone() method changed transformation methods access level
* TextureBrush.jvm.cs: refactoring, fixed clone()
* LinearGradientBrush.jvm.cs: fixed clone(), SetBlendTriangularShape, LinearColors, InterpolationColors, GetMedianeEnclosingRect, Init, NativeObject
* PathGradientBrush.jvm.cs: fixed clone()

svn path=/trunk/mcs/; revision=51917
2005-10-19 16:18:19 +00:00
Peter Dennis Bartok a9ccb691e8 2005-10-04 Peter Dennis Bartok <[email protected]>
* Matrix.cs: Call GC.SuppressFinalize with 'this' instead of 'true'


svn path=/trunk/mcs/; revision=51208
2005-10-04 20:45:45 +00:00
Vladimir Krasnov 0c491f7ac5 Brush.jvm.cs: fixed transform methods, createContext
TextureBrush.jvm.cs: implemetated transform, WrapMode, ctors
PathGradientBrush.jvm.cs: implemetated transform, WrapMode, ctors
HatchBrush.jvm.cs: fallback to solid brush

svn path=/trunk/mcs/; revision=50764
2005-09-26 13:43:42 +00:00
Konstantin Triger 9e5e54d01e fix drawing arcs for angles >= 360
svn path=/trunk/mcs/; revision=50040
2005-09-14 16:22:15 +00:00
Konstantin Triger 3687d0c022 transform, container, thin pen
svn path=/trunk/mcs/; revision=49986
2005-09-13 22:02:08 +00:00