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