Commit Graph
1793 Commits
Author SHA1 Message Date
Geoff Norton 79edc267b1 In System.Drawing:
* carbonFunction.cs: More clipping fixes.  Include a variable to 
	help debug future clipping problems by showing us the clipped mask.

2008-02-01  Geoff Norton  <[email protected]>


svn path=/trunk/mcs/; revision=94561
2008-02-01 20:38:39 +00:00
Geoff Norton eadb33bbe1 In .:
2008-02-01  Geoff Norton  <[email protected]>

	* carbonFunctions.cs: Ensure we save/restore the GState before
	modifying the clipping path as QD contexts can be reused.

2008-02-01  Geoff Norton  <[email protected]>

	* carbonFunction.cs:  Rework the clipping interaction with 
	CoreGraphics.  Our old method was buggy in certain cases causing
	improper / inefficient clip handling.


svn path=/trunk/mcs/; revision=94534
2008-02-01 17:41:24 +00:00
Geoff Norton dc328be2ee In .:
2008-02-01  Geoff Norton  <[email protected]>

	* carbonFunction.cs:  Rework the clipping interaction with 
	CoreGraphics.  Our old method was buggy in certain cases causing
	improper / inefficient clip handling.


svn path=/trunk/mcs/; revision=94533
2008-02-01 17:37:42 +00:00
Geoff Norton 905d29a48f In System.Drawing:
* carbonFunction.cs:  Remove some debug code.  Thanks spouliot.

2008-01-23  Geoff Norton  <[email protected]>


svn path=/trunk/mcs/; revision=93710
2008-01-23 20:41:12 +00:00
Geoff Norton ccf0c2b414 In System.Drawing:
* carbonFunctions.cs: Dont crash when we have an orphaned handle.

2008-01-23  Geoff Norton  <[email protected]>


svn path=/trunk/mcs/; revision=93700
2008-01-23 20:02:04 +00:00
Geoff Norton 0dbd388114 In .:
2008-01-23  Geoff Norton  <[email protected]>

	* carbonFunctions.cs: If we get a -ve size from carbon, swizzle to 
	0 to prevent a OOM from cairo malloc.  Remove support for
	GetCGContextForNSView as its deprecated and doesn't work.
	* gdipFunctions.cs: Refactor the environment variable support out
	and make the Carbon driver the default on a Mac.  Fix RunningOnUnix
	to report true on the mac.
	* Graphics.cs: Drop support for CocoaDrawable.


svn path=/trunk/mcs/; revision=93656
2008-01-23 14:03:22 +00:00
Gert Driesen aeb423b222 * TestGraphics.cs: Added test for bug #355141.
svn path=/trunk/mcs/; revision=93492
2008-01-22 09:51:47 +00:00
Geoff Norton 6d7fb7da31 In .:
2008-01-21  Geoff Norton  <[email protected]>

	* Graphics.cs: Support Graphics.FromHwnd (IntPtr.Zero) on X11
	* carbonFunctions.cs: Support for Graphics.FromHwnd (IntPtr.Zero)
	on Carbon
	* gdipFunctions.cs: Add XDefaultScreen overload.


svn path=/trunk/mcs/; revision=93419
2008-01-21 17:15:38 +00:00
Sebastien Pouliot fc8fa03f7b 2008-01-13 Sebastien Pouliot <[email protected]>
* GDIPlusTest.cs: Don't use internal Unit enum anymore.


svn path=/trunk/mcs/; revision=92811
2008-01-13 17:48:31 +00:00
Sebastien Pouliot fce7752a3d 2008-01-13 Sebastien Pouliot <[email protected]>
* gdipEnums.cs: Remove Unit enum since there's a public version
	(GraphicsUnit) for it.
	* gdipFunctions.cs: Make GDIPlus class static for 2.0 and remove
	new lines (both warnings from Gendarme). Stop using Unit enum.
	* Pen.cs: Stop using Unit enum.


svn path=/trunk/mcs/; revision=92810
2008-01-13 17:47:46 +00:00
Sebastien Pouliot 94386380a3 2008-01-08 Sebastien Pouliot <[email protected]>
* Font.cs: Fix GetHashCode to use the same values as Equals. Fix 
	bug #351647


