Font.cs: Add comment on .ctor(Font,FontStyle) about the lack of null check (compatibi...
[mono.git] / mcs / class / System.Drawing / System.Drawing / ChangeLog
1 2008-11-01  Sebastien Pouliot  <sebastien@ximian.com>
2
3         * Font.cs: Add comment on .ctor(Font,FontStyle) about the lack of
4         null check (compatibility). Add proper (yet compatible ;-) null check
5         to GetHeight(Graphics)
6
7 2008-10-06  Sebastien Pouliot  <sebastien@ximian.com> 
8
9         * Color.cs: Fix Color serialization by changing 'value' visibility
10         to private and make everyone access it thru an internal property. 
11         This also simplify the A, R, G and B properties and probably covers 
12         a few other cases where a similar hack would have been required.
13         [Fix bug #410693]
14         * KnownColors.cs: Assign Color.Value property and not the value field.
15         * RectangleF.cs: Fix edge intersection. Path by Brian Browning.
16         [Fix bug #431587]
17
18 2008-08-08  Gert Driesen  <drieseng@users.sourceforge.net>
19
20         * Icon.cs (InitFromStreamWithSize): Use temp ArrayList for IconDirEntry
21         to avoid empty slots in array. Use actual index of IconDirEntry in
22         array when entries have been skipped. Fixes bug #415581.
23
24 2008-08-06  Gert Driesen  <drieseng@users.sourceforge.net>
25
26         * Icon.cs (InitFromStreamWithSize): Move init of iconDir.idCount
27         and imageData until after the number of entries was determined to
28         cope with skipping of 256x256 icons. Fixes bug #410608.
29
30 2008-07-14  Sebastien Pouliot  <sebastien@ximian.com>
31
32         * gdipFunctions.cs: Fix signature for 
33         GdipGetImageAttributesAdjustedPalette
34         [Part of fix for bug #402172]
35
36 2008-07-07  Sebastien Pouliot  <sebastien@ximian.com>
37
38         * Bitmap.cs: Fix exceptions for some ctors.
39         * Image.cs: Throw ArgumentNullException for null streams.
40         [Fix bug #406763]
41
42 2008-07-03  Sebastien Pouliot  <sebastien@ximian.com>
43
44         * Image.cs: throw NotImplementedException in SetPropertyItem
45         instead of executing broken code. See #406307 for test case.
46
47 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
48
49         * SizeConverter.cs: Fallback to CultureInfo.CurrentCulture 
50         if supplied culture is null.
51         * PointConverter.cs: Fallback to CultureInfo.CurrentCulture 
52         if supplied culture is null.
53
54 2008-05-26  Gert Driesen  <drieseng@users.sourceforge.net>
55
56         * Bitmap.cs: Changed argument names to match MS.
57         * CharacterRange.cs: Changed argument names to match MS. 
58         * Color.cs: Changed argument names to match MS.
59         * Font.cs: Changed argument names to match MS.
60         * FontFamily.cs: Changed argument names to match MS.
61         * Graphics.cs: Changed argument names to match MS.
62         * Image.cs: Changed argument names to match MS.
63         * Icon.cs: Changed argument names to match MS.
64         * IconConverter.cs: Changed argument names to match MS.
65         * ImageAnimator.cs: Changed argument names to match MS.
66         * ImageConverter.cs: Changed argument names to match MS.
67         * ImageFormatConverter.cs: Changed argument names to match MS.
68         * Point.cs: Changed argument names to match MS.
69         * PointF.cs: Changed argument names to match MS.
70         * Rectangle.cs: Changed argument names to match MS.
71         * RectangleF.cs: Changed argument names to match MS.
72         * Region.cs: Changed argument names to match MS.
73         * Size.cs: Changed argument names to match MS.
74         * SizeF.cs: Changed argument names to match MS.
75         * StringFormat.cs: Changed argument names to match MS.
76         * SystemFonts.cs: Changed argument names to match MS.
77         * TextureBrush.cs: Changed argument names to match MS.
78
79 2008-05-19  Sebastien Pouliot  <sebastien@ximian.com>
80
81         * CharacterRange.cs,
82         * ColorConverter.cs,
83         * PointConverter.cs,
84         * RectangleConverter.cs,
85         * SizeConverter.cs,
86         * SizeFConverter.cs: Avoid unboxing structs more than one time.
87         [Found using Gendarme]
88
89 2008-05-18  Sebastien Pouliot  <sebastien@ximian.com>
90
91         * Font.cs: Add comment that downcasting the IntPtr is not an 
92         issue in this case (offset) since the next API requires it.
93         * Icon.cs: Use String.IsNullOrEmpty inside 2.0 code.
94         [Found using Gendarme]
95
96 2008-05-14  Sebastien Pouliot  <sebastien@ximian.com>
97
98         * Graphics.cs: Throw a NotSupportedException if we're ask to create
99         a Graphics from a handle and X is not available (i.e. XOpenDisplay 
100         returns NULL). Easier to diagnose than a SIGSEGV
101
102 2008-03-28  Ivan N. Zlatev  <contact@i-nz.net>
103
104         * IconConverter.cs: Convert null to "(none)".
105
106 2008-03-26  Kornél Pál  <kornelpal@gmail.com>
107
108         * ComIStreamWrapper.cs: Seek: remove read-only case. CopyTo: avoid allocating
109         large buffer. Commit: call SetSizeToPosition.
110
111 2008-03-22  Sebastien Pouliot  <sebastien@ximian.com>
112
113         * Graphics.cs: Fix typo in exception and provide a bit more details.
114
115 2008-03-21  Geoff Norton  <gnorton@novell.com>
116
117         * carbonFunctions.cs: Disable QDContext caching for now.  It's
118         causing crashes in the finalizer code.
119
120 2008-03-06  Ivan N. Zlatev  <contact@i-nz.net>
121
122         * ImageFormatConverter.cs: 
123          - String comparison should use the InvariantCulture.
124          - ConvertTo string should return the name for known image formats.
125          [Fixes bug #366570]
126
127 2008-03-04  Sebastien Pouliot  <sebastien@ximian.com>
128
129         * Graphics.cs: Fix CopyFromScreen for X11 when source or destination
130         coordinates are not 0. Fix bug #363881.
131
132 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
133
134         * ImageFormatConverter.cs: Perform a case insensitive comparison 
135         instead of a case sensitive one.
136         [Fixes bug #366567]
137
138 2008-03-03  Sebastien Pouliot  <sebastien@ximian.com>
139
140         * Icon.cs: Don't require icon entries when creating a new icon 
141         (since they won't exist if we create the icon from an handle).
142         Also avoid a step when cloning. Fix bug #366485
143
144 2008-02-10  Sebastien Pouliot  <sebastien@ximian.com>
145
146         * gdipFunctions.cs: Seal GdiPlusStreamHelper class. Found using
147         Gendarme.
148         * carbonFunctions.cs: Seal Carbon class before 2.0, make it static
149         from 2.0. Issues reported by Gendarme.
150         * ColorConverter.cs: Seal internal IComparer class CompareColors. 
151         Found using Gendarme.
152         * FontConverter.cs: Don't ignore result of String.Trim. Found
153         using Gendarme.
154         * Graphics.cs: Document unused FillMode on DrawCloseCurve (part 
155         of the API but unused) and remove unused internal code. Both found
156         using Gendarme.
157         * SRDescriptionAttribute.cs: Seal internal attribute. Found using
158         Gendarme.
159
160 2008-02-01  Geoff Norton  <gnorton@novell.com>
161
162         * carbonFunction.cs: More clipping fixes.  Include a variable to 
163         help debug future clipping problems by showing us the clipped mask.
164
165 2008-02-01  Geoff Norton  <gnorton@novell.com>
166
167         * carbonFunctions.cs: Ensure we save/restore the GState before
168         modifying the clipping path as QD contexts can be reused.
169
170 2008-02-01  Geoff Norton  <gnorton@novell.com>
171
172         * carbonFunction.cs:  Rework the clipping interaction with 
173         CoreGraphics.  Our old method was buggy in certain cases causing
174         improper / inefficient clip handling.
175
176 2008-01-23  Geoff Norton  <gnorton@novell.com>
177
178         * carbonFunction.cs:  Remove some debug code.  Thanks spouliot.
179
180 2008-01-23  Geoff Norton  <gnorton@novell.com>
181
182         * carbonFunctions.cs: Dont crash when we have an orphaned handle.
183
184 2008-01-23  Geoff Norton  <gnorton@novell.com>
185
186         * carbonFunctions.cs: If we get a -ve size from carbon, swizzle to 
187         0 to prevent a OOM from cairo malloc.  Remove support for
188         GetCGContextForNSView as its deprecated and doesn't work.
189         * gdipFunctions.cs: Refactor the environment variable support out
190         and make the Carbon driver the default on a Mac.  Fix RunningOnUnix
191         to report true on the mac.
192         * Graphics.cs: Drop support for CocoaDrawable.
193
194 2008-01-21  Geoff Norton  <gnorton@novell.com>
195
196         * Graphics.cs: Support Graphics.FromHwnd (IntPtr.Zero) on X11
197         * carbonFunctions.cs: Support for Graphics.FromHwnd (IntPtr.Zero)
198         on Carbon
199         * gdipFunctions.cs: Add XDefaultScreen overload.
200
201 2008-01-13  Sebastien Pouliot  <sebastien@ximian.com>
202
203         * gdipEnums.cs: Remove Unit enum since there's a public version
204         (GraphicsUnit) for it.
205         * gdipFunctions.cs: Make GDIPlus class static for 2.0 and remove
206         new lines (both warnings from Gendarme). Stop using Unit enum.
207         * Pen.cs: Stop using Unit enum.
208
209 2008-01-08  Sebastien Pouliot  <sebastien@ximian.com>
210
211         * Font.cs: Fix GetHashCode to use the same values as Equals. Fix 
212         bug #351647
213
214 2007-12-19  Sebastien Pouliot  <sebastien@ximian.com>
215
216         * Graphics.cs: Fix Point/PointF typo in FromUnManagedMemoryToPoint.
217         Added a few space to make it easier to read those methods. Fix #349800
218
219 2007-12-16  Miguel de Icaza  <miguel@novell.com>
220
221         * Image.cs: Use the existing GdipPropertyItem.MarshalTo method to
222         conver the PropertyItem into a property item with Sequential
223         attached to it, and pass that to unmanaged code.   Fixes #349103.
224
225 2007-12-11  Vladimir Krasnov  <vladimirk@mainsoft.com>
226
227         * Bitmap.jvm.cs: ArgumentException on unknown format from stream
228
229 2007-12-07  Geoff Norton  <gnorton@novell.com>
230
231         * Graphics.cs: Ensure that we Flush and Synchornize our CGContexts
232         before disposing.  Fixes drawing bugs when drawn out of the event
233         loop and the caller doesn't Flush.
234         * carbonFunctions.cs: Rework the cross-assembly data marshalling to
235         use a delegate as suggested by lupus.
236
237 2007-11-19  Sebastien Pouliot  <sebastien@ximian.com>
238
239         * ImageAnimator.cs: Check for FrameDimension.Time availability before
240         asking the frame count (since MS GDI+ prefers to return an error than
241         saying it has a single frame). Fix bug #342733
242
243 2007-11-15  Geoff Norton  <gnorton@novell.com>
244
245         * gdipFunctions.cs: Reflect the renamed environment variable in the new Carbon driver.
246         * Graphics.cs: Remove support for the deprecated Cocoa driver until its fixed.
247
248 2007-11-12  Sebastien Pouliot  <sebastien@ximian.com>
249
250         * ColorTranslator.cs: Special case handling for LightGray versus 
251         HTML's LightGrey. Fix bug #340917.
252
253 2007-11-07  Geoff Norton  <gnorton@novell.com>
254
255         * carbonFunctions.cs: 
256         * Graphics.cs: Use QDBeginCGContext / QDEndCGContext to leverage OS caching
257         of CGContexts when possible.  If we are still using the context returned by
258         QDBeginCGContext, then create a new CGContext for this graphics object.
259
260 2007-11-07  Geoff Norton  <gnorton@novell.com>
261
262         * carbonFunctions.cs: 
263         * Graphics.cs: QDBeginCGContext does not support nested calls.
264         We need to ref count our context but this will have clipping/CTM collisions
265         Support old-style context creation as well.
266
267 2007-11-07  Geoff Norton  <gnorton@novell.com>
268
269         * carbonFunctions.cs: Code cleanup and refactor to use 
270         QDBeginCGContext/QDEndCGContext
271         * Graphics.cs: Refactor to use QDBeginCGContext/QDEndCGContext
272         rather than the deprecated CreateCGContextForPort.  This has the added
273         benefit of the QD system caching CGContexts for us as well.
274
275 2007-11-07  Geoff Norton  <gnorton@novell.com>
276
277         * carbonFunctions.cs: Add CFRelease prototype.
278         * Graphics.cs: When we're disposing the graphics context clean up the
279         CGContext that we've created for it.
280
281 2007-11-06  Sebastien Pouliot  <sebastien@ximian.com>
282
283         * Bitmap.cs: Add a private, parameter-less, ctor for Bitmap so XML
284         serialization is possible under 2.0 (fix for #323246).
285
286 2007-11-05  Sebastien Pouliot  <sebastien@ximian.com>
287
288         * gdipFunctions.cs: Add a bool parameter to GdiPlusStreamHelper ctor
289         to move, or not, the stream position to load/save images.
290         * Image.cs: Stream position is moved to 0 when loading images from 
291         stream but isn't moved for saving an image to a stream. Fix part of
292         #338779 (except that Image.FromFile behave differently for metafiles)
293
294 2007-11-05  Sebastien Pouliot  <sebastien@ximian.com> 
295
296         * gdipFunctions.cs: Stream position shouldn't be changed when 
297         loading images (bug #338779).
298         * Pen.cs: Add a [MonoLimitation] to Pen's Alignment property so that
299         the next version of MoMA will report it as not-implemented in 
300         libgdiplus (but it works under Windows, i.e. MS GDI+). #338985
301
302 2007-11-01  Geoff Norton  <gnorton@novell.com>
303
304         * carbonFunctions.cs:  Initiali implementation of clipping Z-order masking
305         siblings from the context
306
307 2007-10-31  Sebastien Pouliot  <sebastien@ximian.com>
308
309         * ImageAnimator.cs: Fix delay == 0 to match most browser (imaginative)
310         definitions of "0". Don't throw on null images. Synchronize hashtable.
311         Remove unrequired loops.
312
313 2007-10-17  Geoff Norton  <gnorton@novell.com>
314
315         * Graphics.cs: Only synchronize the display on Flush when we actually have
316         a CGContext
317
318 2007-10-17  Geoff Norton  <gnorton@novell.com>
319
320         * carbonFunctions.cs: Initial support for clipping children out of the
321         CGContext before drawing on it.
322
323 2007-10-09  Geoff Norton  <gnorton@novell.com>
324
325         * carbonFunctions.cs: Correct the P/Invoke definition for CGContext*CTM.
326
327 2007-09-26  Ivan N.Zlatev <contact@i-nz.net>
328
329         * ColorConverter.cs: During conversion to InstanceDescriptor check
330         both IsSystemColor to get a PropertyInfo from type SystemColors 
331         and IsKnownColor to get PropertyInfo from type Color.
332
333 2007-08-09  Vladimir Krasnov  <vladimirk@mainsoft.com>
334
335         * ColorTranslator.cs: optimized Html color formatting in ToHtml method
336
337 2007-08-13  Sebastien Pouliot  <sebastien@ximian.com>
338
339         * gdipFunctions.cs: Change GdipMeasureString definition to use unsafe
340         pointers. 
341         * Graphics.cs: Rework MeasureString not to supply integers (characters
342         and lines) as they aren't required for most of it's overloads and 
343         requires extra code/time to calculate inside libgdiplus. Also fix a 
344         possible NRE in MultiplyTransform.
345
346 2007-08-01  Sebastien Pouliot  <sebastien@ximian.com>
347
348         * gdipFunctions.cs: Added definition for GdipCloneFontFamily
349
350 2007-08-01  Vladimir Krasnov  <vladimirk@mainsoft.com>
351
352         * Bitmap.jvm.cs: fixed InternalPixelFormat TYPE_BYTE_GRAY
353
354 2007-05-30  Sebastien Pouliot  <sebastien@ximian.com>
355
356         * Graphics.cs: Refactor [Get|Release]Hdc to get ReleaseHdcInternal
357         working (as long as the HDC comes from GetHdc).
358
359 2007-05-21  Adar Wesley <adarw@mainsoft.com>
360
361         * Graphics.jvm.cs
362         * Pen.jvm.cs
363         * Region.jvm.cs: Changed MemberwiseClone to clone.
364  
365 2007-05-21  Adar Wesley <adarw@mainsoft.com>
366
367         * Font.jvm.cs: added implementation for Equals and GetHashCode.
368
369         * Graphics.jvm.cs: added missing DrawImage overloads, 
370         DrawImageUnscaledAndClipped.
371
372 2007-05-18  Sebastien Pouliot  <sebastien@ximian.com>
373
374         * Icon.cs: Always open icon files as read only. Fix #81669.
375
376 2007-05-15  Sebastien Pouliot  <sebastien@ximian.com>
377
378         * Graphics.cs: Fix DrawImageUnscaled for empty (width or height <= 0)
379         Fix NRE in DrawImageUnscaledAndClipped. Remove lines with only tabs in
380         them.
381         * RectangleF.cs: A rectangle with a negative width or height is also
382         empty.
383
384 2007-05-09 Igor Zelmanovich <igorz@mainsoft.com>
385
386         * FontConverter.cs: for TARGET_JVM destructor is not used.
387
388 2007-05-03 Igor Zelmanovich <igorz@mainsoft.com>
389
390         * ColorConverter.cs: fixed GetStandardValues() for TARGET_JVM
391         * Font.jvm.cs: fixed GetHeight()        
392
393 2007-05-02  Sebastien Pouliot  <sebastien@ximian.com>
394
395         * gdipEnums.cs: Add GetSysColorIndex
396         * gdipStructs.cs: Remove GetSysColorIndex (it's an enum)
397         * KnownColors.cs: Fix Windows desktop colors as GetSysColor returns
398         values in BGR (not RGB).
399
400 2007-05-01  Sebastien Pouliot  <sebastien@ximian.com>
401
402         * KnownColors.cs: Force alpha values (opaque) on Win32's GetSysColor.
403
404 2007-04-30  Sebastien Pouliot  <sebastien@ximian.com>
405
406         * Color.cs: Reflection didn't like the change from int to uint (thanks
407         to Gert for noticing again :-).
408
409 2007-04-29  Konstantin Triger  <kostat@mainsoft.com>
410
411         * Color.cs: FromName - do not throw on unknown color.
412
413 2007-04-26  Sebastien Pouliot  <sebastien@ximian.com>
414
415         * Color.cs: Try to avoid calling GetName in GetHashCode when the color
416         isn't named. Commented code (#81465) to remove the string name member 
417         for the 2.0 profile (to avoid a reference in a struct).
418         * ColorConverter.cs: Use the new KnownColor static uint array.
419         * ColorTranslator.cs: Share code between From[Win32|Ole] (both BGR).
420         Reduce ToHtml switch size (when html name == known color name).
421         * KnownColors.cs: Remove the array of struct for every known colors.
422         Add an array of uint with color values and a method to return the name
423         of a known color. Big reduction of the static ctor code size.
424
425 2007-04-26  Sebastien Pouliot  <sebastien@ximian.com> 
426
427         * gdipFunctions.cs: Add p/invoke definitions for GdipRecordMetafile
428         FromDelegate[I]_linux.
429
430 2007-04-26  Sebastien Pouliot  <sebastien@ximian.com>
431
432         * gdipFunctions.cs: Add p/invoke definitions for GdipRecordMetafile
433         [FileName|FromStream][I].
434
435 2007-04-16  Sebastien Pouliot  <sebastien@ximian.com>
436
437         * Bitmap.cs: Add check in SetPixel for Format16bppGrayScale (but 
438         without requiring a second unmanaged call on each SetPixel call).
439
440 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
441
442         * Brush.cs: Ensure we're zeroing the handle before calling 
443         CheckStatus. Some clean up.
444         * Pen.cs: Ensure we're zeroing the handle before calling CheckStatus.
445         Use Locale.GetText for exceptions.
446
447 2007-04-11  Sebastien Pouliot  <sebastien@ximian.com>
448
449         * Bitmap.cs: Move LockBits validations into unmanaged code.
450         * gdipFunctions.cs: Add mapping for Win32Error in CheckStatus. Add
451         globalization support for CheckStatus and add the GDI+ status code in
452         the error message.
453         * SolidBrush.cs: Clean up and add comments about [un]named colors.
454
455 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
456
457         * Color.cs: Remove duplicate check in == and add better comments
458
459 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com> 
460
461         * Color.cs: Remove hashtables and locks. All color properties are read
462         from KnownColors. Remove extra & 0xFF (typecast to byte is enough).
463         Keep track of the Name property once calculated. When possible (most
464         likely case) don't create the names (strings) in Equals, == and !=
465         * ColorTranslator.cs: Use the new KnownColors instead of the separate
466         NamedColors and SystemColors.
467         * ColorConverter.cs: Use the new KnownColors instead of the separate
468         NamedColors and SystemColors.
469         * gdipFunctions.cs: Moved GetSysColor p/invoke signature here as this
470         class is marked by [SuppressUnmanagedCodeSecurity].
471         * gdipStructs.cs: Moved Windows-specific GetSysColorIndex enum here.
472         * KnownColors.cs: New. Single source for all colors.
473         * SystemColors.cs: Vastly simplified. All color properties are read
474         from KnownColors.
475
476 2007-04-05  Sebastien Pouliot  <sebastien@ximian.com> 
477
478         * gdipFunctions.cs: Remove unused (and not part of GDI+) GdipGetHfont
479         method.
480
481 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
482
483         * Pen.cs: Simplify. Caching the brush still involved too many 
484         unmanaged calls and was hiding libgdiplus bugs (e.g. 81266). Color is
485         still cached (a little less ;-) but needs to stay that way so we keep
486         the color names available (it's the expected behavior).
487
488 2007-03-20  Sebastien Pouliot  <sebastien@ximian.com>
489
490         * Graphics.cs: Replace TODO on all EnumerateMetafile overloads.
491
492 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
493
494         * Font.cs: Add a better exception for trying to create a font
495         where the requested style is not available.  [Fixes #81194]
496
497 2007-03-15  Sebastien Pouliot  <sebastien@ximian.com>
498
499         * ColorConverter.cs: Rewrite the hex color convertion to be more 
500         compatible with MS implementation (fixing NotWorking unit tests) and
501         more endian friendly.
502
503 2007-02-28  Sebastien Pouliot  <sebastien@ximian.com>
504
505         * Font.cs: Remove internal SysFontName setter property and add a new
506         ctor to replace it.
507         * SystemFonts.cs: We can't cache font instance (because anyone can
508         dispose them) so we must return new instances each time.
509
510 2007-02-27  Sebastien Pouliot  <sebastien@ximian.com>
511
512         * Bitmap.cs: Removed unrequired ctors.
513         * TextureBrush.cs: Change which GDI+ calls is used to create the 
514         brush (to better match what you expect from libgdiplus source). Add
515         [MonoLimitation] to ctors accepting ImageAttributes (not supported
516         by libgdiplus). Split some long lines into two lines.
517
518 2007-02-26  Sebastien Pouliot  <sebastien@ximian.com>
519
520         * gdipFunctions.cs: Add p/invoke signature for GDI DeleteObject.
521         * Region.cs: Under Windows use DeleteObject when calling ReleaseHrgn.
522         Fix bug #80956.
523
524 2007-02-21  Sebastien Pouliot  <sebastien@ximian.com>
525
526         * Image.cs: Fix Metefile.ctor usage (to avoid creating, and leaking,
527         an unmanaged metafile object);
528
529 2007-02-16  Sebastien Pouliot  <sebastien@ximian.com>
530
531         * gdipFunctions.cs: Fix some p/invoke definitions (int versus uint) 
532         and add more for metafile functions.
533         * Image.cs: Fix usage of corrected p/invoke signatures.
534
535 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
536
537         * SystemColors.cs: Query Windows for the colors added to this class
538         for 2.0.  (Windows-only path of course.)
539
540 2007-02-13  Sebastien Pouliot  <sebastien@ximian.com>
541
542         * Icon.cs: Ignore Vista 256x256 icons, just like MS does.
543
544 2007-02-09  Sebastien Pouliot  <sebastien@ximian.com>
545
546         * Icon.cs: Resurrected some old Icon to Bitmap code from SVN history
547         to handle convertion for Win32, where MS GDI+ ICO codec doesn't 
548         support all the icon formats supported by the Icon class.
549
550 2007-02-08  Sebastien Pouliot  <sebastien@ximian.com>
551
552         * Bitmap.cs: Adapt code wrt Image changes. Reuse the serialization 
553         ctor from Image to avoid duplicate code.
554         * gdipEnums.cs: Added ImageType. Clean up extra stuff.
555         * gdipFunctions.cs: Added GdipGetImageType and some metafile 
556         definitions.
557         * Image.cs: Refactor code not to create a Bitmap for every images
558         (e.g. FromFile, FromStream) as the result can also be a Metafile.
559
560 2007-01-30  Sebastien Pouliot  <sebastien@ximian.com>
561
562         * Image.cs: Fix serialization of Image/Bitmap that contains ICO. In 
563         this case the image is serialized as a PNG bitmap (note: the ICO codec
564         is a decoder-only codec).
565
566 2007-01-19  Sebastien Pouliot  <sebastien@ximian.com> 
567
568         * Graphics.cs: Fix FromImage to check for indexed images inside
569         managed code (and not GDI+ which will report the wrong error code
570         for the exception we expect).
571         * Image.cs: Remove unused private method IsIndexedPixelFormat.
572
573 2007-01-19  Sebastien Pouliot  <sebastien@ximian.com>
574
575         * Font.cs: Fix calls to GDIPlus.ReleaseDC (missing parameter). This
576         fix the GDI object leaks under Win32 (#80552).
577         * gdipFunctions.cs: Fix ReleaseDC signature (missing hWnd).
578         * Graphics.cs: Fix ReleaseDC signature (missing hWnd) in NET_2_0.
579
580 2007-01-19  Sebastien Pouliot  <sebastien@ximian.com>
581
582         * Font.cs: Under Win32 cache the LOGFONT we use to create the HFONT
583         handle. This "hides" the fact that ToLogFont leaks (#80552).
584
585 2007-01-17  Sebastien Pouliot  <sebastien@ximian.com> 
586
587         * gdipFunctions.cs: Added Win32 CreateIconIndirect and DestoryIcon
588         imports. Both are required under Win32 to get HICON stuff working.
589         Added some GDI+ Metafile related definitions too.
590         * gdipStructs.cs: Update IconInfo structure so it can be used when
591         calling CreateIconIndirect on Win32.
592         * Icon.cs: Add support for handles under Win32.
593
594 2007-01-16  Sebastien Pouliot  <sebastien@ximian.com> 
595
596         * Icon.cs: Implement saving an icon from it's bitmap representation.
597         This allows roundtripped icons (Handle or HICON) to be saved.
598
599 2007-01-15  Sebastien Pouliot  <sebastien@ximian.com>
600
601         * Icon.cs: Refactor Save code to allow saving a single icon size.
602         This allows ToBitmap to produce the right (sized) bitmap wrt the
603         selected icon size. Fix #80509 under UNIX.
604
605 2007-01-15  Sebastien Pouliot  <sebastien@ximian.com> 
606
607         * Bitmap.cs: Make sure we're not building bitmaps using stream that
608         can be disposed (as GDI+ may require access to them anytime);
609         * Icon.cs: Change icon selection to match either width *or* height.
610         * Image.cs: Track user versus internal streams in InitFromStream
611
612 2007-01-12  Sebastien Pouliot  <sebastien@ximian.com>
613
614         * Graphics.cs: Change DrawIcon* methods to use the internal bitmap
615         we keep for the Icon. This is required to let HICON support work with 
616         libgdiplus (and should be faster than creating a new bitmap each time)
617         * Icon.cs: Fix ctor exceptions. Select the correct icon when multiple
618         size are available (and do not match the requested size). Fix handle
619         support for work under UNIX (Win32 support still missing). Keep an
620         internal bitmap for the Icon to use for HICON support.
621
622 2007-01-11  Sebastien Pouliot  <sebastien@ximian.com>
623
624         * Icon.cs: Fix .ctor(string) to load, when available, the 32x32 icon.
625         Remove TARGET_JVM from file (Mainsoft now use Icon2.jvm.cs). Use GDI+
626         to implement ToBitmap method (previous results were wrong).
627
628 2007-01-10  Sebastien Pouliot  <sebastien@ximian.com>
629
630         * Image.cs: Fix Palette to call into GDI+ even for non-indexed images.
631         This case can occurs with the ICOn codec where the returned image is a
632         32bpp ARGB bitmap *with* a palette.
633
634 2007-01-09  Sebastien Pouliot  <sebastien@ximian.com>
635
636         * Font.cs: Unify platform detection code.
637         * gdipFunctions.cs: Unify platform detection code.
638         * Graphics.cs: Unify platform detection code.
639         * Image.cs: Unify platform detection code.
640         * SystemColors.cs: Unify platform detection code.
641
642 2007-01-08  Sebastien Pouliot  <sebastien@ximian.com>
643
644         * gdipStructs.cs: Add support for SignaturePatterns and 
645         SiggnatureMasks values.
646
647 2006-12-30  Alexander Olk  <alex.olk@googlemail.com>
648
649         * gdipFunctions.cs: Don't create "millions" of byte arrays in
650         GdiPlusStreamHelper. Just create a default size array and resize it
651         only when needed. (as an example: the FileDialog sample created more
652         than 1700 new byte arrays on my system before the patch, now only 74)
653
654 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
655
656         * Brush.cs: Fixed line endings.
657         * BufferedGraphicsContext.cs: Fixed line endings.
658         * CharacterRange.cs: Fixed line endings.
659         * Graphics.cs: Fixed line endings.
660         * IDeviceContext.cs: Fixed line endings.
661         * SizeFConverter.cs: Fixed line endings.
662         * SystemBrushes.cs: Fixed line endings.
663         * SystemFonts.cs: Fixed line endings.
664         * SystemPens.cs: Fixed line endings.
665
666 2006-12-22  Sebastien Pouliot  <sebastien@ximian.com>
667
668         * Graphics.cs: Splitted CopyFromScreen into platform specific methods
669         and added MonoLimitations to all overloads. This should get better 
670         results from MoMA.
671
672 2006-12-19  Sebastien Pouliot  <sebastien@ximian.com> 
673
674         * FontFamily.cs: More accurate Mono* attributes to avoid confusion.
675         * Icon.cs: Dummy implementation of ExtractAssociatedIcon to always 
676         return SystemIcons.WinLogo (which is better than throwing an NIE).
677         Updated MonoTODO, to a MonoLimitation, to reflect the change.
678
679 2006-12-14  Sebastien Pouliot  <sebastien@ximian.com>
680
681         * Image.cs: Rework Clone so it doesn't confuse MoMA to report a NIE.
682         Cloning works for bitmap. Metafiles aren't (actually) supported.
683
684 2006-12-07  Sebastien Pouliot  <sebastien@ximian.com>
685
686         * Icon.cs: Revert a change from r68882. The type is also part of the 
687         icon's name. Fix bug #80181.
688
689 2006-12-03  Sebastien Pouliot  <sebastien@ximian.com>
690
691         * Icon.cs: Add a new ctor that returns undisposable Icon instances 
692         (required when used from SystemIcons). Added a dispose check in 
693         ToBitmap (many other are missing).
694         * SystemIcons.cs: Change icons to the one already in SVN.
695
696 2006-12-02  Sebastien Pouliot  <sebastien@ximian.com>
697
698         * FontConverter.cs: Add a comment why the empty finalizer is required.
699         * gdipFunctions.cs: Remove warning from build (unused variable).
700         * Icon.cs: Fix .ctor accepting a type - the type is to find the 
701         assembly, not the type of the ressource.
702         * SystemIcons.cs: Load some icons from the assembly (all the same Mono
703         icon for tonight).
704
705 2006-11-22  Sebastien Pouliot  <sebastien@ximian.com>
706
707         * BufferedGraphicsContext.cs: Better MonoTODO.
708         * BufferedGraphics.cs: Better MonoTODO.
709         * Font.cs: Better MonoTODO.
710         * FontFamily.cs: Better MonoTODO.
711         * Graphics.cs: Better MonoTODO.
712         * Icon.cs: Better MonoTODO.
713         * Image.cs: Second chance while saving using the current RawFormat.
714         This allows icons to be saved as PNG (strange but look at unit tests).
715         * ImageFormatConverter.cs: Implement GetStandardValues (and remove
716         it's MonoTODO) and fix GetStandardValuesSupported (to return true).
717         * Region.cs: Implement ReleaseHrgn (2.0) - not really useful (as the
718         handle is never exposed) but it's easier than to document the TODO ;-)
719         * SystemIcons.cs: Better MonoTODO.
720
721 2006-11-06  Sebastien Pouliot  <sebastien@ximian.com>
722
723         * RectangleF.cs: Fix operator !=. Patch by Manuel Alejandro Cerón 
724         Estrada.
725
726 2006-11-04  Chris Toshok  <toshok@ximian.com>
727
728         * SystemColors.cs: reassign the given color to the return value of
729         UpdateKnownColor.  This makes sure that the color has the same
730         SystemColor name.  So, SystemColors.Control.Name always equals
731         "Control", regardless of the values the theme has stuffed in it.
732
733         * Color.cs: UpdateKnownColor now returns the new color.
734
735 2006-10-11  Sebastien Pouliot  <sebastien@ximian.com>
736
737         * Graphics.cs: In MeasureCharacterRanges throw an ArgumentException if
738         StringFormat is null and return an empty region array if no range exists 
739         (avoid GDI+ error/exeception). In MeasureString (2 overloads) replace 
740         999999 by Int32.MaxValue (now that the real bug is fixed).
741         * StringFormat.cs: Ensure we are clearing the handle before throwing
742         any exception.
743
744 2006-09-21  Sebastien Pouliot  <sebastien@ximian.com>
745
746         * gdipFunctions.cs: Throw an OverflowException for the ValueOverflow
747         Status code.
748
749 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
750
751         * gdipFunctions.cs, Image.cs: 78315. Probably in the future we should
752         add the same checking for other resource release GDI API calls.
753         
754 2006-09-19  Sebastien Pouliot  <sebastien@ximian.com>
755
756         * StringFormat.cs: Add missing validations.
757
758 2006-09-18  Sebastien Pouliot  <sebastien@ximian.com> 
759
760         * Graphics.cs: Add missing validations to MeasureCharacterRanges.
761
762 2006-09-18  Sebastien Pouliot  <sebastien@ximian.com>
763
764         * Graphics.cs: Reorder instructions in MeasureString methods to avoid
765         allocations before checking for quick exit case (null/String.Empty 
766         text or throwing execptions).
767
768 2006-09-11  Sebastien Pouliot  <sebastien@ximian.com>
769
770         * ImageConverter.cs: Fixed ConvertTo to deal with null values (#79331)
771         and not to "return new NotSupportedException", throwing them is better
772
773 2006-09-07  Kornél Pál  <kornelpal@gmail.com>
774
775         * ComIStreamMarshaler.cs: ManagedToNativeWrapper: Dispose COM vtable
776           on shutdown. Dispose unmanaged resources when constructor fails.
777
778 2006-09-06  Kornél Pál  <kornelpal@gmail.com>
779
780         * ComIStreamMarshaler.cs: ManagedToNativeWrapper should not have a
781           destructor because it is freed using Release. (Proper fix for bug
782           #78315.) Free COM vtable when unloading and all objects Released.
783
784 2006-09-06  Jonathan Chambers  <joncham@gmail.com> 
785
786         * ComIStreamMarshaler.cs: Only deallocate memory
787         for COM wrapper if not shutting down. #78315
788         
789 2006-09-04  Jonathan Chambers  <joncham@gmail.com> 
790
791         * ComIStreamMarshaler.cs: Do not deallocate unmanaged memory
792         allocated for vtable. If this finalizer runs before all clients
793         are done with it (Image(s) in this case) we crash on windows. #78315
794         
795 2006-09-01  Sebastien Pouliot  <sebastien@ximian.com>
796
797         * Bitmap.cs: Fix exceptions for LockBits.
798
799 2006-08-28  Sebastien Pouliot  <sebastien@ximian.com>
800
801         * ImageAnimator.cs: Remove catch/throw in WorkerThread (it hides the
802         original exception). Found with Gendarme.
803         * Color.cs: Remove the double-check lock. Found with Gendarme.
804         * ColorConverter.cs: Remove the double-check lock. Found with Gendarme
805
806 2006-08-28  Jonathan Chambers  <joncham@gmail.com> 
807
808         * ComIStreamMarshaler.cs: Do not free memory allocated for
809         Com Callable Wrapper for stream. When Image created from stream
810         is destroyed, it calls Release on CCW interface. Somehow we seem
811         to be destroying Stream CCW before Image is destroyed. Fixes
812         crash on exit on Windows. #78315
813         
814 2006-08-28      Boris Kirzner   <borisk@mainsoft.com>
815
816         * SystemColors.jvm.cs: fix array size for NET_2_0
817
818 2006-08-27  Sebastien Pouliot  <sebastien@ximian.com>
819
820         * ColorConverter.cs: Catch the case where the integer part of the 
821         color doesn't fit into a 32bit integer.
822         * ColorTranslator.cs: Fixed Gendarme's UseStringEmptyRule on ToHtml 
823         method. Fixed string handling on FromHtml method. Fixed all parameter
824         names to match FX.
825
826 2006-08-25  Sebastien Pouliot  <sebastien@ximian.com> 
827
828         * gdipFunctions.cs: Change ColorMatrix to IntPtr in method 
829         GdipSetImageAttributesColorMatrix definition.
830         * FontConverter.cs: Fix compiler warnings.
831
832 2006-08-24  Sebastien Pouliot  <sebastien@ximian.com>
833
834         * TextureBrush.cs: Remove private Image member as we cannot, without
835         cloning it (which removes the advantage of caching it), return it for 
836         the Image property *and* we cannot dispose of it properly (Dispose 
837         isn't overridden).
838
839 2006-08-22  Sebastien Pouliot  <sebastien@ximian.com>
840
841         * gdipFunctions.cs: Fix GdipGetImageWidth to use an uint for it's
842         width out parameter.
843         * Image.cs: Cast the uint into an int for the Width property.
844
845 2006-08-12  Duncan Mak  <duncan@novell.com>
846
847         * gdipFunctions.cs (GdipLoadImageFromStream):
848         (GdipSaveImageToStream): Don't include these methods when
849         compiling the unit tests.
850
851 2006-08-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
852
853         * gdipFunctions.cs: return -1 when stream.Length throws.
854
855 2006-08-11  Sebastien Pouliot  <sebastien@ximian.com> 
856
857         * Font.cs: Remove the, now unrequired, FaceNameOffset field and
858         use the object size instead of the structure size when copying.
859
860 2006-08-11  Sebastien Pouliot  <sebastien@ximian.com>
861
862         * Font.cs: Added more checks to ToLogFont and fixed it's behaviour
863         to match MS boundary between GDI+ and SD.
864
865 2006-08-07  Andrew Skiba <andrews@mainsoft.com>
866
867         * Graphics.jvm.cs, Pen.jvm.cs, Region.jvm.cs: TARGET_JVM fix
868
869 2006-08-05  Sebastien Pouliot  <sebastien@ximian.com>
870
871         * Font.cs: Avoid double cast in Equals. Return lfCharSet as 1 in
872         ToLogFont even if GDI+ has that value to 0.
873
874 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
875
876         * Icon.cs: when converting to Bitmap, handle the 24 bits separately.
877         Read the XOR and AND masks in a single read.
878
879 2006-08-04  Sebastien Pouliot  <sebastien@ximian.com>
880
881         * Pen.cs: Fix unit tests wrt libgdiplus return value change.
882
883 2006-08-03  Sebastien Pouliot  <sebastien@ximian.com>
884
885         * FontFamily.cs: Fix unit tests wrt libgdiplus return value change.
886         * Region.cs: Fix unit tests wrt libgdiplus return value change.
887
888 2006-08-01  Jonathan Chambers  <joncham@gmail.com>
889
890         * Font.cs: Fix marshalling of LOGFONT in ToHfont. 
891         Fixes #78939.
892         
893 2006-07-20  Sebastien Pouliot  <sebastien@ximian.com>
894
895         * Graphics: Added implementation for ReleaseHDC by Jonathan Pobst 
896         for NET_2_0 profile.
897
898 2006-07-06  Sebastien Pouliot  <sebastien@ximian.com>
899
900         * Image.cs: Ensure we're setting the nativeObject to NULL before 
901         throwing any exception while disposing (and avoid possible double
902         freeing). Avoid multiple casts in Clone method.
903         * Pen.cs: Ensure the internal pen's brush is always disposed 
904         correctly. Avoid making a reference to the internal brush.
905         * SolidBrush.cs: Avoid setting color when cloning the solid brush
906         as the .ctor(IntPtr) always does this job.
907
908 2006-07-04  Sebastien Pouliot  <sebastien@ximian.com>
909
910         * Image.cs: Made GetThumbnailImage throw OutOfMemoryException when
911         image size is invalid (to match MS behaviour), also ensure that the
912         Graphics instance is disposed even if CheckStatus throws an exception.
913
914 2006-06-26  Sebastien Pouliot  <sebastien@ximian.com>
915
916         * Pen.cs: Ensure we dispose of an existing brush before replacing it.
917         Avoid double-cast when dealing with SolidBrush.
918
919 2006-06-06  Sebastien Pouliot  <sebastien@ximian.com>
920
921         * gdipFunctions.cs: Fix API signature (missing pen pointer) for 
922         GdipIsOutlineVisiblePathPoint[I] methods.
923         * FontFamily.cs: Delay the call to refreshName until it is actually
924         required.
925
926 2006-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
927
928         * Color.cs: when deserializing from an MS generated stream, the value
929         for known colors was 0. These changes make our Color handle that case.
930         We won't serialize the name for known colors either, but the value will
931         be there, so we only check for a 0 value on a known color once.
932         Fixes bug #78265.
933
934 2006-05-30  Sebastien Pouliot  <sebastien@ximian.com> 
935
936         * Font.cs: Change default charset to 1. Ensure we always call the
937         CheckStatus method after calling GDI+. Added null checks to match MS
938         exception handling.
939         * FontFamily.cs: Avoid double-cast in Equals. Fixed Equals not compare
940         pointers but names. Simplify the Generic* static properties by reusing
941         the .ctor code. Fixed ToString to match MS output. Removed 
942         GetStyleCheck as it failed when multiple styles were provided (flags).
943         * gdipFunctions.cs: Convert Status.FontFamilyNotFound to an 
944         ArgumentException.
945
946 2006-05-29  Sebastien Pouliot  <sebastien@ximian.com> 
947
948         * ImageFormatConverter.cs: Changed ConvertFrom to work with both short
949         (e.g. Bmp) and long (e.g. guid) names.
950
951 2006-05-26  Sebastien Pouliot  <sebastien@ximian.com> 
952
953         * ImageFormatConverter.cs: Fixing unit tests for ImageFormat 
954         introduced a regression in the converter (not catched by other unit
955         tests).
956
957 2006-05-25  Sebastien Pouliot  <sebastien@ximian.com> 
958
959         * gdipFunctions.cs: Added wrapper methods for GdipGetRegionHRgn and 
960         GdipCreateRegionHrgn functions.
961         * Region.cs: Reimplement GetHrgn and FromHrgn methods using the GDI+
962         calls.
963
964 2006-05-24  Sebastien Pouliot  <sebastien@ximian.com> 
965
966         * PointConverter.cs: Fx 2.0 throws an ArgumentException in 
967         CreateInstance if some values are missing from the dictionary, while
968         1.x throws an NullReferenceException.
969         * RectangleConverter.cs: Fx 2.0 throws an ArgumentException in 
970         CreateInstance if some values are missing from the dictionary, while
971         1.x throws an NullReferenceException.
972         * SizeConverter.cs: Fx 2.0 throws an ArgumentException in 
973         CreateInstance if some values are missing from the dictionary, while
974         1.x throws an NullReferenceException.
975         * SizeFConverter.cs: Fix CreateInstance to use float (not int).
976
977 2006-05-24  Sebastien Pouliot  <sebastien@ximian.com>
978
979         * Font.cs: Added a Demand for UnmanagedCode on both ToLogFont methods.
980         * Graphics.cs: Added checks for null Rectangle[F] arrays in 
981         FillRectangles methods and removed the check for 0-length (MS throws).
982         Let EndContainer mthod throws a NullReferenceException on 1.x profile.
983         * Pen.cs: Let Brush property throws a NullReferenceException on 1.x.
984
985 2006-05-24  Sebastien Pouliot  <sebastien@ximian.com> 
986
987         * Pen.cs: Clone the supplied brush in the .ctor (as the user may 
988         dispose of it anytime). Make sure we're disposing our cached brush
989         when disposing the pen.
990
991 2006-05-21  Sebastien Pouliot  <sebastien@ximian.com> 
992
993         * ContentAlignment.cs: Removed [Serializable] from 2.0 profile.
994         * FontStyle.cs: Removed [Serializable] from 2.0 profile.
995         * GraphicsUnit.cs: Removed [Serializable] from 2.0 profile.
996         * KnownColor.cs: Removed [Serializable] from 2.0 profile.
997         * RotateFlipType.cs: Removed [Serializable] from 2.0 profile.
998         * StringAligment.cs: Removed [Serializable] from 2.0 profile.
999         * StringDigitSubstitute.cs: Removed [Serializable] from 2.0 profile.
1000         * StringFormatFlags.cs: Removed [Serializable] from 2.0 profile.
1001         * StringTrimming.cs: Removed [Serializable] from 2.0 profile.
1002         * StringUnit.cs: Removed [Serializable] from 2.0 profile.
1003
1004 2006-05-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1005
1006         * ImageAnimator.cs: get the FrameDelay from the image properties, if
1007         available. Remove ^Ms.
1008
1009 2006-05-17  Sebastien Pouliot  <sebastien@ximian.com> 
1010
1011         * Pen.cs: Get the pen color from the solid brush (when applicable). 
1012         Added missing validations for most properties. Always return a clone 
1013         of the internal brush (so no one can dispose of it in our back).
1014
1015 2006-05-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1016
1017         * Color.cs: make it serialization-compatible with MS. Fixes bug #78265.
1018
1019 2006-05-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1020
1021         * Bitmap.cs: (Clone) use the 'format' argument instead of the
1022         PixelFormat.
1023
1024 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
1025
1026         * Graphics.cs : (FillRectangles/FillRectanglesI): when argument
1027           array is empty, don't invoke GDI+. Fixed bug #78408.
1028
1029 2006-05-12  Sebastien Pouliot  <sebastien@ximian.com> 
1030
1031         * gdipFunctions.c: Fix misnamed GdipAdd*Path*String[I] API (#78383)
1032
1033 2006-05-11  Peter Dennis Bartok  <pbartok@novell.com>
1034
1035         * Icon.cs: Don't require width/height to be non-0 when creating from
1036           serialized data, just require them to be square
1037
1038 2006-05-04  Sebastien Pouliot  <sebastien@ximian.com> 
1039  
1040         * Graphics.cs: Chaned DrawIcon methods to dispose the temporary bitmap
1041         on it's drawn.
1042
1043 2006-05-04  Sebastien Pouliot  <sebastien@ximian.com>
1044
1045         * Graphics.cs: Added a MonoTODO to PixelOffsetMode property so it shows
1046         (in the class status library) a note that this isn't supported with 
1047         libgdiplus.
1048
1049 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com>
1050
1051         * FontConverter.cs (ConvertFrom): Implemented it properly. Fixes #78269
1052
1053 2006-05-02  Sebastien Pouliot  <sebastien@ximian.com> 
1054
1055         * PointF.cs: Add operators + and - between PointF and SizeF in the
1056         2.0 profile (CSC 8.x can compile that, but sadly it doesn't show in as
1057         missing in corcompare results).
1058
1059 2006-05-02  Sebastien Pouliot  <sebastien@ximian.com>
1060
1061         * gdipFunctions.cs: Fixed wrappers for Gdip[Begin|End]Container[2][I]
1062         * Graphics.cs: Fixed usage of fixed API ;-) Added MonoTODO on 
1063         BeginContainer methods that use rectangles and on TextContrast property 
1064         (all aren't currently supported in libgdiplus).
1065
1066 2006-05-01  Sebastien Pouliot  <sebastien@ximian.com>
1067
1068         * Graphics.cs: Removed MonoTODO on DrawCurve methods (it's fixed in 
1069         libgdiplus). Fixed minor extra/missing for corcompare.
1070
1071 2006-05-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1072
1073         * SizeF.cs: serialization compatibility fixes. Closes bug #78236.
1074
1075 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
1076
1077         * Icon.cs: Icon AND masks are organized in strides, fixed to calculate
1078           and set proper transparency. Also fixed broken calculation of AND
1079           size when reading the icon. NDocGui now shows pretty buttons.
1080
1081 2006-04-28  Sebastien Pouliot  <sebastien@ximian.com> 
1082
1083         * Color.cs: corcompare fix. Remove ComVisible attribute from 2.0 build
1084         * Region.cs: Remove old todo that were fixed in libgdiplus.
1085         * Image.cs: corcompare fixes. Clone isn't virtual. Added DefaultValue
1086         attribute to Tag property. FromStream(Stream,bool,bool) is available
1087         in Fx 1.1 (probably since SP1).
1088
1089 2006-04-28  Sebastien Pouliot  <sebastien@ximian.com>
1090
1091         * Graphics.cs: Added MonoTODO on some DrawCurve methods because 
1092         libgdiplus doesn't use the numberOfSegments argument.
1093
1094 2006-04-27  Sebastien Pouliot  <sebastien@ximian.com>
1095
1096         * gdipFunctions.cs: Added wrappers for GdipAddPathLine2 and 
1097         GdipAddPathLine2I methods (to allow adding a single point).
1098
1099 2006-04-27  Sebastien Pouliot  <sebastien@ximian.com> 
1100
1101         * gdipFunctions.cs: Added CharSet=CharSet.Unicode to GdipAddString and
1102         GdipAddStringI wrapper methods.
1103
1104 2006-04-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1105
1106         * Bitmap.cs: throw when the target pixel format differs from the one
1107         of the image and it's an indexed format. We were failing in UnlockBits
1108         before.
1109
1110 2006-04-25  Miguel de Icaza  <miguel@novell.com>
1111
1112         * FontConverter.cs (FontUnitConverter): implement.   CorCompare
1113         for some reason does not dig into nested classes, match the
1114         documentation. 
1115
1116         (FontNameConverter): Return the fonts available on the system. 
1117
1118 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
1119
1120         * Icon.cs: We need to or, not and our alpha values into the
1121           palette. Also, we need to actually store the altered palette
1122           on the bitmap, since we are altering a copy.
1123
1124 2006-04-10  Sebastien Pouliot  <sebastien@ximian.com> 
1125
1126         * gdipFunctions.cs: Fixed wrappers for GdipCreateMatrix3[I].
1127
1128 2006-03-23  Peter Dennis Bartok  <pbartok@novell.com>
1129
1130         * gdipFunctions.cs: 
1131           - GdipGetFontCollectionFamilyList: No need for complicated 
1132             GlobalAlloc stuff, .Net marshals the IntPtr[] array just fine
1133           - GdipDeletePrivateFontCollection: We need to pass a ref to the
1134             structure. This was causing nasty crashes.
1135           - GdipGetFamilyName: Switched to use StringBuilder instead of
1136             manual marshalling
1137         * FontFamily.cs: Simplified the refreshName method, less error-prone now
1138
1139 2006-03-21  Sebastien Pouliot  <sebastien@ximian.com> 
1140  
1141         * Brush.cs: Remove unused code.
1142         * FontFamily.cs: Remove warnings from build.
1143         * gdipFunctions.cs: Add missing p/invoke calls for GdipAddString[I].
1144
1145 2006-03-21  Sebastien Pouliot  <sebastien@ximian.com>
1146
1147         * gdipFunctions.cs: Import XFree (from libX11) so we can free the 
1148         memory we allocate.
1149         * Graphics.cs: Free the memory we get from XGetVisualInfo.
1150
1151 2006-03-20  Sebastien Pouliot  <sebastien@ximian.com>
1152
1153         * Brush.cs: Allow Dispose to free the unmanaged memory for the brush
1154         in every case. This has been known (in the past) to cause crashes
1155         in Cairo. If still true then we need to find out why!
1156
1157 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
1158
1159         * gdipFunctions.cs: Removed XCloseDisplay call from Gdi+ shutdown,
1160           it was causing crashes in the finalizers (bug #77464)
1161
1162 2006-03-06  Jonathan Gilbert  <logic@deltaq.org>
1163
1164         * gdipFunctions.cs: Rewrote the StreamSeekImpl function to invalidate
1165           the start_buf cached bytes whenever Seek() is actually called. If
1166           Seek is not called (an invalid 'whence' value), then the buffer is
1167           not invalidated. This fixes a bug with TIFF loading.
1168
1169 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
1170
1171         * Image.cs (ISerializable.GetObjectData): Save the image in it's
1172           original format. (Fixes #77673)
1173
1174 2006-02-28  Jonathan Chambers  <jonathan.chambers@ansys.com>,
1175             Peter Dennis Bartok  <pbartok@novell.com>
1176
1177         * Font.cs:
1178           - ToLogFont: Reworked to allow running under MS runtime and to 
1179             support it being called with both boxed structs and formatted 
1180             classes  (MS runtime PtrToStructure cannot marshal boxed value
1181             types, but Marshal.AsAny can)
1182           - Switched all usage of LOGFONTA to more generic CharSet-driven 
1183             LOGFONT structure
1184           - FromLogFont: Switched to use charset-agnostic GdipCreateFontFromLogfont
1185         * gdipStructs.cs: Dropped LOGFONTA and LOGFONTW and switched to
1186           CharSet-driven LOGFONT structure (needed because of ToLogFont fix)
1187         * gdipFunctions.cs: Switched GdipGetLogFont, GdipCreateFontFromLogfont and
1188           CreateFontIndirect to use LOGFONT structure, set to be CharSet=Auto
1189           (needed because of ToLogFont fix)
1190
1191 2006-02-18  Duncan Mak  <duncan@novell.com>
1192
1193         * Graphics.cs (DrawBeziers): Patch from Alexander Olk to fix
1194         possible IndexOutOfRangeException.
1195
1196 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
1197
1198         * Image.cs, Bitmap.cs: Removed unneeded casts
1199         * Icon.cs: Fixed code to be 64bit safe
1200
1201 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
1202
1203         * Font.cs: Fixes 77407
1204
1205 2006-01-27  Sebastien Pouliot  <sebastien@ximian.com>
1206
1207         * Font.cs: Ensure unmanaged memory is free correctly in ToLogFont
1208         even if GDIPlus.CheckStatus throws an exception;
1209         * Image.cs: Ensure unmanaged memory is free correctly even if 
1210         GDIPlus.CheckStatus throws an exception. Note: the SetPropertyItem use
1211         case is unclear to me (and unimplemented in libgdiplus);
1212         * Region.cs: Ensure unmanaged memory is free correctly in 
1213         GetRegionScans even if GDIPlus.CheckStatus throws an exception;
1214
1215 2006-01-27 Jordi Mas i Hernandez <jordimash@gmail.com>
1216
1217         * gdipFunctions.cs: New gdiplus imports
1218         * Font.cs: Use gdiplus calls to get font height and size
1219
1220 2006-01-26  Sebastien Pouliot  <sebastien@ximian.com>
1221
1222         * FontFamily.cs: Free the memory allocated with Marshal.AllocHGlobal.
1223         * Region.cs: Updated TODO to reflect current status.
1224
1225 2006-01-24  Konstantin Triger <kostat@mainsoft.com>
1226
1227         * Font.jvm.cs, FontFamily.jvm.cs: use static container.
1228
1229 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
1230
1231         * Icon.cs: The code wrongly assumed that the stride for the icon
1232           would be the same as the stride for the bitmap. This was causing
1233           memory corruption.
1234
1235 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
1236
1237         * Icon.cs: Reworked ToBitmap() method to not use Bitmap(Stream)
1238           which when calling down to MS GDI+ will create an image
1239           where neither GetPixel or Save can be used on.
1240
1241 2006-01-18  Sebastien Pouliot  <sebastien@ximian.com>
1242
1243         * gdipFunctions.cs: Added declaration for GdipCreateRegionRgnData.
1244         * Region.cs: Implemented .ctor(RegionData)
1245
1246 2006-01-13  Miguel de Icaza  <miguel@novell.com>
1247
1248         * Region.cs: Revert the Region.cs check in GetHrgn as it was used
1249         by our Windows.Forms implementation.
1250
1251 2006-01-11  Sebastien Pouliot  <sebastien@ximian.com>
1252
1253         * Graphics.cs: Avoid creating bitmaps two times if both X and Y 
1254         default DPI are required (i.e. init both value in both cases).
1255         * Region.cs: Added null check to match MS behaviour (exception type)
1256         and avoid NRE (before CheckStatus is called). Added security demands
1257         for unmanaged code on both FromHrgn and ReleaseHrgn (2.0) methods.
1258
1259 2005-12-22  Jonathan Chambers <jonathan.chambers@ansys.com>
1260
1261         * gdipFunctions.cs: Do not call GdiplusShutdown for
1262         now as it causes a crash on MS GDI+.
1263
1264 2005-12-20  Konstantin Triger <kostat@mainsoft.com>
1265
1266         * Font.jvm.cs: charset support.
1267
1268 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com>
1269
1270         * Graphics.cs (Flush): Make sure nativeObject is not null
1271
1272 2005-12-14  Konstantin Triger <kostat@mainsoft.com>
1273
1274         * StrokeFactory.jvm.cs: create AdvancedStroke when have penTransform.
1275
1276 2005-12-13  Konstantin Triger <kostat@mainsoft.com>
1277
1278         * Bitmap.jvm.cs: Fix MakeTransparent.
1279
1280 2005-12-07 Jordi Mas i Hernandez <jordimash@gmail.com>
1281
1282         * Graphics.cs: Add new deephs support to CopyFromScreen
1283
1284 2005-12-07 Jordi Mas i Hernandez <jordimash@gmail.com>
1285
1286         * BufferedGraphicsManager.cs: Fixes signature
1287
1288 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com>
1289
1290         * Font.cs: 
1291           - Implemented FromLogFont
1292           - Implemented ToLogFont
1293           - Whitespace fixes
1294         * gdipFunctions.cs:
1295           - Added GdipGetLogFontW method
1296           - Specified charset for GdipGetLogFontA method
1297         * gdipStructs.cs: Added LOGFONTW structure
1298
1299 2005-12-05 Gert Driesen <drieseng@users.sourceforge.net>
1300
1301         * BufferedGraphics.cs: Removed duplicate class. Set eol-style to
1302         native.
1303         * BufferedGraphicsManager.cs: Removed duplicate class. Set eol-style
1304         to native.
1305
1306 2005-12-05 Jordi Mas i Hernandez <jordimash@gmail.com>
1307
1308         * gdipFunctions.cs: DllExports need it to implement 
1309           new Graphics.CopyFromScreen .Net 2.0 methods
1310         * IDeviceContext.cs: New .Net 2.0 interface
1311         * Color.cs: Fixes for new .Net 2.0 KnowColors
1312         * PointF.cs: New .Net 2.0 Add/Subtract methods
1313         * gdipStructs.cs: Structs need it for Graphics.CopyFromScreen
1314         * SystemBrushes.cs: New standard SystemBrushes for .Net 2.0
1315         * SizeF.cs: New .Net 2.0 Add/Subtract methods
1316         * FontConverter.cs: New .Net 2.0 fixes
1317         * SystemColors.cs: New standard SystemColors for .Net 2.0
1318         * SizeFConverter.cs: New .Net 2.0 class (based on SizeConverter)
1319         * CharacterRange.cs: : New .Net 2.0 methods
1320         * Size.cs: New .Net 2.0 Add/Subtract methods
1321         * SystemPens.cs: New standard SystemPens for .Net 2.0
1322         * Bitmap.cs: New .Net 2.0 methods
1323         * Region.cs: New .Net 2.0 methods
1324         * Brush.cs: New .Net 2.0 constructor
1325         * Icon.cs: New .Net 2.0 Constructors and methods
1326         * Point.cs: New .Net 2.0 Add/Subtract methods
1327         * BufferedGraphicsManager.cs: New .Net 2.0 class
1328         * Graphics.cs: New methods for .Net 2.0 and fixes
1329         * BufferedGraphics.cs: New .Net 2.0 class
1330         * Font.cs:  New .Net 2.0 properties
1331         * Image.cs: New .Net 2.0 tag property
1332         * KnownColor.cs: New .Net 2.0 know colors
1333         * CopyPixelOperation.cs: New .Net 2.0 enum
1334         * SystemFonts.cs: New .Net 2.0 class
1335         * BufferedGraphicsContext.cs: New .Net 2.0 class
1336
1337 2005-11-28 Konstantin Triger <kostat@mainsoft.com>
1338
1339         * SystemIcons.jvm.cs: refactoring.
1340
1341 2005-11-28 Konstantin Triger <kostat@mainsoft.com>
1342
1343         * Icon.cs: TARGET_JVM changes.
1344
1345 2005-11-17 Vladimir Krasnov <vladimirk@mainsoft.com>
1346
1347         * Image.jvm.cs: fixed Save, flush output stream
1348
1349 2005-11-17 Konstantin Triger <kostat@mainsoft.com>
1350
1351         * StrokeFactory.jvm.cs, Pen.jvm.cs, Graphics.jvm.cs: performance - use BasicStroke when possible.
1352
1353 2005-11-17 Vladimir Krasnov <vladimirk@mainsoft.com>
1354
1355         * ColorConverter.cs: fixed ConvertFrom, to be able
1356         to convert from three digit notation color (#abc)
1357
1358 2005-11-16 Konstantin Triger <kostat@mainsoft.com>
1359
1360         * Bitmap.jvm.cs: open a correct stream.
1361
1362 2005-11-16 Konstantin Triger <kostat@mainsoft.com>
1363
1364         * FontFamily.jvm.cs, Font.jvm.cs: throw exception if invalid params.
1365
1366 2005-11-16 Konstantin Triger <kostat@mainsoft.com>
1367
1368         * FontFamily.jvm.cs: fix for custom font collection
1369
1370 2005-11-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1371
1372         * FontFamily.jvm.cs: fixed GetName
1373
1374 2005-11-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1375
1376         * Bitmap.jvm.cs: fixed InternalSave() error handling
1377         * Image.jvm.cs: fixed Save() error handling
1378
1379 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1380
1381         * FontFamily.jvm.cs: Refactoring.
1382
1383 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1384
1385         * Font.jvm.cs: Refactoring.
1386
1387 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1388
1389         * StringFormat.jvm.cs, Graphics.jvm.cs: DrawString,
1390                 MeasureString support
1391
1392 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1393
1394         * FontFamily.jvm.cs: correctly initialize fontcollection
1395
1396 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1397
1398         * FontFamily.jvm.cs: DrawMargin, refactoring.
1399
1400 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1401
1402         * Graphics.jvm.cs, Pen.jvm.cs, AdvancedStroke.jvm.cs:
1403                 Differentiate standard and AntiAlias stroking
1404
1405 2005-11-10 Vladimir Krasnov <vladimirk@mainsoft.com>
1406
1407         * Graphics.jvm.cs: added UnitConversion property
1408         * FontFamily.jvm.cs: refactoring
1409         * Font.jvm.cs: refactoring
1410
1411 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
1412
1413         * Font.cs: 
1414           - Implemented serialization constructor
1415           - Implemented GetObjectData()
1416
1417 2005-11-01 Vladimir Krasnov <vladimirk@mainsoft.com>
1418
1419         * StringFormat.jvm.cs: Refactoring
1420
1421 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com> 
1422
1423         * Image.cs: Default format for MemoryBMP should be Png
1424
1425 2005-10-27 Vladimir Krasnov <vladimirk@mainsoft.com>
1426
1427         * Bitmap.jvm.cs: fixed InternalSave
1428         * Image.jvm.cs: fixed Save
1429
1430 2005-10-27 Vladimir Krasnov <vladimirk@mainsoft.com>
1431
1432         * Image.jvm.cs: fixed redolution properties
1433
1434 2005-10-27 Vladimir Krasnov <vladimirk@mainsoft.com>
1435
1436         * Bitmap.jvm.cs: fixed InternalSave, to remove alpha channel of saved jpeg
1437         fixed clone, Initialize
1438
1439 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
1440
1441         * Brush.cs: Don't delete the brush if the display handle is no longer
1442           valid, otherwise cairo will try to use the handle and crash and burn
1443
1444 2005-10-23 Vladimir Krasnov <vladimirk@mainsoft.com>
1445
1446         * Graphics.jvm.cs: DrawImage refactoring
1447
1448 2005-10-23 Vladimir Krasnov <vladimirk@mainsoft.com>
1449
1450         * Graphics.jvm.cs: Clipping refactoring
1451         fixed FillScaledShape, DrawShape, MeasureDraw, BeginContainer, 
1452         ExcludeClip, IntersectClip, ResetClip, CombineClipArea, RestoreBaseClip,
1453         TranslateClip, VisibleClipBounds
1454
1455 2005-10-21  Miguel de Icaza  <miguel@novell.com>
1456
1457         * Pen.cs: Add support for returning the Brush from Pens created
1458         with a color constructor.
1459
1460         Plus: code style police, else does not go on its own line.
1461
1462         * Graphics.cs: Add various ArgumentNull checks.
1463
1464 2005-10-20 Konstantin Triger <kostat@mainsoft.com>
1465
1466         * Image.jvm.cs: make Clone abstract
1467
1468 2005-10-20 Konstantin Triger <kostat@mainsoft.com>
1469
1470         * Font.jvm.cs: make fallbacks for GdiCharSet, GdiVerticalFont
1471
1472 2005-10-19 Vladimir Krasnov <vladimirk@mainsoft.com>
1473
1474         * Bitmap.jvm.cs: fixed InternalSave, ToBufferedImageFormat, Clone
1475         * PlainImage.jvm.cs: fixed Clone
1476         * Graphics.jvm.cs: fixed FillShape, Clear, FillScaledShape
1477
1478 2005-10-19 Vladimir Krasnov <vladimirk@mainsoft.com>
1479
1480         * Brush.jvm.cs: added InternalClone() method
1481         changed transformation methods access level
1482         * TextureBrush.jvm.cs: refactoring, fixed clone()
1483
1484 2005-10-19 Vladimir Krasnov <vladimirk@mainsoft.com>
1485
1486         * AdvancedStroke.jvm.cs: fixed createStrokedShape, check for transform 
1487         matrix singularity added
1488         * Font.jvm.cs: implemetated ISerializable
1489         * Pen.jvm.cs: fixed DashPattern property, 
1490         fixed GetNativeObject() dash pattern calculation
1491
1492 2005-10-14 Jordi Mas i Hernandez <jordi@ximian.com> 
1493
1494         * SystemColors.cs: Fixes the Win32 light and lightlight colours
1495
1496 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com> 
1497
1498         * SystemColors.cs: Fixes the Win32 system colors including the color
1499         name and the knownColor properties.
1500
1501 2005-10-07  Peter Dennis Bartok  <pbartok@novell.com>
1502
1503         * FontFamily.cs: Use Marshal.PtrToStringUni to do the string
1504           conversion, it's less overhead than StringBuilder. (Part of the
1505           bugfix for #74871 and #75534)
1506
1507         * gdipFunctions: Changed signature for GdipGetFamilyName to just
1508           have an IntPtr for the buffer
1509
1510 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com> 
1511
1512         * Graphics.cs, FontFamily.cs: Calling GC.SuppressFinalize from Dispose,
1513           fixes bug #76329
1514
1515 2005-09-29  Peter Dennis Bartok  <pbartok@novell.com> 
1516
1517         * SystemColor.cs: Added code used to generate properties, updated with
1518           Windows XP colors
1519
1520 2005-09-29  Peter Dennis Bartok  <pbartok@novell.com>
1521
1522         * SystemColor.cs: Make internal names predictable to allow scripted
1523           generation of color table
1524
1525 2005-09-28  Peter Dennis Bartok  <pbartok@novell.com>
1526
1527         * Color.cs(UpdateKnownColor): Ensure knownColors exists before trying
1528           to update it.
1529
1530 2005-09-27  Peter Dennis Bartok  <pbartok@novell.com>
1531
1532         * SystemColor.cs: 
1533           - Changed properties to return colors from fields. This allows 
1534             updating the colors via reflection, for example from MWF themes.
1535           - Added code to retrieve system colors via Win32 GetSysColors if 
1536             running on Win32, this makes us compatible with Microsoft instead
1537             of returning static colors on Win32. Unix platforms still will
1538             use the static colors
1539         * Color.cs: Added UpdateKnownColor() method to allow updating of
1540           the KnownColors array
1541
1542 2005-09-26  Kornél Pál  <kornelpal@hotmail.com>
1543
1544         * Graphics.cs: DrawImage: imageAttr can be null. Fixed to pass IntPtr.Zero
1545           when imageAttr is null.
1546
1547 2005-09-26 Vladimir Krasnov <vladimirk@mainsoft.com>
1548
1549         * Brush.jvm.cs: fixed transform methods, createContext
1550         * TextureBrush.jvm.cs: implemetated transform, WrapMode, ctors
1551
1552 2005-09-21 Vladimir Krasnov <vladimirk@mainsoft.com>
1553
1554         * Bitmap.jvm.cs: fixed Clone, InternalSave, Initialize, ctor refactoring, remarks refactoring
1555         * Image.jvm.cs: fixed GetFrameCount, GetThumbnailImage, SelectActiveFrame, remarks refactoring
1556         * PlainImage.jvm.cs: added metadata props, fixed ctor
1557         * PlainImageCollection.jvm.cs: fixed class access
1558
1559 2005-09-21 Jordi Mas i Hernandez <jordi@ximian.com> 
1560
1561         * Graphics.cs: Fixes exception type at FromImage method
1562
1563 2005-09-20 Vladimir Krasnov <vladimirk@mainsoft.com>
1564
1565         * Graphics.jvm.cs: bitmap resolution fix in DrawImage
1566
1567 2005-09-20 Vladimir Krasnov <vladimirk@mainsoft.com>
1568
1569         * Graphics.jvm.cs: fixed DrawImage
1570
1571 2005-09-19  Miguel de Icaza  <miguel@novell.com>
1572
1573         * Graphics.cs: Removed restriction on the images that can be
1574         loaded.  Indexed images *can* be loaded
1575
1576 2005-09-18  Miguel de Icaza  <miguel@novell.com>
1577
1578         * Image.cs: introduce a workaround that catches errors on systems
1579         that lack GDI+ as this is being triggered too easily when we
1580         enumerate attributes on loaded classes.
1581
1582         The real bug to fix is #76062.
1583
1584 2005-09-17  Kornél Pál  <kornelpal@hotmail.com>
1585
1586         * Image.cs: Implemented FromHbitmap.
1587
1588 2005-09-16  Sebastien Pouliot  <sebastien@ximian.com>
1589
1590         * gdipFunctions.cs: Add [SuppressUnmanagedCodeSecurity] attributes so 
1591         the JIT won't add demands for UnmanagedCode.
1592         * carbonFunctions.cs: Add [SuppressUnmanagedCodeSecurity] attributes 
1593         so the JIT won't add demands for UnmanagedCode on Mac OSX.
1594         * Bitmap.cs: Added LinkDemand for UnmanagedCode on GetHbitmap 
1595         (+ overloads) and GetHicon methods.
1596         * Graphics.cs: Added LinkDemand for UnmanagedCode on FromHdcInternal, 
1597         FromHwndInternal and ReleaseHdcInternal methods (which are all public 
1598         despite their names).
1599
1600 2005-09-15 Konstantin Triger <kostat@mainsoft.com>
1601
1602         * Graphics.jvm.cs: text transform, headless session
1603
1604 2005-09-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1605
1606         * Bitmap.jvm.cs: native object refactoring
1607         * Image.jvm.cs: native object refactoring
1608         * Graphics.jvm.cs: fixed access to image native object
1609         * TextureBrush.jvm.cs: fixed access to image native object
1610         * Added PlainImage.jvm.cs, PlainImageCollection.jvm.cs
1611
1612 2005-09-14  Geoff Norton  <gnorton@customerdna.com>
1613
1614         * carbonFunctions.cs: Add GetCGContextForNSView for Cocoa# integration
1615         * Graphics.cs: Check GDIPlus.UseCocoaDrawable for Cocoa# integration
1616         * gdipFunctions.cs: Set UseCocoaDrawable depending on the environment variable MONO_GDIP_USE_COCOA_BACKEND
1617                                                                                          
1618 2005-09-14 Konstantin Triger <kostat@mainsoft.com>
1619
1620         * Graphics.jvm.cs: transform, container, thin pen
1621
1622 2005-09-12 Konstantin Triger <kostat@mainsoft.com>
1623
1624         * AdvancedStroke.jvm.cs: constants for pen fitting calculations
1625         * Pen.jvm.cs: fixing transform, pen fitting
1626
1627 2005-09-12 Konstantin Triger <kostat@mainsoft.com>
1628
1629          * Region.jvm.cs: IsVisible is about intersection 
1630
1631 2005-09-12 Gert Driesen <drieseng@users.sourceforge.net>
1632
1633         * ImageConverter.cs: Use default TypeDescriptor implementation of 
1634         GetProperties.
1635
1636 2005-09-11 Konstantin Triger <kostat@mainsoft.com>
1637
1638         * Graphics.jvm.cs: fixing clipping with rotate transform
1639
1640 2005-09-11 Konstantin Triger <kostat@mainsoft.com>
1641
1642         * Region.jvm.cs: default region is infinite
1643
1644 2005-09-10 Konstantin Triger <kostat@mainsoft.com>
1645
1646         * Graphics.jvm.cs: fixing clipping stuff
1647
1648 2005-09-07 Vladimir Krasnov <vladimirk@mainsoft.com>
1649
1650         * Bitmap.jvm.cs: fixed bitamp accessors
1651         * Image.jvm.cs: fixed image accessors
1652
1653 2005-09-07 Konstantin Triger <kostat@mainsoft.com>
1654         * AdvancedStroke.jvm.cs: fix matrix translate
1655         * Graphics.jvm.cs: fix matrix concatenation order
1656
1657 2005-09-07 Vladimir Krasnov <vladimirk@mainsoft.com>
1658
1659         * Brush.jvm.cs: added transform methods
1660
1661 2005-09-06 Konstantin Triger <kostat@mainsoft.com>
1662
1663         * StrokeFactory.jvm.cs, AdvancedStroke.jvm.cs, Pen.jvm.cs:
1664                 implementing fitting, output transform
1665         * Graphics.jvm.cs: fixing DrawXXX, Fill, Clipping, Containers
1666
1667 2005-09-06 Konstantin Triger <kostat@mainsoft.com>
1668
1669         * ColorTranslator.cs: perform case insensitive check
1670
1671 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com> 
1672
1673         * gdipFunctions.cs: define new functions
1674         * Bitmap.cs: fixes image loading and exceptions
1675         * Image.cs: fixes image loading and exceptions
1676         
1677         Thanks Kornél Pál for its help
1678
1679 2005-08-30 Vladimir Krasnov <vladimirk@mainsoft.com>
1680
1681         * Brush.jvm.cs: added brush transform field
1682
1683 2005-08-28 Vladimir Krasnov <vladimirk@mainsoft.com>
1684
1685         * Graphics.jvm.cs: fixed .ctor (InterpolationMode)
1686
1687 2005-08-28 Konstantin Triger <kostat@mainsoft.com>
1688
1689         * StrokeFactory.jvm.cs, AdvancedStroke.jvm.cs, Pen.jvm.cs
1690         Graphics.jvm.cs: adjust stroke before widening
1691
1692 2005-08-28 Vladimir Krasnov <vladimirk@mainsoft.com>
1693
1694         * Graphics.jvm.cs: Implemented BeginContainer, EndContainer,
1695         Save, Restore
1696
1697 2005-08-26 Gert Driesen <drieseng@users.sourceforge.net>
1698
1699         * PointConverter.cs: Use Int32Converter instead of Int32.Parse. First
1700         convert string to int before checking number of components.
1701         * RectangleConverter.cs: same.
1702         * SizeConverter.cs: same.
1703
1704 2005-08-26 Gert Driesen <drieseng@users.sourceforge.net>
1705
1706         * ColorConverter.cs: Use Int32Converter instead of Int32.Parse to
1707         convert individual components. Special case string containing hex
1708         prefix. Convert components before checking count.
1709
1710 2005-08-25 Marek Safar  <marek.safar@seznam.cz>
1711
1712         * gdipFunctions.cs: GetIconInfo new user32 method.
1713         GdipGetDC uses IntPtr.
1714         
1715         * gdipStructs.cs: Defined IconInfo struct.
1716         
1717         * Graphics.cs: FromImage throws exception when image has an indexed format.
1718         GetHdc fixed.
1719         
1720         * Icon.cs: Implemented FromHandle, Dispose.
1721
1722 2005-05-24 Michael Hutchinson <m.j.hutchinson@gmail.com>
1723
1724         * ToolboxBitmapAttribute.cs: Implemented retrieving the image
1725
1726 2005-08-23 Vladimir Krasnov <vladimirk@mainsoft.com>
1727
1728         * Graphics.jvm.cs: Fixed ResetTransform, TransfromPoints
1729         Fixed SmoothingMode property
1730
1731 2005-08-23 Jordi Mas i Hernandez <jordi@ximian.com> 
1732
1733         * Brushes: Do not create the objects every time that they are requested
1734         as in Pens we create and cache them only once when need it. This also 
1735         fixes the Equals method between two objects requested to Brushes
1736
1737 2005-08-22 Jordi Mas i Hernandez <jordi@ximian.com> 
1738
1739         * SolidBrush.cs: Fixes Dispose to avoid non-disposing some objects
1740         * Brush.cs Fixes Dispose to avoid non-disposing some objects
1741         * Pen.cs: Fixes Dispose to avoid non-disposing some objects
1742         * Region.cs: Dipose always frees if the resource was allocated
1743
1744 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com> 
1745
1746         * gdipFunctions.cs: Before calling GdiplusShutdown we make that all of handles
1747         from gdiplus have been released
1748
1749 2005-08-18 Vladimir Krasnov <vladimirk@mainsoft.com>
1750
1751         * Pen.jvm.cs: Fixed DashSpacing in createStrokedShape
1752         * Color.cs: Fixed java NativeObject property
1753         * Image.jvm.cs: Fixed Save method
1754
1755 2005-08-16 Andrew Skiba <andrews@mainsoft.com>
1756
1757         * Icon.jvm.cs: match Bitmap internal constructor change
1758         * Image.jvm.cs: use ImageCodecInfo.Clsid as primary format id, not ImageFormat
1759         * Bitmap.jvm.cs: started changes for supporting ImageCodecInfo
1760
1761 2005-08-16 Gert Driesen <drieseng@users.sourceforge.net>
1762
1763         * Color.cs: To match MS.NET, throw ArgumentException instead of 
1764         ArgumentOutOfRangeException when color is not between 0 and 255.
1765         * RectangleConverter.cs: Take culture into account when converting
1766         to/from string. Use culture's ListSeparator as separator character.
1767
1768 2005-08-16 Gert Driesen <drieseng@users.sourceforge.net>
1769
1770         * Color.cs: Fixed line endings. Set eol-style to native.
1771         * ColorConverter.cs: Fixed line endings. Set eol-style to native.
1772         * Size.cs: Set eol-style to native.
1773         * SizeF.cs: Use current culture in ToString(), set eol-style to native.
1774         * SizeConverter.cs: Take culture into account when converting to/from
1775         string. Set eol-style to native.
1776         * Point.cs: Fixed line endings. Set eol-style to native.
1777         * PointF.cs: Use current culture in ToString(), set eol-style to native.
1778         * PointConverter.cs: Take culture into account when converting to/from
1779         string. Set eol-style to native.
1780         * ImageFormatConverter.cs: Fixed line endings. Set eol-style to
1781         native.
1782         * RectangleConverter.cs: Fixed line endings. Set eol-style to native.
1783
1784 2005-08-16 Vladimir Krasnov <vladimirk@mainsoft.com>
1785
1786         * Graphics.jvm.cs: Fixed InterpolationMode property
1787
1788 2005-08-15 Vladimir Krasnov <vladimirk@mainsoft.com>
1789
1790         * Graphics.jvm.cs: Fixed DrawImage
1791
1792 2005-08-14 Gert Driesen <drieseng@users.sourceforge.net>
1793
1794         * ColorConverter.cs: Use TextInfo.ListSeparator as separator, as this
1795         appears to be what MS.NET uses.
1796
1797 2005-08-14 Gert Driesen <drieseng@users.sourceforge.net>
1798
1799         * Point.cs: Use invariant culture for converting numbers to string.
1800         * PointF.cs: same
1801         * SizeF.cs: same
1802
1803 2005-08-14 Gert Driesen <drieseng@users.sourceforge.net>
1804
1805         * Color.cs: Fixed ToString for uninitialized color.
1806         * ColorConverter.cs: Support conversion from whitespace-only string to
1807         Color.Empty. Fixed conversion from Color.Empty and known colors to
1808         string.
1809
1810 2005-08-14 Konstantin Triger <kostat@mainsoft.com>
1811
1812         * Graphics.jvm.cs: Initial properties implementation
1813
1814 2005-08-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1815
1816         * Graphics.jvm.cs: DrawImage refactoring
1817         
1818 2005-08-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1819
1820         * Graphics.jvm.cs: Implemented PageUnit, PageScale. 
1821         Added UpdateInternalTransform
1822         Fixed DrawImage, Transform, ConcatenateTransform
1823
1824 2005-08-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1825
1826         * Icon.jvm.cs: Internal constructor from bitmap
1827         * Added SystemIcons.jvm.cs with implementation of SystemIcons
1828         
1829 2005-08-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1830
1831         * Region.jvm.cs: Fixed GetBounds, IsVisible, IsEmpty, IsInfinite, Equals
1832         (all methods that use Graphics object)  
1833
1834 2005-08-11 Konstantin Triger <kostat@mainsoft.com>
1835
1836         * Graphics.jvm.cs: Refactoring
1837
1838 2005-08-11 Konstantin Triger <kostat@mainsoft.com>
1839
1840         * Graphics.jvm.cs: Fixed Clear, Refactoring
1841
1842 2005-08-11 Konstantin Triger <kostat@mainsoft.com>
1843
1844         * Graphics.jvm.cs: Fixed FillClosedCurve
1845
1846 2005-08-10  Zoltan Varga  <vargaz@freemail.hu>
1847
1848         * Rectangle.cs (Intersect): Return a non-empty rectangle if the two
1849         rectangles touch each other.
1850
1851 2005-08-09 Konstantin Triger <kostat@mainsoft.com>
1852
1853         * Graphics.jvm.cs: Fixed DrawCurve.
1854
1855 2005-08-09 Konstantin Triger <kostat@mainsoft.com>
1856
1857         * StrokeFactory.jvm.cs: use correct stroke
1858
1859 2005-08-09 Konstantin Triger <kostat@mainsoft.com>
1860
1861         * Added AdvancedStoke.jvm.cs and StrokeFactory.jvm.cs
1862         * Pen refactoring.
1863
1864 2005-08-09 Andrew Skiba <andrews@mainsoft.com>
1865
1866         * FontConverter.cs: exclude not implemented destructor from TARGET_JVM
1867
1868 2005-08-09 Andrew Skiba <andrews@mainsoft.com>
1869
1870         * ColorConverter.cs, ColorTranslator.cs: fixes to pass tests
1871         committed in r48150
1872
1873 2005-08-08 Konstantin Triger <kostat@mainsoft.com>
1874
1875         * Graphics.jvm.cs: Refactoring
1876
1877 2005-08-08 Vladimir Krasnov <vladimirk@mainsoft.com>
1878
1879         * Graphics.jvm.cs: Fixed DrawPolygon
1880
1881 2005-08-08 Konstantin Triger <kostat@mainsoft.com>
1882
1883         * Graphics.jvm.cs: Refactoring
1884         * Pen.jvm.cs: setting awt.Stroke as a base
1885
1886 2005-08-07 Konstantin Triger <kostat@mainsoft.com>
1887
1888         * Graphics.jvm.cs: Refactoring
1889
1890 2005-08-07 Vladimir Krasnov <vladimirk@mainsoft.com>
1891
1892         * Graphics.jvm.cs: Fixed DrawLines, DrawPolygon to use GraphicsPath
1893
1894 2005-08-07 Andrew Skiba <andrews@mainsoft.com>
1895
1896         * Rectangle.cs: Intersect fixed
1897         * RectandleF.cs: Intersect and Inflate fixed
1898
1899 2005-08-07 Andrew Skiba <andrews@mainsoft.com>
1900
1901         * Point.cs: Produce same ToString result as dotnet
1902
1903 2005-08-07 Andrew Skiba <andrews@mainsoft.com>
1904
1905         * Color.cs: GetHashCode is affected by Name, too
1906
1907 2005-08-07 Vladimir Krasnov <vladimirk@mainsoft.com>
1908
1909         * Pen.jvm.cs: Fixed ctor, LineCap, SetLineCap
1910         
1911 2005-08-07 Vladimir Krasnov <vladimirk@mainsoft.com>
1912
1913         * Graphics.jvm.cs: Fixed DrawLines, DrawPolygon
1914
1915 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1916
1917         * SolidBrush.jvm.cs: fix a typo
1918
1919 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1920
1921         * Image.jvm.cs, StringFormat.jvm.cs, FontFamily.jvm.cs, Bitmap.jvm.cs,
1922         Pen.jvm.cs, Region.jvm.cs, Brush.jvm.cs, Graphics.jvm.cs, TextureBrush.jvm.cs,
1923         Font.jvm.cs: Added TARGET_JVM implementation
1924
1925 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1926
1927         * Rectangle.cs, RectangleF.cs: TARGET_JVM - Add NativeObect property
1928
1929 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1930
1931         * BasicShape.jvm.cs: Added TARGET_JVM specific class
1932
1933 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1934
1935         * Icon.jvm.cs, SystemColors.jvm.cs: Added TARGET_JVM implementations
1936
1937 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1938
1939         * ColorTranslator.cs: (GH merge) recognise HTML system colors
1940
1941 2005-08-02 Andrew Skiba <andrews@mainsoft.com>
1942         
1943         * SolidBrush.jvm.cs: added TARGET_JVM implementation of this class
1944
1945 2005-08-02 Andrew Skiba <andrews@mainsoft.com>
1946
1947         * Color.cs: TARGET_JVM - NativeObject property
1948
1949 2005-07-27 Andrew Skiba <andrews@mainsoft.com>
1950
1951         * Color.cs: Fixes equality operators, change isXXXcolor booleans into flags enum.
1952
1953 2005-07-27 Jordi Mas i Hernandez <jordi@ximian.com> 
1954
1955         * RectangleF.cs: Fixes IsEmpty logic
1956
1957 2005-06-23 Jordi Mas i Hernandez <jordi@ximian.com> 
1958
1959         * Graphics.cs: implements FromHwndInternal
1960
1961
1962 2005-06-13  Peter Bartok  <pbartok@novell.com>
1963
1964         * Icon.cs(ToBitmap): If the icon is not 32bits, create the bitmap
1965           through an intermediary step, which turns it into a 32bit version.
1966           Fixes #75254
1967
1968 2005-06-13  Kornél Pál <kornelpal@hotmail.com>
1969
1970         * ComIStreamMarshaler.cs: Dispose releases managed objects as well,
1971           removed some unnecessary code
1972         * ComIStreamWrapper.cs: Reworked Seek method to proper support of
1973           positions beyond the size of stream
1974
1975 2005-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1976
1977         * Font.cs: fix platform checks.
1978
1979 2005-06-08 Jordi Mas i Hernandez <jordi@ximian.com> 
1980
1981         * Rectangle.cs:
1982                 - Fixes is empty method IsEmpty logic
1983                 - Fixes Contains method logic
1984                 - Fixes IntersectsWith logic
1985                 
1986         * RectangleF.cs:
1987                 - Fixes is empty method IsEmpty logic
1988                 - Fixes Contains method logic
1989                 - Fixes IntersectsWith logic
1990
1991 2005-05-28  Kornél Pál <kornelpal@hotmail.com>
1992
1993         * ComIStreamMarshaler.cs: GC.SuppressFinalize(this) is not called in
1994           destructors. Some methods renamed. Removed unnecessary variables.
1995
1996 2005-05-25  Jonathan Gilbert  <logic@deltaq.org>
1997
1998         * Image.cs: Added retrieveGDIPalette () and storeGDIPalette ()
1999           and modified the Palette property to call them. This non-
2000           persistent behaviour was discovered by trial and error with
2001           Microsoft's implementation. In fact, the Palette property
2002           does not behave like a property at all! It is the only way an
2003           instance of System.Drawing.Imaging.ColorPalette can be created,
2004           and it reflects a backing store that is only updated when the
2005           property 'set' method is called. Also updated Clone () since
2006           the palette is no longer cached at image load time.
2007         * Image.cs: Added IsIndexedPixelFormat () in the same vein as
2008           Image::IsAlphaPixelFormat and Image::IsCanonicalPixelFormat.
2009           As such a function is not listed in MSDN nor given in
2010           Microsoft's implementation, I have made it a private function
2011           within the class that uses it.
2012
2013 2005-05-24  Kornél Pál <kornelpal@hotmail.com>
2014
2015         * Graphics.cs: Revised DrawString methods
2016
2017 2005-03-22  Peter Bartok  <pbartok@novell.com>
2018
2019         * Graphics.cs: Fixed bug #74762, DrawString was crashing on s.Length
2020           if s was null.
2021
2022 2005-05-20  Kornél Pál <kornelpal@hotmail.com>
2023
2024         * Image.cs: Uses MemoryStream wrapping on all platforms if needed
2025         * gdipFunctions.cs: Modified conditional compilation syntax
2026         * ComIStreamWrapper.cs: Modified conditional compilation syntax
2027         * ComIStreamMarshaler.cs: Modified conditional compilation syntax
2028
2029 2005-05-18  Marek Safar  <marek.safar@seznam.cz>
2030
2031         * Bitmap.cs: Add null check into ctor.
2032
2033 2005-05-16 Jordi Mas i Hernandez <jordi@ximian.com> <kornelpal@hotmail.com>
2034
2035         * gdipFunctions.cs: Kornél Pál's IStream bug fixing
2036         * ComIStreamWrapper.cs: Kornél Pál's IStream bug fixing
2037         * ComIStreamMarshaler.cs: Kornél Pál's IStream bug fixing
2038
2039 2005-05-14 Jordi Mas i Hernandez <jordi@ximian.com> <kornelpal@hotmail.com>
2040
2041         * Bitmap.cs: Kornél Pál's Bitmap class ctor and MakeTransparent leak fixes
2042
2043 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
2044
2045         * gdipFunctions.cs: add GdipLoadImageFromStream and GdipSaveImageToStream
2046         * ComIStreamWrapper.cs: Kornel Pal COM Stream for Win32
2047         * ComIStreamMarshaler.cs: Kornel Pal COM Stream for Win32 
2048         * Image.cs: uses new Win32 Stream functions when need it
2049
2050 2005-05-10 Juraj Skripsky <juraj@hotfeet.ch>
2051
2052         * Color.cs: Fix GetSaturation() again and remove
2053         obsolete constants.
2054
2055 2005-05-10 Juraj Skripsky <juraj@hotfeet.ch>
2056
2057         * Color.cs: New, correct implementations for GetHue(),
2058         GetBrightness() and GetSaturation().
2059
2060 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
2061
2062         * gdipFunctions.cs: Use PlatformID.Unix under NET_2_0. 
2063         * Graphics.cs: Use PlatformID.Unix under NET_2_0. 
2064         * Image.cs: Use PlatformID.Unix under NET_2_0. 
2065
2066 2005-05-05  Miguel de Icaza  <miguel@novell.com>
2067
2068         * Bitmap.cs, Icon.cs (constructor): Use
2069         GetManifestResourceStream(Type,string) in the constructor that
2070         takes a type. 
2071
2072 2005-04-27  Lluis Sanchez Gual  <lluis@novell.com>
2073
2074         * PointF.cs: Make serialization compatible with MS.
2075
2076 2005-04-10  Geoff Norton  <gnorton@customerdna.com>
2077
2078         * Graphics.cs:
2079           carbonFunctions.cs:
2080                 Use CGContextSynchronize instead of CGContextFlush.  This saves
2081                 on average 20000 ticks per drawing operation.
2082
2083 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
2084
2085         * Color.cs: take into account the name color in == and != operators
2086         * Font.cs: Use Equals instead of == to compare the family name
2087         * FontFamily.cs:
2088            -  Removes generic fontfamilies cache (done at libgdiplus level)
2089            -  Fixes Equals method
2090
2091 2005-03-30 Jordi Mas i Hernandez <jordi@ximian.com>
2092
2093         * Pen.cs: remove locks. They are done at gdiplus level
2094         * Brush.cs: remove locks. They are done at gdiplus level
2095         * Image.cs: remove locks. They are done at gdiplus level
2096
2097 2005-03-30  Rogério Pereira Araújo <rogerio.araujo@gmail.com>
2098
2099         * Icon.cs: Finished Icon(Type, String) ctor
2100
2101 2005-03-23 Jordi Mas i Hernandez <jordi@ximian.com>
2102
2103         * gdipFunctions.cs: fixes GdipGetImagePalette signature
2104         * Image.cs: Implements Palette property using gdiplus     
2105
2106 2005-03-17  Peter Bartok  <pbartok@novell.com>
2107
2108         * gdipFunctions.cs: 
2109           - Changed P/Invoke signature for GdipLoadImageFromDelegate_linux()
2110             method, now includes a get header delegate
2111           - Added StreamGetHeaderImpl method, to allow libgdiplus to determine 
2112             the image type even on non-seekable streams
2113           - Fixed StreamGetBytesImpl to consider the bytes already retrieved
2114             via StreamGetHeaderImpl
2115         * Image.cs: Fixed call to GdipLoadImageFromDelegate_linux() to include
2116           the new StreamGetHeader delegate
2117
2118 2005-03-15 Jordi Mas i Hernandez <jordi@ximian.com>
2119
2120         * Pen.cs: Fixes dispose method to allow to be called multiple times
2121         * Graphics.cs: matrix are saved and restored at gdiplus level   
2122
2123 2005-02-24  Geoff Norton  <gnorton@customerdna.com>
2124
2125         * gdipFunctions.cs: Cache the delegates in the GdiPlusStreamHelper
2126         so they dont get garbage collected before use.
2127
2128 2005-02-11  Peter Bartok  <pbartok@novell.com>
2129
2130         * gdipFunctions.cs: Fixed prototype to match previous checkin
2131
2132 2005-02-11  Peter Bartok  <pbartok@novell.com>
2133
2134         * Graphics.cs (FromImage): Fixed type of graphics to be IntPtr (since
2135           it really is a pointer)
2136
2137 2005-02-10  Geoff Norton  <gnorton@customerdna.com>
2138
2139         * Icon.cs: Implement GetObjectData ()
2140         * Image.cs: Implement GetObjectData ()
2141
2142 2005-02-09  Geoff Norton  <gnorton@customerdna.com>
2143
2144         * Icon.cs: Implement deserializer
2145         * Bitmap.cs: Implement deserializer
2146
2147 2005-02-06  Ben Maurer  <bmaurer@ximian.com>
2148
2149         * Brushes.cs: Kill the static ctor here, it has tons of code bloat.
2150
2151 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
2152
2153         * Region.cs: revert Jackson's patch and fix this at libgdiplus level
2154
2155 2005-02-02  Jackson Harper  <jackson@ximian.com>
2156
2157         * Region.cs: The default region constructor creates and infinite
2158         region, not an empty one.
2159
2160 2005-01-27  Peter Bartok  <pbartok@novell.com>
2161
2162         * Color.cs (GetBrightness, GetSaturation, GetHue): Fixed calculations
2163           of HSV numbers. Previous implementation returned wrong numbers and NaN
2164           on achromatic colors
2165
2166 2005-01-27  Lluis Sanchez Gual  <lluis@novell.com>
2167
2168         * PointConverter.cs, ImageFormatConverter.cs, RectangleConverter.cs,
2169         SizeConverter.cs, ColorConverter.cs, FontConverter.cs
2170         : Implemented support for InstanceDescriptor.
2171
2172 2005-01-26  Peter Bartok  <pbartok@novell.com>
2173
2174         * Icon.cs (ToBitmap): Now sets transparency in according to
2175           icon AND mask
2176
2177 2004-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
2178
2179         * gdipFunctions.cs: Fixes GdipGet* function signatures
2180         * FontFamily.cs: Fixes GdipGet* function calls
2181         * Font.cs: Fixes ToString method
2182         
2183 2004-01-17 Jordi Mas i Hernandez <jordi@ximian.com>
2184
2185         * Graphics.cs: calls XCloseDisplay on X11 when need it
2186         * gdipFunctions.cs: calls XCloseDisplay on X11 when need it
2187
2188 2004-12-27  Zoltan Varga  <vargaz@freemail.hu>
2189
2190         * gdipFunctions.cs Image.cs: Fix marshalling of arrays on amd64.
2191
2192 2004-12-16  Peter Bartok  <pbartok@novell.com>
2193
2194         * Graphics.cs (GetHdc): Removed Wine assumptions, the handle is now
2195           equivalent to the gdi+ native object
2196
2197         * Font.cs (GetHfont): Removed Wine assumptions, the handle is now
2198           equivalent to the gdi+ native object
2199
2200 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
2201
2202         * carbonFunctions.cs: New carbon functions/structures
2203         * Graphics.cs: Update FromHwnd to work without being in the carbon eventing loop
2204
2205 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
2206
2207         * Graphics.cs:  Drop FromHwndWithSize; we can't change the public API
2208         Add Quartz support to FromHwnd marshalling a struct back with the ptr/width/height.
2209
2210 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
2211
2212         * Graphics.cs:  Add FromHwndWithSize for the MWF/Quartz backend
2213         * gdipFunctions.cs: Add the quartz dllimport into libgdiplus
2214
2215 2004-12-06  Miguel de Icaza  <miguel@ximian.com>
2216
2217         * FontFamily.cs: This one is static.
2218
2219 2004-11-25  Ravindra  <rkumar@novell.com>
2220
2221         * gdipFunctions.cs (GdipCreateFontFromLogfontA): Changed return
2222         type from int to Status type.
2223
2224 2004-11-25  Marek Safar  <marek.safar@seznam.cz>
2225
2226         * Image.cs: Add CheckStatus to SaveAdd.
2227
2228 2004-11-22  Ravindra  <rkumar@novell.com>
2229
2230         * Graphics.cs: Fixed null values handling in all overloads of
2231         MeasureString method.
2232
2233 2004-11-18  Ravindra  <rkumar@novell.com>
2234
2235         * gdipFunctions.cs: Removed the .so extension from a DllImport
2236         that hooks to X11.
2237
2238 2004-10-27 Jordi Mas i Hernandez <jordi@ximian.com>
2239
2240         * gdipFunctions.cs: calls GdiplusShutdown to propery signal GDI+ 
2241         termination
2242
2243 2004-11-03  Miguel de Icaza  <miguel@ximian.com>
2244
2245         * TextureBrush.cs (Clone): While cloning, it is not enough to let
2246         GDIPlus clone the underlying data, we must alos clone the managed
2247         information. 
2248
2249         * Pen.cs (Dispose): Set the nativeObject to IntPtr.Zero to catch
2250         errors in the future, set the lock on the object before doing any
2251         other tests, not after.
2252         
2253         (Clone): While cloning, it is not enough to let
2254         GDIPlus clone the underlying data, we must alos clone the managed
2255         information. 
2256
2257         * Brush.cs (Dispose): Set the nativeObject to IntPtr.Zero to catch
2258         errors in the future.
2259
2260         Set the lock in the object before checkign disposed.
2261
2262         * SolidBrush.cs (Clone): While cloning, it is not enough to let
2263         GDIPlus clone the underlying data, we must alos clone the managed
2264         information. 
2265
2266         (Dispose): Set the nativeObject to IntPtr.Zero to catch
2267         errors in the future.
2268
2269 2004-10-28  Ravindra  <rkumar@novell.com>
2270
2271         * gdipFunctions.cs: Added checks for null stream in the
2272         StreamHelper internal class.
2273         * Icon.cs: Removed an ugly hack that used temp files in
2274         ToBitmap () method. We use MemoryStream instead.
2275
2276 2004-10-27 Jordi Mas i Hernandez <jordi@ximian.com>
2277
2278         * Font.cs: fixes bug 66533
2279         
2280 2004-10-22 Jordi Mas i Hernandez <jordi@ximian.com>
2281         
2282         * Bitmap.cs, Font.cs FontFamily.cs Graphics.cs Region.cs
2283         SolidBrush.cs StringFormat.cs TextureBrush.cs: removes the
2284         lock operations after conversation with Miguel. Do not really
2285         need it.
2286
2287 2004-10-22 Jordi Mas i Hernandez <jordi@ximian.com>
2288         
2289         * Bitmap.cs: Fixes MakeTransparent problem with 24bbps
2290
2291 2004-10-19 Jordi Mas i Hernandez <jordi@ximian.com>
2292         
2293         * Bitmap.cs: Fixes MakeTransparent method
2294
2295 2004-10-13  Ravindra  <rkumar@novell.com>
2296
2297         * Graphics.cs: Moved the initialization of 'use_x_drawable'
2298         member out of private constructor to class initialization.
2299         So that, we get it right even if Graphics is not instantiated.
2300         This fixes the problem we face (otherwise) when we make first
2301         call to Graphics.FromHwnd () method.
2302
2303 2004-10-08  Ravindra  <rkumar@novell.com>
2304
2305         * Image.cs: Suppress finalization in Dispose () method.
2306
2307 2004-10-04  Ravindra  <rkumar@novell.com>
2308
2309         * gdipFunctioncs.cs: Fix from Alois for bug #67383.
2310
2311 2004-09-29  Jackson Harper  <jackson@ximian.com>
2312
2313         * Graphics.cs: Use FromHdcInternal to set the X display
2314         handle. Add a flag to check if we are on unix so we aren't calling
2315         Environment.OSVersion.Platform all the time. Mad props to Peter
2316         Bartok for this.
2317
2318 2004-09-17  Marek Safar <marek.safar@seznam.cz>
2319
2320         * Font.cs (FromHfont, ToHfont): Fixed windows implementation.
2321         ToLogFont: Implemented.
2322
2323         * gdipFunctions.cs: GdipCreateFromHDC changed int to IntPtr to
2324         avoid casts.
2325         GdipCreateFontFromLogfontA: A new extern call.
2326
2327 2004-09-13  Ravindra <rkumar@novell.com>
2328
2329         * Graphics.cs: MSDN says that using image width and height gives
2330         better performance, hence we are using image width and height to
2331         avoid autoscaling in DrawImageUnscaled.
2332
2333 2004-09-10  Ravindra <rkumar@novell.com>
2334
2335         * Graphics.cs: Implemented DrawIcon methods and fixed
2336         DrawImageUnscaled method implementation.
2337
2338 2004-08-21  Jackson Harper  <jackson@ximian.com>
2339
2340         * ImageAnimator.cs: Run animator as a background thread so we do
2341         not hang on exit.
2342
2343 2004-08-21  Ravindra  <rkumar@novell.com>
2344
2345         * gdipFunctions.cs: Modified exception message to include the case
2346         of missing required libraries for different formats.
2347
2348 2004-08-10  Jackson Harper  <jackson@ximian.com>
2349
2350         * SystemColors.cs: Make Highlight colour match colour from windows
2351         classic color scheme.
2352
2353 2004-07-30 Ravindra <rkumar@novell.com>
2354
2355         * Font.cs: Fixed Height property implementation and implemented
2356         GetHeight method and its overloads.
2357
2358 2004-07-29 Sanjay Gupta <gsanjay@novell.com>
2359
2360         * gdipFunctions.cs: Corrected signature of GdipGetPropertyItem
2361         P/Invoke function for Image.
2362         * Image.cs: Implemented GetPropertyItem() and SetPropertyItem() method.
2363
2364 2004-07-29 Sanjay Gupta <gsanjay@novell.com>
2365
2366         * gdipFunctions.cs: Corrected signatures of GdipGetPropertySize and 
2367         GdipGetAllPropertyItems P/Invoke function for Image.
2368         * gdipStructs.cs: Corrected MarshalTo() method of GdipPropertyItem.
2369         * Image.cs: Corrected implementation of PropertyItems property.
2370
2371 2004-07-29 Sanjay Gupta <gsanjay@novell.com>
2372
2373         * gdipFunctions.cs: Corrected signature of GdipGetPropertyIdList 
2374         P/Invoke function for Image.
2375         * Image.cs: Changed implementation of PropertyIdList property.
2376
2377 2004-07-28 Sanjay Gupta <gsanjay@novell.com>
2378
2379         * gdipStructs.cs: Implementing PropertyItem property in Image.cs.
2380         * Image.cs: Implemented PropertyItems and PropertyIdList properties.
2381
2382 2004-07-21  Ravindra <rkumar@novell.com>
2383
2384         * gdipFunctions.cs: Corrected signatures of GdipPathIterCopyData and
2385         GdipPathIterEnumerate P/Invoke functions for GraphicsPathIterator.
2386
2387 2004-07-21 Jordi Mas i Hernandez <jordi@ximian.com>
2388         
2389         * Graphics.cs:  fixes MeasureCharacterRanges function. It was completely wrong. 
2390         * StringFormat.cs: MeasurableCharacterRanges should be passed to GDI+
2391         * gdipFunctions.cs: new GDI function calls
2392
2393 2004-07-16  Ravindra <rkumar@novell.com>
2394
2395         * gdipFunctions.cs: Added P/Invokes for GraphicsPathIterator.
2396
2397 2004-07-15  Ravindra <rkumar@novell.com>
2398
2399         * gdipFunctions.cs: Removed GdipGetPathData P/Invoke. It is redundant.
2400
2401 2004-07-13  Ravindra <rkumar@novell.com>
2402
2403         * gdipFunctions.cs: Removed GdipGetPathGradientRectI P/Invoke.
2404         This was redundant. It was kept in previous checkin to avoid
2405         build breakage.
2406
2407 2004-07-13  Ravindra <rkumar@novell.com>
2408
2409         * gdipFunctions.cs: Added some P/Invokes for PathGradientBrush.
2410
2411 2004-07-09  Peter Bartok <pbartok@novell.com>
2412         * Graphics.cs: Added support required for new managed SWF library
2413         * gdipFunctions.cs: Added XOpenDisplay definition/import
2414
2415 2004-07-02 Jordi Mas i Hernandez <jordi@ximian.com>
2416
2417         * gdipFunctions.cs: fixes bug 61050
2418
2419 2004-06-24  Sanjay Gupta <gsanjay@novell.com>
2420
2421         * ImageAnimator.cs: Rewrote complete implementation.
2422
2423 2004-06-24  Sanjay Gupta <gsanjay@novell.com>
2424
2425         * gdipFunctions.cs: Corrected issue in GdiPlusStreamHelper class.
2426         If read function was called after seek function call, the 
2427         implementation  was returning data from bytes already peeked and 
2428         not from the new position in stream, which we have seeked.
2429         
2430 2004-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
2431
2432         * Graphics.cs: added MeasureString wrappers
2433
2434 2004-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
2435
2436         * Graphics.cs, gdipFunctions.cs: define and use GdipSetVisibleClip_linux 
2437
2438 2004-06-20 Jordi Mas i Hernandez <jordi@ximian.com>
2439
2440         * Graphics.cs, gdipFunctions.cs: added missing clip function wrappers
2441
2442 2004-06-18  Ravindra <rkumar@novell.com>
2443
2444         * FontConverter.cs: Implemented the missing functions.
2445         * Font.cs: Added some notes.
2446
2447 2004-06-16  Sanjay Gupta <gsanjay@novell.com>
2448         
2449         * gdipFunctions.cs: Modified Function signature for 
2450         GdipSaveImageToDelegate_linux() method for saving tiff images 
2451         to streams.
2452         * image.cs: Modified function call GdipSaveImageToDelegate_linux()
2453         with new signature.
2454
2455 2004-06-15  Sanjay Gupta <gsanjay@novell.com>
2456         
2457         * gdipFunctions.cs: Added delegate and StreamHelper functions, Close
2458         and Size, required by TIFFCodec. Modifed Function signature for 
2459         GdipLoadImageFromDelegate_linux() method.
2460         * image.cs: Modified function call GdipLoadImageFromDelegate_linux()
2461         with new signature.
2462
2463 2004-06-11  Ravindra <rkumar@novell.com>
2464
2465         * gdipFunctions.cs: (GdipCreateSolidFill): Changed one argument
2466         from out int to out IntPtr.
2467         * SolidBrush.cs: Same.
2468
2469 2004-06-10  Gert Driesen <drieseng@users.sourceforge.net>
2470
2471         * Image.cs: API signature fixes, meaning DisposeResources is now
2472         private and marked InitFromStream internal
2473
2474 2004-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
2475
2476         * FontFamily.cs: simplifies object destruction and fixes
2477
2478 2004-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
2479
2480         * FontFamily.cs: added destructor 
2481         * Graphics.cs: added destructor to stop leaking, remove debugging code
2482
2483
2484 2004-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
2485
2486         * gdipFunctions.cs: added GdipSaveAddImage
2487         * Image.cs: added SaveAdd methods
2488
2489 2004-06-02  Peter Bartok <pbartok@novell.com>
2490         * gdipFunctions.cs: Fixed reference to wrong DLLs for GetDC/ReleaseDC
2491           (This fixes bug #59479)
2492
2493 2004-06-01  Gert Driesen <drieseng@users.sourceforge.net>
2494
2495         * Font.cs: Added missing Browsable attribute on SizeInPoints.
2496         * Region.cs: Removed extra ComVisible attribute from Clone().
2497
2498 2004-06-01  Ravindra <rkumar@novell.com>
2499
2500         * Pen.cs: Added a note on Dispose method.
2501         * Brush.cs: Fixed Dispose method.
2502         * SolidBrush.cs: Fixed Dispose method.
2503
2504 2004-05-28  Ravindra <rkumar@novell.com>
2505
2506         * gdipFunctions.cs: Added some P/Invoke calls for Draw/Fill
2507         rectangles.
2508         * Graphics.cs: Implemented Dispose method and changed Draw/Fill
2509         rectangles implementation (This is basically done to avoid lots
2510         of brush and pen setup happening in libgdiplus.)
2511
2512 2004-05-27  Ravindra <rkumar@novell.com>
2513
2514         * Color.cs: Changed Color.Green to what MS.NET has. Conforming to MS.
2515
2516 2004-05-26  Sanjay Gupta <gsanjay@novell.com>
2517
2518         * ImageFormatConverter.cs: Fixed issues discovered from nunit 
2519         test cases.
2520
2521 2004-05-26  Ravindra <rkumar@novell.com>
2522
2523         * Color.cs: Corrected Color.Green property.
2524
2525 2004-05-24  Jordi Mas i Hernandez <jordi@ximian.com>
2526         * gdipStructs.cs: remove unnecessary code, since bug 57706 is fixed
2527
2528 2004-05-20  Sanjay Gupta <gsanjay@novell.com>
2529
2530         * Icon.cs: Fixed issue with size property.
2531
2532 2004-05-18  Ravindra <rkumar@novell.com>
2533
2534         * Pen.cs: Added value checks in DashPattern and CompoundArray
2535         properties.
2536
2537 2004-05-16  Gert Driesen <drieseng@users.sourceforge.net>
2538
2539         * Graphics.cs: fixed warning
2540         * ImageAnimator.cs: fixed warning
2541         * FontConverter.cs: fixed public API
2542
2543 2004-05-14  Vladimir Vukicevic  <vladimir@pobox.com>
2544
2545         * gdipFunctions.cs: Fixed prototype for
2546         GdipGetEncoderParameterList
2547         
2548         * Image.cs: Reworked Save functions to handle EncoderParameters.
2549         Implemented GetEncoderParameterList
2550         Also removed unused setGDIPalette internal method.
2551
2552 2004-05-14  Peter Bartok <pbartok@novell.com>
2553         * StringFormat.cs: Added CharacterRange handling
2554         * Graphics.cs: Implemented MeasureCharacterRanges method
2555
2556 2004-05-14  Peter Bartok <pbartok@novell.com>
2557         * Graphics.cs: Added error check
2558
2559 2004-05-14  Duncan Mak  <duncan@ximian.com>
2560         * gdipFunctions.cs (GdipCreatePath2I, GdipAddPathPieI):
2561         (GdipFlattenPath, GdipWarpPath, GdipWidenPath):
2562         (GdipGetPathWorldBounds, GdipGetPathWorldBoundsI): Imported.
2563
2564 2004-05-14  Sanjay Gupta <gsanjay@novell.com>
2565         * ImageFormatConverter.cs: Modified implementation of ConvertFrom() method.
2566
2567 2004-05-13  Sanjay Gupta <gsanjay@novell.com>
2568         * ImageFormatConverter.cs: Implemented GetStandardValuesSupported () method. 
2569
2570 2004-05-13  Peter Bartok <pbartok@novell.com>
2571         * Bitmap.cs: Fixed bug #52868, Bitmap(Image, Size) did not
2572         resize the image.
2573
2574 2004-05-12  Peter Bartok <pbartok@novell.com>
2575         * Image.cs: Implemented GetThumbnailImage
2576
2577 2004-05-13  Sanjay Gupta <gsanjay@novell.com>
2578         * Graphics.cs: Made method DrawRectangle (Pen , RectangleF) and 
2579         FromXDrawable(IntPtr, IntPtr) internal.
2580                         
2581 2004-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
2582         * Color.cs: work for API compatibilty: private date, todos
2583         * Font.cs: work for API compatibilty: private date, todos
2584         * FontFamily.cs: work for API compatibilty: private date, todos
2585         * Graphics.cs: work for API compatibilty: private date, todos
2586         * Icon.cs: work for API compatibilty: private date, todos 
2587         * Image.cs: work for API compatibilty: private date, todos
2588         * ImageAnimator.cs: work for API compatibilty: private date, todos
2589         * Point.cs: work for API compatibilty: private date, todos
2590         * PointF.cs: work for API compatibilty: private date, todos
2591         * Rectangle.cs: work for API compatibilty: private date, todos
2592         * RectangleF.cs: work for API compatibilty: private date, todos
2593         * Region.cs: work for API compatibilty: private date, todos
2594         * Size.cs: work for API compatibilty: private date, todos
2595         * SizeF.cs: work for API compatibilty: private date, todos
2596         * SolidBrush.cs: work for API compatibilty: private date, todos
2597         * StringFormat.cs: work for API compatibilty: private date, todos
2598         * SystemPens.cs: work for API compatibilty: private date, todos
2599         * TextureBrush.cs: work for API compatibilty: private date, todos
2600         * gdipStructs.cs: work for API compatibilty: private date, todos
2601
2602 2004-05-12  Ravindra <rkumar@novell.com>
2603
2604         * Bitmap.cs, Font.cs, FontConverter.cs, Graphics.cs, Icon.cs, Image.cs
2605         ImageAnimator.cs, Point.cs, PointF.cs, Rectangle.cs, RectangleF.cs
2606         Region.cs, Size.cs, SizeF.cs, ToolboxBitmapAttribute.cs, gdipFunctions.cs:
2607         Added missing attributes and some coding style fixes.
2608         * Pen.cs: Implementing CustomStartCap and CustomEndCap properties and 
2609         some fixes.
2610
2611 2004-05-11  Sanjay Gupta <gsanjay@novell.com>
2612
2613         * ImageAnimator.cs: Implemented first version. 
2614
2615 2004-05-11  Ravindra  <rkumar@novell.com>
2616
2617         * gdipFunctions.cs: Implementing AdjustableArrowCap. Added P/Invokes
2618         for the same.
2619
2620 2004-05-10  Ravindra  <rkumar@novell.com>
2621
2622         * gdipFunctions.cs: Implementing CustomLineCap. Added P/Invokes
2623         for the same. Added few related P/Invokes for Pen also.
2624
2625 2004-05-06  Sanjay Gupta <gsanjay@novell.com>
2626
2627         * ImageAnimator.cs: Corrected implementation of CanAnimate() method.
2628
2629 2004-05-06  Ravindra <rkumar@novell.com>
2630
2631         * RectangleConverter.cs: Implemented GetProperties () method.
2632         * SizeConverter.cs: Implemented GetProperties () method.
2633         * PointConverter.cs: Implemented GetProperties () method.
2634         * FontConverter.cs: Implemented some of the methods.
2635
2636 2004-05-06  Ravindra <rkumar@novell.com>
2637
2638         * Color.cs: Fixed Name property.
2639         * ColorTranslator.cs: Fixed the existing methods and implemented
2640         the missing methods.
2641         * ColorConverter.cs: Fixed the existing methods and implemented 
2642         the missing methods. Also, fixed coding style.
2643
2644 2004-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
2645         * Bitmap.cs: Let GDI+ calculate the strides, as it does in Win32.
2646
2647 2004-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
2648         * Image.cs: raw_format should be handled by GDI+
2649         * Bitmap.cs: raw_format should be handled by GDI+
2650
2651 2004-05-04  Ravindra <rkumar@novell.com>
2652
2653         * Pen.cs: Modified exception message. Fixed Transform, DashPattern,
2654         and DashCap properties. Implementing CoumpoundArray, StartCap, EndCap
2655         properties and SetLineCap method. In constructors use IntPtr instead
2656         of int.
2657         * SolidBrush.cs: Modified exception message.
2658         * TextureBrush.cs: Fixed Transform property.
2659         * gdipFunctions.cs: Fixed P/Invokes for Pen.cs, TextureBrush.cs and
2660         LinearGradientBrush.cs.
2661
2662 2004-04-30  Sanjay Gupta <gsanjay@novell.com>
2663
2664         * Image.cs: Implemented FrameDimensionsList property.
2665
2666 2004-04-30  Ravindra <rkumar@novell.com>
2667
2668         * gdipFunctions.cs: Added few more P/Invoke calls for
2669         lineargradient brush and added one case statement in 
2670         CheckStatus method.
2671
2672 2004-04-30  Jordi Mas i Hernandez <jordi@ximian.com>
2673
2674         * Image.cs: takes into account MemoryBmp format when saving
2675
2676 2004-04-30  Ravindra <rkumar@novell.com>
2677
2678         * StringFormat.cs: Added checks for status.
2679
2680 2004-04-30  Sanjay Gupta <gsanjay@novell.com>
2681
2682         * Image.cs: Removed calls which passes byte[] for Guid parameter.
2683         * gdipFunctions.cs: Removed unwanted unix specific function calls.
2684
2685 2004-04-30  Ravindra <rkumar@novell.com>
2686
2687         * Graphics.cs: Added checks for status.
2688         * Image.cs: Added a check for status.
2689         * FontFamily.cs: Added checks for status.
2690
2691 2004-04-29  Peter Bartok <pbartok@novell.com>
2692
2693         * Brushes.cs: Fixed bug #52695. No longer creates a new
2694         brush for every request and behaves Microsoft compatible
2695
2696 2004-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
2697
2698         * Image.cs: fixes Save method. It now retrieves the proper encoder and uses
2699         its ClsID instead of the formatID (as GDI+ expects)
2700
2701 2004-04-29  Ravindra <rkumar@novell.com>
2702
2703         * Font.cs: Added checks for status.
2704         * Bitmap.cs: Added checks for status.
2705         * Pen.cs: Added checks for status.
2706
2707 2004-04-28  Sanjay Gupta  <gsanjay@novell.com>
2708
2709         * ColorTranslator.cs, StringFormat.cs, SystemIcons.cs, ToolBoxBitmapAttributes.cs:
2710         Converted to unix format from dos format.
2711
2712 2004-04-28  Sanjay Gupta  <gsanjay@novell.com>
2713
2714         * ImageConverter.cs: Implemented GetProperties() and GetPropertiesSupported () methods.
2715
2716 2004-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
2717
2718         * gdipStructs.cs: added GdipImageCodecInfo struct
2719
2720 2004-04-28  Sanjay Gupta  <gsanjay@novell.com>
2721
2722         * ImageFormatConverter.cs: Corrected ConvertFrom method.
2723
2724 2004-04-27  Sanjay Gupta  <gsanjay@novell.com>
2725
2726         * ImageConverter.cs: Added exception message.
2727         * IconConverter.cs: Added exception message.
2728         * ImageFormatConverter.cs: Implemented first version.
2729
2730 2004-04-27  Sanjay Gupta  <gsanjay@novell.com>
2731
2732         * ImageConverter.cs: Implemented first version.
2733
2734 2004-04-27  Sanjay Gupta  <gsanjay@novell.com>
2735
2736         * IconConverter.cs: Implemented first version.
2737
2738 2004-04-26  Sanjay Gupta  <gsanjay@novell.com>
2739
2740         * Image.cs: Corrected implementation of Property RawFormat.
2741         * gdipFunctions.cs: Corrected declaration of GdipGetImageRawFormat.
2742
2743 2004-04-25  Sanjay Gupta  <gsanjay@novell.com>
2744
2745         * Bitmap.cs: Resolved a compile time error.
2746         * Image.cs: Changed the implementation of few methods to progress
2747           with ImageAnimator class.
2748         * gdipFunctions.cs: Added few linux only function calls.
2749         * Icon.cs: Removed unused variable from code.
2750
2751 2004-04-25  Vladimir Vukicevic  <vladimir@pobox.com>
2752
2753         * Graphics.cs, gdipFunctions.cs: Added CreateFromXDrawable_linux.
2754
2755 2004-04-23  Vladimir Vukicevic  <vladimir@pobox.com>
2756
2757         * Commited patch from pcgod@gmx.net (Bnehamin Jemlich) for
2758         serialization for Bitmaps.  (Bugzilla #52568)
2759
2760 2004-04-23  Ravindra <rkumar@novell.com>
2761
2762         * RectangleConverter.cs: Fixed ConvertTo () method.
2763         * SizeConverter.cs: Fixed ConvertTo () method.
2764         * PointConverter.cs: Fixed ConvertTo () method.
2765
2766 2004-04-23 Sanjay Gupta <gsanjay@novell.com>
2767         * ImageAnimator.cs: Implemented CanAnimate() method.
2768
2769 2004-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
2770         * Image.cs: added RotateFlip and RemovePropertyItem calls
2771         
2772 2004-04-22  Ravindra <rkumar@novell.com>
2773
2774         * RectangleConverter.cs: Implemented. Also changed file format
2775         dos2unix.
2776         * Rectangle.cs: Fixed ToString method.
2777         * RectangleF.cs: Fixed ToString method.
2778
2779 2004-04-22  Ravindra <rkumar@novell.com>
2780
2781         * SizeConverter.cs: Implemented some of the functions.
2782         * PointConveter.cs: Implemented.
2783         * gdipFunctions.cs: Corrected one typo.
2784         * Brushes.cs: Added a comment.
2785
2786 2004-04-22  Vladimir Vukicevic  <vladimir@pobox.com>
2787
2788         * gdipFunctions.cs: Fix StreamGetBytesImpl to handle
2789         returning portions of the peek buffer back.  Fixes #57379.
2790
2791 2004-04-21 Peter Bartok <pbartok@novell.com>
2792    * Font.cs: Implemented Font.FromHfont method
2793    * gdipStructs.cs: fixed sign for LOGFONTA lfHeight member
2794    * gdipFunctions.cs: Added imports for functions required to support
2795    Font.FromHfont method
2796
2797 2004-04-21 Jordi Mas i Hernandez <jordi@ximian.com>
2798         * RectangleConverter.cs: stubbed out
2799         * Font.cs : added missing members
2800
2801 2004-04-19  Sanjay Gupta <gsanjay@novell.com>
2802         * Icon.cs: Fixed problem in extracting bitmap from Icon.
2803
2804 2004-04-16  Ravindra <rkumar@novell.com>
2805
2806         * Pen.cs: GC should be allowed to collect any pen including
2807         system pens.
2808         * SolidBrush.cs: GC should be allowed to collect any SolidBrush
2809         including system brushes.
2810         * Brushes.cs: Coding style.
2811         * Pens.cs: Objects created by Pens are not modifiable on
2812         MS.NET, so we are now. Also, coding style fixes.
2813         * SystemPens.cs: Removed static constructor and changed file
2814         format dos2unix.
2815         * SystemBrushes.cs: Some cosmetic changes.
2816
2817 2004-04-15  Sanjay Gupta <gsanjay@novell.com>
2818         * Icon.cs: Implemented more missing bits and fixed the problem
2819                 of icon not getting saved in proper format
2820
2821 2004-04-14  Sanjay Gupta <gsanjay@novell.com>
2822         * Icon.cs: Implemented more missing bits
2823
2824 2004-04-13  Sanjay Gupta <gsanjay@novell.com>
2825         * Icon.cs: Implemented few more missing bits
2826
2827 2004-04-12  Sanjay Gupta <gsanjay@novell.com>
2828         * Icon.cs: Implemented first version
2829
2830 2004-04-11  Peter Bartok <pbartok@novell.com>
2831    * Font.cs: Implemented Font.ToHfont method; used Jordi's suggestion of splitting
2832    the code and using our own private gdiplus function when on Unix and using Win32
2833    functions when running on Windows
2834    * gdipStructs.cs: Added LOGFONTA structure
2835    * gdipFunctions.cs: Added various DllImports required for Font.ToHfont
2836
2837 2004-04-10  Vladimir Vukicevic  <vladimir@pobox.com>
2838
2839         * Image.cs: Save should use encoder.FormatID, not Clsid
2840
2841 2004-04-06  Jordi Mas i Hernandez <jordi@ximian.com>
2842         * Region.cs: fixes GdipCombineRegionRect and GdipCombineRegionRectI signature
2843         * gdipFunctions.cs: fixes GdipCombineRegionRect and GdipCombineRegionRectI signature
2844
2845 2004-04-06  Duncan Mak  <duncan@ximian.com>
2846
2847         * gdipFunctions.cs (GdipCreatePath2): Fixed signature.
2848
2849 2004-04-06  Jordi Mas i Hernandez <jordi@ximian.com>
2850         * Region.cs: fixes GetRegionScans
2851         * gdipFunctions.cs: fixes GetRegionScans
2852
2853 2004-04-06  Vladimir Vukicevic  <vladimir@pobox.com>
2854
2855         * gdipFunctions.cs: Added stream delegate helpers for
2856         stream loading/saving on linux
2857
2858         * Image.cs, Bitmap.cs: Converted to call into GDIPlus for
2859         loading/saving image data.
2860
2861 2004-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
2862         * Region.cs: implemented new methods
2863         * Graphics.cs: implemented new methods
2864
2865 2004-04-02  Jordi Mas i Hernandez <jordi@ximian.com>
2866         * Region.cs: implemented
2867
2868 2004-04-01  Duncan Mak  <duncan@ximian.com>
2869
2870         * Graphics.cs (DrawCurve): Call the correct GDI+ wrappers.
2871
2872         * gdipFunctions.cs (GdipAddPathCurveI):
2873         (GdipAddPathCurve2, GdipAddPathCurve2I):
2874         (GdipAddPathCurve3, GdipAddPathCurve3I):
2875         (GdipAddPathClosedCurve, GdipAddPathClosedCurveI):
2876         (GdipAddPathClosedCurve2, GdipAddPathClosedCurve2I): Added new
2877         wrappers from GDI+.
2878
2879 2004-03-30  Jordi Mas i Hernandez <jordi@ximian.com>    
2880         * Image.cs: implemented a few GDI+ wrapper calls
2881
2882 2004-03-30  Jordi Mas i Hernandez <jordi@ximian.com>
2883         * Bitmap.cs: remove redundant data already present at Image.cs
2884         * Image.cs: use GDI+ functions to get image details
2885         * StringFormat.cs: missing constructor and property
2886
2887 2004-03-24  Jordi Mas i Hernandez <jordi@ximian.com>
2888         * FontFamily.cs: added missing members and style clean
2889         * Graphics.cs: fixed signature of DrawArc and DrawPie
2890         * Image.cs: added missing members, fixes
2891         * StringFormat.cs: missing constructor and property
2892
2893 2004-03-24  Jordi Mas i Hernandez <jordi@ximian.com>
2894         * Graphics.cs: Added missing DrawImage GDI+ calls
2895         * gdipFunctions.cs: Added missing DrawImage GDI+ calls  
2896
2897 2004-03-23  Ravindra <rkumar@novell.com>
2898         * gdipFunctions.cs: Added few more P/Invoke calls for
2899         LinearGradientBrush.
2900
2901 2004-03-22  Ravindra <rkumar@novell.com>
2902         * gdipFunctions.cs: Added P/Invoke calls for LinearGradientBrush
2903         and did few coding style fixes.
2904
2905 2004-03-18  Ravindra <rkumar@novell.com>
2906         * Brush.cs: Fixed Dispose method.
2907         * SolidBrush.cs: Fixed clone method.
2908         * TextureBrush.cs: Fixed clone method.
2909         * gdipFunctions.cs: Fixed P/Invokes for PathGradientBrush.
2910
2911 2004-03-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2912
2913         * SizeConverter.cs: fixd typo in ConvertFrom that made height be wrong.
2914
2915 2004-03-10  Ravindra  <rkumar@novell.com>
2916         * Pen.cs: Implemented PenType property.
2917         * Brush.cs: Coding style.
2918
2919 2004-03-06  Ravindra  <rkumar@novell.com>
2920         * gdipFunctions.cs: Added few more GDI+ P/Invoke calls
2921         for PathGradientBrush.
2922
2923 2004-03-06  Ravindra  <rkumar@novell.com>
2924         * gdipFunctions.cs: Added GDI+ P/Invoke calls for
2925         PathGradientBrush.
2926
2927 2004-03-04  Duncan Mak  <duncan@ximian.com>
2928
2929         * Region.cs: Indentation.
2930
2931         * RectangleF.cs: Changed the internal structure from a PointF,
2932         SizeF to floats in order to match the layout from the C API.
2933
2934 2004-03-04  Jordi Mas i Hernandez <jordi@ximian.com>
2935         * StringFormat.cs: DigitSubstitution and TabStob methods, coding-style
2936
2937 2004-03-03  Sanjay Gupta <gsanjay@novell.com>
2938         * gdipFunctions.cs: Added functions for ImageAttributes
2939
2940 2004-03-03  Sanjay Gupta <gsanjay@novell.com>
2941         * Icon.cs: Missing function stubs added
2942         * Icon.cs: Missing function stubs added
2943         * IconConverter.cs: Missing function stubs added
2944         * ImageAnimator.cs: Missing function stubs added
2945         * ImageConverter.cs: Missing function stubs added
2946         * ImageFormatConverter.cs: Missing function stubs added
2947
2948 2004-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
2949         * Font.cs: Allow multiple styles
2950         
2951 2004-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
2952         * StringFormat.cs: Clone method
2953         
2954 2004-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
2955         * font.cs: fixes, Clone, and ToString   
2956         
2957 2004-02-21  Jordi Mas i Hernandez <jordi@ximian.com>
2958         * gdipFunctions.cs: MeasureString 
2959         * Graphics.cs : MeasureString
2960         
2961 2004-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
2962         * Font.cs: destructor and unit conversion 
2963         * Graphics.cs : system dpi support
2964
2965 2004-02-13  Ravindra <rkumar@novell.com>
2966         * Pen.cs: Fixed some bugs.
2967         * TextureBrush.cs: Fixed some bugs.
2968
2969 2004-02-13  Sanjay Gupta <gsanjay@novell.com>
2970         * gdipFunctions.cs: Added ImageCodecInfo functions
2971         * Image.cs: Added few methods 
2972
2973 2004-02-13  Jordi Mas i Hernandez <jordi@ximian.com>
2974         * FontFamily.cs: remove hardcoded font names, a few bug fixes
2975         
2976 2004-02-12  Sanjay Gupta <gsanjay@novell.com>
2977         * gdipFunctions.cs: Added Image class functions
2978         * Image.cs: Added few methods 
2979
2980 2004-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
2981         * graphics.cs: fixes parameters for DrawStrings functions
2982
2983 2004-02-07  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2984
2985         * SRDescriptionAttribute.cs: Added and implemented
2986         * ToolboxBitmapAttribute.cs: Implemented a few members
2987         * SystemIcons.cs: Stubbed
2988         * StringFormat.cs: Implemented method
2989         * Region.cs: Added Todo, fixed attribute
2990         * Size.cs: Added attribute
2991         * SizeF.cs: Added attribute
2992         * RectangleF.cs: Added attributes
2993         * Rectangle.cs: Added attributes
2994         * PointF.cs: Added attribute
2995         * Point.cs: Added attribute
2996
2997 2004-02-06  Ravindra  <rkumar@novell.com>
2998
2999         * Brush.cs: Renamed GetException method to CheckStatus
3000         and moved it to gdipFunctions.cs.
3001         * gdipFunctions.cs: Added CheckStatus method.
3002         * SolidBrush.cs: Using CheckStatus method.
3003         * TextureBrush.cs: Using CheckStatus method.
3004         * gdipEnums.cs: Added a missing value.
3005
3006 2004-02-05  Ravindra  <rkumar@novell.com>
3007
3008         * Brush.cs: Added a missing namespace.
3009
3010 2004-02-05  Ravindra  <rkumar@novell.com>
3011
3012         * gdipFunctions.cs: Added methods for HatchBrush and 
3013         SolidBrush.
3014         * SolidBrush.cs: Added checks for status.
3015         * Brush.cs: Added support for HatchBrush and TextureBrush 
3016         types in internal CreateBrush() method.
3017
3018 2004-02-03  Jordi Mas  <jordi@ximian.com>
3019         * Font.cs: Setup font properties
3020
3021 2004-02-03  Ravindra  <rkumar@novell.com>
3022
3023         * TextureBrush.cs and Brush.cs: Moved GetException (Status)
3024         method from TextureBrush.cs to Brush.cs.
3025         * Brush.cs: Made GetException (Status) method internal.
3026
3027 2004-02-03  Sanjay Gupta <gsanjay@novell.com>
3028         
3029         * gdipFunctions.cs: Added methods for Image class.
3030
3031 2004-01-30  Ravindra  <rkumar@novell.com>
3032
3033         * TextureBrush.cs: Added more methods to complete it.
3034         * gdipFunctions.cs: Added methods for TextureBrush class.
3035
3036 2004-01-30  Ravindra  <rkumar@novell.com>
3037
3038         * gdipFunctions.cs: Added methods for TextureBrush class.
3039
3040 2004-01-30  Ravindra  <rkumar@novell.com>
3041
3042         * Pen.cs: Modified to handle TextureBrush also.
3043         * Bitmap.cs: Added one internal constructor.
3044         * TextureBrush.cs: Implemented.
3045
3046 2004-01-29  Duncan Mak  <duncan@ximian.com>
3047
3048         * gdipFunctions.cs
3049         * Graphics.cs: Indentation fixes, removed long dangling lines and
3050         extra spaces. 
3051
3052         * Graphics.cs (IsVisible): Renamed variable to not use hungarian
3053         notation.
3054
3055 2004-01-29  Sanjay Gupta <gsanjay@novell.com>
3056         
3057         * FontFamily.cs: Implemented few methods and a constructor
3058
3059 2004-01-28  Sanjay Gupta <gsanjay@novell.com>
3060
3061         * gdipFunctions.cs: Added FontFamily and FontCollection functions.
3062         * FontFamily.cs: Implemented missing functionalities.
3063
3064 2004-01-24  Duncan Mak  <duncan@ximian.com>
3065
3066         * Graphics.cs (DrawPath): Implemented.
3067
3068 2004-01-23  Ravindra  <rkumar@novell.com>
3069
3070         * Point.cs: ToString modified.
3071         * PointF.cs: ToString modified.
3072         * Size.cs: ToString modified.
3073         * SizeF.cs: ToString modified. ToPoint and ToSize methods
3074         are added.
3075
3076 2004-01-21  Jordi Mas i Hernàndez
3077         * Bitmap.cs: Several new methods added.
3078                 
3079 2004-01-21  Duncan Mak  <duncan@ximian.com>
3080
3081         * gdipFunctions.cs (GdipGetPathTypes, GdipGetPathPoints): Add
3082         OutAttribute to the array argument. This fixes the PathPoints
3083         property in System.Drawing.Drawing2D.GraphicsPath.
3084
3085 2004-01-20  Ravindra  <rkumar@novell.com>
3086
3087         * Pen.cs: Fixed bug #52811 in Pen.Transform property. Setting
3088         this property was hanging and getting was throwing a NullRef
3089         Exception. Earlier we were passing Matrix object to and fro
3090         which was causing the problem. Now, we are using IntPtr.
3091         Thanks to Duncan for helping me.
3092         Also, .NET behavior is to maintain Pen.Color and Pen.Brush
3093         together. If color is set, a SolidBrush automatically gets
3094         set with the same color, Pen loses the old brush object.
3095         If a SolidBrush is set, Pen.Color gets the value same as that
3096         of brush color losing the old value. Pen shows this behavior
3097         now.
3098         * gdipFunctions.cs: Changed the signature of GdipGetPenTransform
3099         and GdipSetPenTransform methods to use IntPtr instead of Matrix.
3100
3101 2004-01-19  Duncan Mak  <duncan@ximian.com>
3102
3103         * gdipFunctions.cs: Import functions for GraphicsPath.
3104
3105 2004-01-14  Ravindra <rkumar@novell.com>
3106                                                                                 
3107         * SolidBrush.cs: Made SolidBrush to initialize its color
3108         from IntPtr.
3109                                                                                 
3110         * gdipFunctions.cs: Added call to GdipGetSolidFillColor GDI+ API.
3111
3112 2004-01-11  Duncan Mak  <duncan@ximian.com>
3113
3114         * Bitmap.cs (LockBits): 
3115         * Graphics.cs (DrawString): Removed reference to GpRectF.
3116
3117 2004-01-09  Duncan Mak  <duncan@ximian.com>
3118
3119         * gdipStructs.cs (GpRectF, GpRect, GpPointF, GpPoint):
3120         Removed. Didn't know that structs are laid out sequentially by
3121         default. We don't need these anymore.
3122
3123 2004-01-12 Ben Maurer  <bmaurer@users.sourceforge.net>
3124
3125         * Color.cs: Keep KnownColors in an array so that we avoid ht lookup.
3126
3127 2004-01-11  Daniel Morgan <danielmorgan@verizon.net>
3128
3129         * Graphics.cs: fix compile error on Windows builds for out 
3130         parameter state in call to GdipSaveGraphics
3131
3132 2004-01-10  Ravindra  <rkumar@novell.com>
3133
3134         * All Enums: Made serializable.
3135
3136         * Image.cs: Corrected signature of Dispose(bool) method.
3137
3138         * Pen.cs, SolidBrush.cs, SystemPens.cs, SystemBrushes.cs: 
3139         Corrected coding style mistakes of my previous commit.
3140
3141         * PointConverter.cs, RectangleConverter.cs: Inherit TypeConverter.
3142
3143         * PointF.cs, RectangleF.cs, SizeF.cs: Made serializable.
3144
3145         * StringFormat.cs: Inherits MarshalByRefObject.
3146
3147         * ToolboxBitmapAttribute.cs: Added missing attribute [AttributeUsage].
3148
3149 2004-01-08  Ravindra  <rkumar@novell.com>
3150
3151         * Pen.cs: Added isModifiable (bool) variable. It is required to
3152         make Pens created by SystemPens.cs unmodifiable. All property
3153         setters are modified for this.
3154
3155         * SolidBrush.cs: Added isModifiable variable (bool). It is
3156         required to make Brushes created by SystemBrushes.cs unmodifiable.
3157         All property setters are modified for this.
3158
3159         * SystemBrushes.cs: Modified all the properties as per the .NET
3160         specs, so that Brushes are not created every time. Also, missing
3161         properties are added.
3162
3163         * SystemPens.cs: Modified all the properties as per the .NET
3164         specs, so that Brushes are not created every time. Also, missing
3165         properties are added.
3166
3167 2003-12-12  Miguel de Icaza  <miguel@ximian.com>
3168
3169         * Rectangle.cs: Patch from Bryan Bulten, fixes Inflate and makes
3170         it serializable
3171
3172 2004-01-06  Duncan Mak  <duncan@ximian.com>
3173
3174         * gdipFunctions.cs: Import GraphicsPath functions from GDI+.
3175
3176 2003-12-21  Duncan Mak  <duncan@ximian.com>
3177
3178         * Graphics.cs (DrawArc): Fixed the method signature and hooked it
3179         up to the GDI+ implementation.
3180         (RotateTransform): Uncommented.
3181
3182         * gdipFunctions.cs (DrawArc, DrawArcI): Import from
3183         libgdiplus.so.dll.
3184
3185 2003-12-13  Todd Berman  <tberman@sevenl.net>
3186
3187         * Font.cs: Implementing a couple things for porting purposes
3188         * SystemBrushes.cs: ^
3189         * StringFormat.cs: ^^
3190
3191 2003-11-28  Duncan Mak  <duncan@ximian.com>
3192
3193         * Pen.cs (CompoundArray): Hide this for now.
3194
3195 2003-11-28  Duncan Mak  <duncan@ximian.com>     
3196
3197         * Brush.cs (CreateBrush): new internal factory method for creating
3198         specific brushes based on the internal (GDI+ C API) BrushType
3199         enum.
3200         (Brush (IntPtr)): new internal constructor.
3201
3202         * Pen.cs: Removed all the C# fields. We are using GDI+ completely
3203         now.
3204         (Pen (IntPtr)): new internal constructor.
3205         (Pen (Brush, float)): Use GdipCreateBrush2.
3206         (Clone): Implemented using GdipClonePen.
3207         (Alignment, Brush, Color, Width): Use GDI+ implementations
3208         instead.
3209         (CompoundArray, DashCap, DashOffset, DashPattern, DashStyle):
3210         Implemented these properties.
3211         (CustomStartCap, CustomEndCap, StartCap, EndCap, SetLineCap): Stubbed.
3212         (MultiplyTransform, ResetTransform, RotateTransform):
3213         (ScaleTransform, TranslateTransform): Implemented these methods.
3214
3215         * SolidBrush.cs (SolidBrush (IntPtr)): new internal constructor.
3216
3217         * gdipEnums.cs (BrushType): Added new GDI+ enum.
3218
3219         * gdipFunctions.cs: Imported new Brush and Pen functions.
3220
3221 2003-11-22  Duncan Mak  <duncan@ximian.com>
3222
3223         * gdipFunctions.cs
3224         (GdipResetWorldTransform, GdipSetWorldTransform):
3225         (GdipGetWorldTransform, GdipScaleWorldTransform): Imported.
3226
3227         * Graphics.cs: Remove unnecessary TODO, and reformatted the code.
3228         (transform): Removed this field. Always use the
3229         matrix associated in the GpGraphics ptr.
3230         (DrawBeziers): Implemented.
3231         (DrawLine): Don't need to manually invoke the transform now.
3232         (MultiplyTransform, ResetTransform): 
3233         (ScaleTransform, TranslateTransform): Use GDI+ implementation.
3234         (Transform): Instead of storing a Matrix in managed code, use
3235         equivalent GDI+ functions.
3236
3237 2003-11-21  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3238
3239         * SizeConverter.cs: fixed class signature and implemented some methods.
3240
3241 2003-11-17  Duncan Mak  <duncan@ximian.com>
3242
3243         * gdipFunctions.cs (GdipGetMatrixElements): Fix signature.
3244         
3245         * Graphics.cs (MultiplyTransform): Commented out until my Matrix commit.
3246
3247 2003-11-17  Duncan Mak  <duncan@ximian.com>
3248         
3249         * Bitmap.cs (LockBits):
3250         * Graphics.cs (DrawString): Use GpRectF.
3251
3252         * gdipFunctions.cs: Updated method signatures.  
3253
3254         * Graphics.cs (MultiplyTransform): Implemented using
3255         GdipMultiplyWorldTransform from GDI+.
3256
3257         * gdipStructs.cs (GdipRectF, GdipRect): Renamed to GpRectF and
3258         GpRect, to be more consistent with the C naming.
3259
3260 2003-11-16  Miguel de Icaza  <miguel@ximian.com>
3261
3262         * Graphics.cs: Implement the other DrawString overloads .
3263
3264 2003-11-16  Miguel de Icaza  <miguel@ximian.com>
3265
3266         * gdipStructs.cs (GdipRectF): Added utility constructor
3267
3268 2003-11-15  Duncan Mak  <duncan@ximian.com>
3269
3270         * gdipFunctions.cs: Imported matrix functions.
3271
3272 2003-11-13  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
3273
3274         * Bitmap.cs: Added Attributes
3275         * ColorTranslator.cs: Added private constructor
3276         * Font.cs: Added Attributes
3277         * FontFamily.cs: sealed
3278         * Icon.cs: Added Attributes
3279         * IconConverter.cs: Fixed signature
3280         * Image.cs: Added attributes
3281         * ImageAnimator.cs: 
3282         * ImageConverter.cs:
3283         * ImageFormatConverter.cs:
3284         * SolidBrush.cs:
3285         * StringFormat.cs:
3286         * SystemBrushes.cs:
3287         * SystemColors.cs:
3288         * SystemIcons.cs:
3289         * SystemPens.cs:
3290         * TextureBrush.cs: Fixed signature
3291         * Color.cs: Added attributes
3292         * Point.cs:
3293         * PointF.cs:
3294         * Rectangle.cs:
3295         * Size.cs:
3296         * SizeF.cs: Added attributes
3297         * ContentAlignment.cs: Added attribute
3298
3299 2003-11-13  Duncan Mak  <duncan@ximian.com>
3300
3301         * Pen.cs (LineCap, LineJoin, MiterLimit, Transform): implemented.
3302
3303         * gdipFunctions.cs
3304         (GdipSetPenMiterLimit, GdipGetPenMiterLimit):
3305         (GdipSetPenLineJoin, GdipGetPenLineJoin): 
3306         (GdipSetPenLineJoin, GdipGetPenTransform): imported.
3307
3308 2003-11-12  Alexandre Pigolkine <pigolkine@gmx.de>
3309         * Bitmap.cs
3310         * gdipFunctions.cs              copy image in Bitmap constructor
3311         
3312 2003-11-06  Duncan Mak  <duncan@ximian.com>
3313         * Graphics.cs (DrawPie): Use DrawPieI instead of DrawPie and fix
3314         angle parameters for the integer case.
3315         (DrawBezier): Hook it up with GdipDrawBezier.
3316         (DrawEllipse): Fix Width, Height ordering.
3317
3318 2003-11-05  Duncan Mak  <duncan@ximian.com>
3319
3320         * Graphics.cs (DrawPie): 
3321         * gdipFunctions.cs (GdipDrawPie): Add hooks to the implementation
3322         in graphics.c.
3323         
3324 2003-10-28  Duncan Mak  <duncan@ximian.com>
3325
3326         * Graphics.cs (DrawEllipse, DrawLine, DrawPolygon):
3327         (FillEllipse, FillPolygon): implemented.
3328         (RenderingOrigin): implemented.
3329
3330         * gdipFunctions.cs: Added new GDI+ equivalents.
3331
3332 2003-10-25  Alexandre Pigolkine <pigolkine@gmx.de>
3333         * Bitmap.cs
3334         * Image.cs                      small fixes
3335         
3336 2003-10-25  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
3337
3338         * Image.cs : renamed 'pallete' to 'colorPallete' for CLS compliance.
3339
3340 2003-10-24  Miguel de Icaza  <miguel@ximian.com>
3341
3342         * SystemBrushes.cs: Some more brushe3s.
3343
3344         * SystemPens.cs: More pens.
3345
3346         * Pen.cs: Implement IDisposable, ICloneable.
3347
3348         * Region.cs: Add some more stubs here.
3349
3350         * StringFormat.cs: Add some more code here.
3351
3352 2003-10-23  Miguel de Icaza  <miguel@ximian.com>
3353
3354         * Image.cs: Kill the InternalImageInfo, everything is now done in
3355         terms of Image and BitmapData.
3356
3357         * Rectangle.cs: Make this one also sequential, change from using
3358         Point + Size to use x, y, width, height;  So we can use GdiPlus.
3359
3360         * gdipFunctions.cs (GdipBitmapLockBits): Remove the ref from the
3361         BitmapData class argument, and instead use the [In,Out]
3362         attributes, which will do struct marshalling on the fields.   Now
3363         we can use C#'s BitmapData directly to talk to Gdiplus.
3364
3365         * gdipStructs.cs: Every internal structure that has to talk to
3366         Gdi+ is properly prefixed, to minimize the confussion.
3367
3368         * Bitmap.cs Bitmap (int width, int height, PixelFormat format):
3369         Compute the stride here where we have the BPP information,
3370         allocate a buffer of the proper size, and pass this to
3371         GdipCreateBitmapFromScan0 
3372
3373         * Image.cs: Implement Dispose pattern.
3374
3375 2003-10-14  Alexandre Pigolkine <pigolkine@gmx.de>
3376         * Graphics.cs
3377         * gdipFunctioncs.cs             
3378         * gdipStructs.cs                DrawString function added
3379
3380 2003-10-12  Alexandre Pigolkine <pigolkine@gmx.de>
3381         * gdipEnums.cs 
3382         * gdipFunctions.cs 
3383         * gdipStructs.cs                added 
3384                                                 
3385
3386 2003-10-12  Alexandre Pigolkine <pigolkine@gmx.de>
3387         * Bitmap.cs
3388         * Brush.cs
3389         * Font.cs
3390         * FontFamily.cs
3391         * Graphics.cs
3392         * Image.cs
3393         * Pen.cs
3394         * SolidBrush.cs
3395                                                 implementation changed to gdi+
3396
3397 2003-09-08  Duncan Mak  <duncan@ximian.com>
3398
3399         * Factories.cs (DefaultImplementationNamespace): Change it from
3400         "XrImpl" to "Cairo".
3401
3402 2003-08-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3403
3404         * Color.cs: fixed FromArgb to handle alpha value correctly. Closes
3405         bug #47727.
3406
3407 2003-08-08  Duncan Mak  <duncan@ximian.com>
3408
3409         * Graphics.cs (DrawBezier): Fixed.
3410
3411 2003-08-03  Alexandre Pigolkine <pigolkine@gmx.de>
3412         * Graphics.cs  delegate Dispose to implementation
3413
3414 2003-08-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3415
3416         * FontConverter.cs: stub it out so that system.web compiles.
3417
3418 2003-07-30 Alexandre Pigolkine <pigolkine@gmx.de>
3419         * Image.cs      InternalImageInfo class improved
3420
3421 2003-07-23  Miguel de Icaza  <miguel@ximian.com>
3422
3423         * Factories.cs: If the AppDomain key `Mono.Running.Windows.Forms'
3424         is set, default to Win32Impl 
3425
3426 2003-07-22 Alexandre Pigolkine <pigolkine@gmx.de>
3427         * Image.cs      implementation added
3428         
3429 2003-07-21  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
3430
3431         * Icon.cs: Stubed out (fix for System.Drawing.Design)
3432
3433 2003-07-17  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
3434
3435         * StringFormat.cs: Changes to become CLS-compliant
3436
3437 2003-07-14  Miguel de Icaza  <miguel@ximian.com>
3438
3439         * Factories.cs: Remove debugging message.
3440
3441 2003-07-01 Alexandre Pigolkine <pigolkine@gmx.de>
3442         * Color.cs      code generation program modified
3443
3444 2003-06-29 Alexandre Pigolkine
3445         * Graphics.cs   image drawing
3446
3447 2003-06-28 Alexandre Pigolkine <pigolkine@gmx.de>
3448         * Color.cs                      
3449         * SystemColors.cs       
3450                 supply KnowColor enum value to save Enum.Parse at runtime
3451
3452 2003-06-26 Alexandre Pigolkine <pigolkine@gmx.de>
3453         * Graphics.cs           coordinate transformations
3454         * Image.cs                      small fix
3455
3456 2003-06-22 Alexandre Pigolkine <pigolkine@gmx.de>
3457         * Factories.cs
3458         * FontFamily.cs         more implementation
3459
3460 2003-06-20 Alexandre Pigolkine <pigolkine@gmx.de>
3461         * Font.cs
3462         * FontFamily.cs         more implementation
3463
3464 2003-06-18 Alexandre Pigolkine <pigolkine@gmx.de>
3465         * Graphics.cs           few more calls to implementation
3466
3467 2003-06-15 Alexandre Pigolkine <pigolkine@gmx.de>
3468     * Bitmap.cs                 BITMAP declaration removed
3469         * Graphics.cs           few more calls to implementation
3470         * Image.cs                      InternalImageInfo structure, image read/write functions
3471                         
3472                         
3473 2003-05-26 Alexandre Pigolkine <pigolkine@gmx.de>
3474         * Factories.cs  analyse environment variable and machine.config to select implementation
3475         * Image.cs              PixelFormat property added
3476
3477 2003-04-30  Nick Drochak <ndrochak@gol.com>
3478
3479         * Factories.cs: Change weird characters that broke build on windows.
3480
3481 2003-04-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3482
3483         * ColorConverter.cs:
3484         (ConvertFrom): return a system or named color if there's one that fits
3485         teh values parsed with Color.FromArgb.
3486
3487 2003-04-26  Alexandre Pigolkine <pigolkine@gmx.de>
3488         * Bitmap.cs
3489         * Brush.cs
3490         * Font.cs
3491         * Graphics.cs
3492         * Image.cs
3493         * Pen.cs
3494         * SolidBrush.cs
3495         * SystemBrushes.cs
3496         * Factories.cs
3497                         delegate function calls to implementation
3498
3499 2003-04-26  Alexandre Pigolkine <pigolkine@gmx.de>
3500         * Bitmap.cs
3501         * ChangeLog
3502         * Image.cs
3503         * SystemBrushes.cs              switch to Linux style line terminators
3504
3505 2003-03-29 Alan Tam <Tam@SiuLung.com>
3506         * ToolboxBitmapAttribute
3507                 stubbed more constructors and fixed base class
3508
3509 2003-03-01 Alexandre Pigolkine <pigolkine@gmx.de>
3510         * SystemBrushes.cs
3511                         added stubs to compile SWF
3512
3513
3514 2003-02-21  Alexandre Pigolkine <pigolkine@gmx.de>
3515         * Font.cs
3516         * Graphics.cs
3517         * Image.cs
3518         * SystemBrushes.cs
3519                         small changes to be able to run SWF apps
3520
3521 2003-02-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3522
3523         * Graphics.cs: stubbed out all the methods.
3524
3525 2003-02-08 Piers Haken <piersh@friskit.com>
3526
3527         * fixed case of pens.cs and font.cs
3528
3529 2003-02-07 Alexandre Pigolkine <pigolkine@gmx.de>
3530         * Font.cs Added
3531         * Graphics.cs
3532         * StringFormat.cs 
3533         * SystemBrushes.cs
3534                 stubs added
3535
3536 2002-11-21 Dennis Hayes (dennish@raytek.com)
3537         * checkin for Matt Stump (mstump@swfo.arizona.edu)
3538         * Pens.cs
3539         * Added file
3540
3541 2002-10-19  Rachel Hestilow <hestilow@ximian.com>
3542
3543         * ColorTranslator.cs (FromHtml): Implement.
3544         
3545 2002-10-14 Dennis Hayes (dennish@raytek.com)
3546         * Region.cs
3547         * changed using namespace from Drawing2d to Drawing2D
3548
3549  2002-9-15 Asier Llano <asierllano@infonegocio.com>
3550         
3551         * Fixes the enum values in the following enums
3552         * ContentAlignment.cs:
3553         * FontStyle.cs:
3554         * GraphicsUnit.cs:
3555         * KnownColor.cs:
3556         * RotateFlipType.cs:
3557         * StringAligment.cs:
3558         * StringDigitSubstitute.cs:
3559         * StringFormatFlags.cs:
3560         * StringTrimming.cs:
3561         * StringUnit.cs: 
3562         * SolidBrush.cs: Easy implementation
3563         * Brushes.cs:    Implementation based on SolidBrush and Color class.
3564         * Brush.cs:      Fixes based on the status web).
3565         * CharacterRange.cs: Implemented the missing Lenth property.
3566
3567 2002-9-14 Dennis Hayes (dennish@raytek.com)
3568         
3569         * sample.cs
3570         * removed personal template that should not have been checked in
3571
3572 2002-09-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3573
3574         * ColorConverter.cs: readded MonoTODOs and implemented a couple of
3575         methods.
3576
3577 2002-9-14  DennisHayes <dennish@raytek.com>
3578
3579         * FontConverter.cs
3580         * FontFamily.cs
3581         * Icon.cs
3582         * IconConverter.cs
3583         * ImageAnimator.cs
3584         * ImageConverter.cs
3585         * ImageFormatConverter.cs
3586         * PointConverter.cs
3587         * RectangleConverter.cs
3588         * Sample.cs
3589         * SizeConverter.cs
3590         * SolidBrush.cs
3591         * StringFormat.cs
3592         * SystemBrushes.cs
3593         * SystemIcons.cs
3594         * SystemPens.cs
3595         * TextureBrush.cs
3596         * ToolboxBitmapAttribute.cs
3597         * Added null classes for most/all classes, Many stubs, and some implmentation
3598
3599 2002-9-2  DennisHayes <dennish@raytek.com>
3600
3601         * Bitmap.cs
3602         * Color.cs
3603         * ColorConverter.cs
3604         * Image.cs
3605         * Pen.cs
3606         * Added stubs, implmentation
3607
3608 2002-9-2  DennisHayes <dennish@raytek.com>
3609
3610         * Brushes.cs : stubbed, added colors. Not sure how to implement,
3611                                  but this should at least save someone some typing.
3612         * CharacterRange.cs :Implmented
3613         * Region.cs : stub needed for system.windows.forms
3614
3615 2002-07-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3616
3617         * ColorTranslator.cs: use Color.Name.
3618
3619 2002-07-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3620
3621         * Color.cs: implemented SystemColors and NamedColors properties that
3622         are used by ColorConverter, removed public constructor, use
3623         SystemColors, and misc. fixes to make it behave as MS (ToString,
3624         parsing names, FromKnownColor,...).
3625
3626         * ColorConverter.cs: use NamedColors and SystemColors from Color when
3627         trying to get the color from its name.
3628
3629         * SystemColors.cs: new file.
3630
3631 2002-07-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3632
3633         * Color.cs: changed static properties to use FromArgbNamed. Also
3634         modified the program included in comments that get the values for
3635         static properties.
3636
3637         (FromArgbNamed): build named colors.
3638         (FromKnownColor): fixed.
3639         (FromName): use a hash to look up colors by name.
3640         (FillColorNames): create the hash of colors.
3641         (Equals): compare values and name.
3642         (ToString): improved.
3643
3644         * ColorTranslator.cs: implemented ToHtml.
3645
3646 2002-06-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3647
3648         * Color.cs: added TypeConverter attribute.
3649         
3650         * ColorConverter.cs: added constructor.
3651
3652 2002-06-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3653
3654         * ColorConverter.cs: implemented minimal set of features needed by xsp.
3655
3656 2002-05-03  Mike Kestner <mkestner@speakeasy.net>
3657
3658         * Bitmap.cs : using System.IO
3659         * ColorTranslator.cs : Stubbed off build breakers.
3660         * Image.cs : Stub off IDisposable and ICloneable.
3661         
3662 2002-04-27  Christian Meyer  <Christian.Meyer@cs.tum.edu>
3663
3664         * Bitmap.cs: Ximian is the new copyright holder now.
3665         * Image.cs: ditto
3666
3667 2002-04-05  Christian Meyer  <Christian.Meyer@cs.tum.edu>
3668
3669         * Uppercased several files.
3670
3671 2002-04-05  Christian Meyer  <Christian.Meyer@cs.tum.edu>
3672
3673         * color.cs: Fixed a typo in GetSaturation ().
3674
3675 2002-02-26  Christian Meyer  <Christian.Meyer@cs.tum.edu>
3676
3677         * Bitmap.cs: Added method headers.
3678
3679 2002-02-25  Christian Meyer  <Christian.Meyer@cs.tum.edu>
3680
3681         * Bitmap.cs: Added, no implementation's done, yet.
3682
3683 2001-12-15  Mike Kestner <mkestner@speakeasy.net>
3684
3685         * Rectangle.cs : Add a doc comment.
3686         * RectangleF.cs : New struct implementation.
3687
3688 2001-12-15  Mike Kestner <mkestner@speakeasy.net>
3689
3690         * Rectangle.cs : New struct implementation.
3691
3692 2001-08-17  Mike Kestner <mkestner@speakeasy.net>
3693
3694         * PointF.cs, Size.cs, SizeF.cs : New struct implementations.
3695
3696 2001-08-16  Mike Kestner <mkestner@speakeasy.net>
3697
3698         * Point.cs : New. Implementation of System.Drawing.Point struct.
3699