* 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 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 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-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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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-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
* 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
* 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
* 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