svn path=/trunk/mcs/; revision=92452
2008-01-08 13:55:14 +00:00
Sebastien Pouliot 79884b099e 2008-01-08 Sebastien Pouliot <[email protected]>
* TestFont.cs: Add test case for GetHashCode from Jonathan Pobst
	for bug #351647


svn path=/trunk/mcs/; revision=92451
2008-01-08 13:54:17 +00:00
Noam Lampert af8af3a329 Make sure test assembly is in classpath
svn path=/trunk/mcs/; revision=91890
2007-12-26 10:12:29 +00:00
Sebastien Pouliot a281e5ad9c 2007-12-19 Sebastien Pouliot <[email protected]>
* TestGraphics.cs: Add test case on TransformPoints for #349800.


svn path=/trunk/mcs/; revision=91635
2007-12-19 16:23:09 +00:00
Sebastien Pouliot 0f398a1e64 2007-12-19 Sebastien Pouliot <[email protected]>
* Graphics.cs: Fix Point/PointF typo in FromUnManagedMemoryToPoint.
	Added a few space to make it easier to read those methods. Fix #349800


svn path=/trunk/mcs/; revision=91634
2007-12-19 16:22:03 +00:00
Atsushi Eno 0ca5485d9a 2007-12-17 Atsushi Enomoto <[email protected]>
* GDIPlusTest.cs : fix test build.


svn path=/trunk/mcs/; revision=91403
2007-12-17 07:46:50 +00:00
Miguel de Icaza 0b7c75e55c 2007-12-16 Miguel de Icaza <[email protected]>
* Image.cs: Use the existing GdipPropertyItem.MarshalTo method to
	conver the PropertyItem into a property item with Sequential
	attached to it, and pass that to unmanaged code.   Fixes #349103.

svn path=/trunk/mcs/; revision=91391
2007-12-16 19:04:34 +00:00
Vladimir Krasnov fca1f2f3dc * ImageCodec.jvm.cs: fixed bitmap resolution
svn path=/trunk/mcs/; revision=91222
2007-12-13 12:02:27 +00:00
Noam Lampert 078bfb7274 Build java configuration using RT of JRE 1.4.2 for support of older java systems
svn path=/trunk/mcs/; revision=91221
2007-12-13 12:01:56 +00:00
Vladimir Krasnov 89e76b7de6 * Bitmap.jvm.cs: ArgumentException on unknown format from stream
svn path=/trunk/mcs/; revision=91108
2007-12-11 15:22:14 +00:00
Andreia Gaita 66182d5e10 * PrintingServicesWin32.cs: Add enumeration flag to get remote
printers as well as locally connected ones. Fixes #325258

2007-12-10  Andreia Gaita <[email protected]>

svn path=/trunk/mcs/; revision=91039
2007-12-10 11:07:22 +00:00
Geoff Norton 6d706ac8b5 2007-12-07 Geoff Norton <[email protected]>
* Graphics.cs: Ensure that we Flush and Synchornize our CGContexts	
	before disposing.  Fixes drawing bugs when drawn out of the event	
	loop and the caller doesn't Flush.	
	* carbonFunctions.cs: Rework the cross-assembly data marshalling to	
	use a delegate as suggested by lupus.

svn path=/trunk/mcs/; revision=90935
2007-12-07 15:02:02 +00:00
Sebastien Pouliot a0a6df5d60 2007-11-19 Sebastien Pouliot <[email protected]>
* ImageAnimator.cs: Check for FrameDimension.Time availability before
	asking the frame count (since MS GDI+ prefers to return an error than
	saying it has a single frame). Fix bug #342733


svn path=/trunk/mcs/; revision=89932
2007-11-19 15:53:42 +00:00
Geoff Norton 6bc6c2e639 2007-11-15 Geoff Norton <[email protected]>
* gdipFunctions.cs: Reflect the renamed environment variable in the new Carbon driver.
        * Graphics.cs: Remove support for the deprecated Cocoa driver until its fixed.


