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