svn path=/trunk/mcs/; revision=89718
2007-11-15 22:38:12 +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 c9d3e9cd45 2007-11-12 Sebastien Pouliot <[email protected]>
* ColorTranslator.cs: Add test case for #340917 (LightGrey).


svn path=/trunk/mcs/; revision=89462
2007-11-12 14:34:56 +00:00
Sebastien Pouliot 9735142a20 2007-11-12 Sebastien Pouliot <[email protected]>
* ColorTranslator.cs: Special case handling for LightGray versus 
	HTML's LightGrey. Fix bug #340917.


svn path=/trunk/mcs/; revision=89461
2007-11-12 14:28:21 +00:00
Geoff Norton c087f9aaea 2007-11-07 Geoff Norton <[email protected]>
* carbonFunctions.cs:
    * Graphics.cs: Use QDBeginCGContext / QDEndCGContext to leverage OS caching
    of CGContexts when possible.  If we are still using the context returned by
    QDBeginCGContext, then create a new CGContext for this graphics object.

svn path=/trunk/mcs/; revision=89166
2007-11-07 21:35:12 +00:00
Geoff Norton 3e61f3f633 2007-11-07 Geoff Norton <[email protected]>
* carbonFunctions.cs:
    * Graphics.cs: QDBeginCGContext does not support nested calls.
    We need to ref count our context but this will have clipping/CTM collisions
    Support old-style context creation as well.

svn path=/trunk/mcs/; revision=89163
2007-11-07 21:11:35 +00:00
Geoff Norton 05558217be 2007-11-07 Geoff Norton <[email protected]>
* carbonFunctions.cs: Code cleanup and refactor to use 
    QDBeginCGContext/QDEndCGContext
    * Graphics.cs: Refactor to use QDBeginCGContext/QDEndCGContext
    rather than the deprecated CreateCGContextForPort.  This has the added
    benefit of the QD system caching CGContexts for us as well.

svn path=/trunk/mcs/; revision=89158
2007-11-07 20:28:43 +00:00
Geoff Norton 4b4d2f757e 2007-11-07 Geoff Norton <[email protected]>
* carbonFunctions.cs: Add CFRelease prototype.
    * Graphics.cs: When we're disposing the graphics context clean up the
    CGContext that we've created for it.

svn path=/trunk/mcs/; revision=89143
2007-11-07 18:28:11 +00:00
Sebastien Pouliot 17755c3ff8 2007-11-06 Sebastien Pouliot <[email protected]>
* TestBitmap.cs: XML serialization test case (#323246).
	* TestImage.cs: XML serialization test case (#323246).


svn path=/trunk/mcs/; revision=88973
2007-11-06 13:46:52 +00:00
Sebastien Pouliot a39ac7b743 2007-11-06 Sebastien Pouliot <[email protected]>
* Bitmap.cs: Add a private, parameter-less, ctor for Bitmap so XML
	serialization is possible under 2.0 (fix for #323246).


svn path=/trunk/mcs/; revision=88972
2007-11-06 13:45:43 +00:00
Sebastien Pouliot 5cef71746d In Test/System.Drawing:
2007-11-05  Sebastien Pouliot  <[email protected]> 

	* Image.cs: Add test cases for the stream position when loading and
	saving bitmaps and metafiles. Some of them are based on Gert Driesen
	samples in #338779

In System.Drawing.Imaging:
2007-11-05  Sebastien Pouliot  <[email protected]> 

	* Metafile.cs: Stream position is not moved for metafiles.

In System.Drawing:
2007-11-05  Sebastien Pouliot  <[email protected]>

	* gdipFunctions.cs: Add a bool parameter to GdiPlusStreamHelper ctor
	to move, or not, the stream position to load/save images.
	* Image.cs: Stream position is moved to 0 when loading images from 
	stream but isn't moved for saving an image to a stream. Fix part of
	#338779 (except that Image.FromFile behave differently for metafiles)


svn path=/trunk/mcs/; revision=88916
2007-11-05 21:11:32 +00:00
Sebastien Pouliot d235db59b1 2007-11-05 Sebastien Pouliot <[email protected]>
* gdipFunctions.cs: Stream position shouldn't be changed when 
	loading images (bug #338779).
	libgdiplus (but it works under Windows, i.e. MS GDI+). #338985

svn path=/trunk/mcs/; revision=88860
2007-11-05 13:19:29 +00:00
Sebastien Pouliot b56dab0b0b 2007-11-05 Sebastien Pouliot <[email protected]>
* Pen.cs: Add a [MonoLimitation] to Pen's Alignment property so that
	the next version of MoMA will report it as not-implemented in 
	libgdiplus (but it works under Windows, i.e. MS GDI+)


svn path=/trunk/mcs/; revision=88859
2007-11-05 13:12:32 +00:00
Geoff Norton 8db71a9c2c 2007-11-01 Geoff Norton <[email protected]>
* carbonFunctions.cs:  Initiali implementation of clipping Z-order masking
    siblings from the context

svn path=/trunk/mcs/; revision=88701
2007-11-02 00:07:32 +00:00
Sebastien Pouliot 15066e6fd3 2007-10-31 Sebastien Pouliot <[email protected]>
* ImageAnimator.cs: Fix delay == 0 to match most browser (imaginative)
	definitions of "0". Don't throw on null images. Synchronize hashtable.
	Remove unrequired loops.


svn path=/trunk/mcs/; revision=88553
2007-10-31 13:51:32 +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 d1af9e6aaf 2007-10-30 Sebastien Pouliot <[email protected]>
* GraphicsPathTest.cs: Added IsVisible test cases on ellipses 
	(#325502)


svn path=/trunk/mcs/; revision=88484
2007-10-30 17:48:55 +00:00
Andreia Gaita 056df5a7ba * SD2K5.csproj: Add 2k5 project
2007-10-22  Andreia Gaita  <[email protected]>

svn path=/trunk/mcs/; revision=87948
2007-10-22 22:33:54 +00:00
Geoff Norton e27dffb19e 2007-10-17 Geoff Norton <[email protected]>
* Graphics.cs: Only synchronize the display on Flush when we actually have
    a CGContext


svn path=/trunk/mcs/; revision=87791
2007-10-18 19:38:25 +00:00
Sebastien Pouliot e5dceccbb8 2007-10-17 Sebastien Pouliot <[email protected]>
* nunit-host-ignore-list: Change host name for DISTRO names.


svn path=/trunk/mcs/; revision=87730
2007-10-18 01:40:59 +00:00
Sebastien Pouliot 346a054b25 2007-10-17 Sebastien Pouliot <[email protected]>
* HostIgnoreList.cs: Now use the DISTRO variable to track tests to
	ignore.


svn path=/trunk/mcs/; revision=87729
2007-10-18 01:40:15 +00:00
Geoff Norton 855ffae09f 2007-10-17 Geoff Norton <[email protected]>
* carbonFunctions.cs: Initial support for clipping children out of the
    CGContext before drawing on it.

svn path=/trunk/mcs/; revision=87709
2007-10-17 20:36:36 +00:00
Geoff Norton 095ead5861 2007-10-09 Geoff Norton <[email protected]>
* carbonFunctions.cs: Correct the PInvoke definition for CGContext*CTM.


svn path=/trunk/mcs/; revision=87235
2007-10-10 01:19:04 +00:00
Ivan Zlatev 145930c252 2007-09-26 Ivan N.Zlatev <[email protected]>
* ColorConverter.cs: During conversion to InstanceDescriptor check
	both IsSystemColor to get a PropertyInfo from type SystemColors 
	and IsKnownColor to get PropertyInfo from type Color.


svn path=/trunk/mcs/; revision=86373
2007-09-25 23:31:32 +00:00
Noam Lampert c1498b1027 Update Java build system
svn path=/trunk/mcs/; revision=85398
2007-09-06 10:20:49 +00:00
Vladimir Krasnov f05a556dcb * ColorTranslator.cs: optimized Html color formatting in ToHtml method
svn path=/trunk/mcs/; revision=84380
2007-08-19 10:55:38 +00:00
Konstantin Triger 21391a1c24 TARGET_JVM: ignore failing test
svn path=/trunk/mcs/; revision=84037
2007-08-14 09:23:44 +00:00