1 2007-10-17 Geoff Norton <gnorton@novell.com>
3 * carbonFunctions.cs: Initial support for clipping children out of the
4 CGContext before drawing on it.
6 2007-10-09 Geoff Norton <gnorton@novell.com>
8 * carbonFunctions.cs: Correct the P/Invoke definition for CGContext*CTM.
10 2007-09-26 Ivan N.Zlatev <contact@i-nz.net>
12 * ColorConverter.cs: During conversion to InstanceDescriptor check
13 both IsSystemColor to get a PropertyInfo from type SystemColors
14 and IsKnownColor to get PropertyInfo from type Color.
16 2007-08-09 Vladimir Krasnov <vladimirk@mainsoft.com>
18 * ColorTranslator.cs: optimized Html color formatting in ToHtml method
20 2007-08-13 Sebastien Pouliot <sebastien@ximian.com>
22 * gdipFunctions.cs: Change GdipMeasureString definition to use unsafe
24 * Graphics.cs: Rework MeasureString not to supply integers (characters
25 and lines) as they aren't required for most of it's overloads and
26 requires extra code/time to calculate inside libgdiplus. Also fix a
27 possible NRE in MultiplyTransform.
29 2007-08-01 Sebastien Pouliot <sebastien@ximian.com>
31 * gdipFunctions.cs: Added definition for GdipCloneFontFamily
33 2007-08-01 Vladimir Krasnov <vladimirk@mainsoft.com>
35 * Bitmap.jvm.cs: fixed InternalPixelFormat TYPE_BYTE_GRAY
37 2007-05-30 Sebastien Pouliot <sebastien@ximian.com>
39 * Graphics.cs: Refactor [Get|Release]Hdc to get ReleaseHdcInternal
40 working (as long as the HDC comes from GetHdc).
42 2007-05-21 Adar Wesley <adarw@mainsoft.com>
46 * Region.jvm.cs: Changed MemberwiseClone to clone.
48 2007-05-21 Adar Wesley <adarw@mainsoft.com>
50 * Font.jvm.cs: added implementation for Equals and GetHashCode.
52 * Graphics.jvm.cs: added missing DrawImage overloads,
53 DrawImageUnscaledAndClipped.
55 2007-05-18 Sebastien Pouliot <sebastien@ximian.com>
57 * Icon.cs: Always open icon files as read only. Fix #81669.
59 2007-05-15 Sebastien Pouliot <sebastien@ximian.com>
61 * Graphics.cs: Fix DrawImageUnscaled for empty (width or height <= 0)
62 Fix NRE in DrawImageUnscaledAndClipped. Remove lines with only tabs in
64 * RectangleF.cs: A rectangle with a negative width or height is also
67 2007-05-09 Igor Zelmanovich <igorz@mainsoft.com>
69 * FontConverter.cs: for TARGET_JVM destructor is not used.
71 2007-05-03 Igor Zelmanovich <igorz@mainsoft.com>
73 * ColorConverter.cs: fixed GetStandardValues() for TARGET_JVM
74 * Font.jvm.cs: fixed GetHeight()
76 2007-05-02 Sebastien Pouliot <sebastien@ximian.com>
78 * gdipEnums.cs: Add GetSysColorIndex
79 * gdipStructs.cs: Remove GetSysColorIndex (it's an enum)
80 * KnownColors.cs: Fix Windows desktop colors as GetSysColor returns
81 values in BGR (not RGB).
83 2007-05-01 Sebastien Pouliot <sebastien@ximian.com>
85 * KnownColors.cs: Force alpha values (opaque) on Win32's GetSysColor.
87 2007-04-30 Sebastien Pouliot <sebastien@ximian.com>
89 * Color.cs: Reflection didn't like the change from int to uint (thanks
90 to Gert for noticing again :-).
92 2007-04-29 Konstantin Triger <kostat@mainsoft.com>
94 * Color.cs: FromName - do not throw on unknown color.
96 2007-04-26 Sebastien Pouliot <sebastien@ximian.com>
98 * Color.cs: Try to avoid calling GetName in GetHashCode when the color
99 isn't named. Commented code (#81465) to remove the string name member
100 for the 2.0 profile (to avoid a reference in a struct).
101 * ColorConverter.cs: Use the new KnownColor static uint array.
102 * ColorTranslator.cs: Share code between From[Win32|Ole] (both BGR).
103 Reduce ToHtml switch size (when html name == known color name).
104 * KnownColors.cs: Remove the array of struct for every known colors.
105 Add an array of uint with color values and a method to return the name
106 of a known color. Big reduction of the static ctor code size.
108 2007-04-26 Sebastien Pouliot <sebastien@ximian.com>
110 * gdipFunctions.cs: Add p/invoke definitions for GdipRecordMetafile
111 FromDelegate[I]_linux.
113 2007-04-26 Sebastien Pouliot <sebastien@ximian.com>
115 * gdipFunctions.cs: Add p/invoke definitions for GdipRecordMetafile
116 [FileName|FromStream][I].
118 2007-04-16 Sebastien Pouliot <sebastien@ximian.com>
120 * Bitmap.cs: Add check in SetPixel for Format16bppGrayScale (but
121 without requiring a second unmanaged call on each SetPixel call).
123 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
125 * Brush.cs: Ensure we're zeroing the handle before calling
126 CheckStatus. Some clean up.
127 * Pen.cs: Ensure we're zeroing the handle before calling CheckStatus.
128 Use Locale.GetText for exceptions.
130 2007-04-11 Sebastien Pouliot <sebastien@ximian.com>
132 * Bitmap.cs: Move LockBits validations into unmanaged code.
133 * gdipFunctions.cs: Add mapping for Win32Error in CheckStatus. Add
134 globalization support for CheckStatus and add the GDI+ status code in
136 * SolidBrush.cs: Clean up and add comments about [un]named colors.
138 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
140 * Color.cs: Remove duplicate check in == and add better comments
142 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
144 * Color.cs: Remove hashtables and locks. All color properties are read
145 from KnownColors. Remove extra & 0xFF (typecast to byte is enough).
146 Keep track of the Name property once calculated. When possible (most
147 likely case) don't create the names (strings) in Equals, == and !=
148 * ColorTranslator.cs: Use the new KnownColors instead of the separate
149 NamedColors and SystemColors.
150 * ColorConverter.cs: Use the new KnownColors instead of the separate
151 NamedColors and SystemColors.
152 * gdipFunctions.cs: Moved GetSysColor p/invoke signature here as this
153 class is marked by [SuppressUnmanagedCodeSecurity].
154 * gdipStructs.cs: Moved Windows-specific GetSysColorIndex enum here.
155 * KnownColors.cs: New. Single source for all colors.
156 * SystemColors.cs: Vastly simplified. All color properties are read
159 2007-04-05 Sebastien Pouliot <sebastien@ximian.com>
161 * gdipFunctions.cs: Remove unused (and not part of GDI+) GdipGetHfont
164 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
166 * Pen.cs: Simplify. Caching the brush still involved too many
167 unmanaged calls and was hiding libgdiplus bugs (e.g. 81266). Color is
168 still cached (a little less ;-) but needs to stay that way so we keep
169 the color names available (it's the expected behavior).
171 2007-03-20 Sebastien Pouliot <sebastien@ximian.com>
173 * Graphics.cs: Replace TODO on all EnumerateMetafile overloads.
175 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
177 * Font.cs: Add a better exception for trying to create a font
178 where the requested style is not available. [Fixes #81194]
180 2007-03-15 Sebastien Pouliot <sebastien@ximian.com>
182 * ColorConverter.cs: Rewrite the hex color convertion to be more
183 compatible with MS implementation (fixing NotWorking unit tests) and
184 more endian friendly.
186 2007-02-28 Sebastien Pouliot <sebastien@ximian.com>
188 * Font.cs: Remove internal SysFontName setter property and add a new
190 * SystemFonts.cs: We can't cache font instance (because anyone can
191 dispose them) so we must return new instances each time.
193 2007-02-27 Sebastien Pouliot <sebastien@ximian.com>
195 * Bitmap.cs: Removed unrequired ctors.
196 * TextureBrush.cs: Change which GDI+ calls is used to create the
197 brush (to better match what you expect from libgdiplus source). Add
198 [MonoLimitation] to ctors accepting ImageAttributes (not supported
199 by libgdiplus). Split some long lines into two lines.
201 2007-02-26 Sebastien Pouliot <sebastien@ximian.com>
203 * gdipFunctions.cs: Add p/invoke signature for GDI DeleteObject.
204 * Region.cs: Under Windows use DeleteObject when calling ReleaseHrgn.
207 2007-02-21 Sebastien Pouliot <sebastien@ximian.com>
209 * Image.cs: Fix Metefile.ctor usage (to avoid creating, and leaking,
210 an unmanaged metafile object);
212 2007-02-16 Sebastien Pouliot <sebastien@ximian.com>
214 * gdipFunctions.cs: Fix some p/invoke definitions (int versus uint)
215 and add more for metafile functions.
216 * Image.cs: Fix usage of corrected p/invoke signatures.
218 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
220 * SystemColors.cs: Query Windows for the colors added to this class
221 for 2.0. (Windows-only path of course.)
223 2007-02-13 Sebastien Pouliot <sebastien@ximian.com>
225 * Icon.cs: Ignore Vista 256x256 icons, just like MS does.
227 2007-02-09 Sebastien Pouliot <sebastien@ximian.com>
229 * Icon.cs: Resurrected some old Icon to Bitmap code from SVN history
230 to handle convertion for Win32, where MS GDI+ ICO codec doesn't
231 support all the icon formats supported by the Icon class.
233 2007-02-08 Sebastien Pouliot <sebastien@ximian.com>
235 * Bitmap.cs: Adapt code wrt Image changes. Reuse the serialization
236 ctor from Image to avoid duplicate code.
237 * gdipEnums.cs: Added ImageType. Clean up extra stuff.
238 * gdipFunctions.cs: Added GdipGetImageType and some metafile
240 * Image.cs: Refactor code not to create a Bitmap for every images
241 (e.g. FromFile, FromStream) as the result can also be a Metafile.
243 2007-01-30 Sebastien Pouliot <sebastien@ximian.com>
245 * Image.cs: Fix serialization of Image/Bitmap that contains ICO. In
246 this case the image is serialized as a PNG bitmap (note: the ICO codec
247 is a decoder-only codec).
249 2007-01-19 Sebastien Pouliot <sebastien@ximian.com>
251 * Graphics.cs: Fix FromImage to check for indexed images inside
252 managed code (and not GDI+ which will report the wrong error code
253 for the exception we expect).
254 * Image.cs: Remove unused private method IsIndexedPixelFormat.
256 2007-01-19 Sebastien Pouliot <sebastien@ximian.com>
258 * Font.cs: Fix calls to GDIPlus.ReleaseDC (missing parameter). This
259 fix the GDI object leaks under Win32 (#80552).
260 * gdipFunctions.cs: Fix ReleaseDC signature (missing hWnd).
261 * Graphics.cs: Fix ReleaseDC signature (missing hWnd) in NET_2_0.
263 2007-01-19 Sebastien Pouliot <sebastien@ximian.com>
265 * Font.cs: Under Win32 cache the LOGFONT we use to create the HFONT
266 handle. This "hides" the fact that ToLogFont leaks (#80552).
268 2007-01-17 Sebastien Pouliot <sebastien@ximian.com>
270 * gdipFunctions.cs: Added Win32 CreateIconIndirect and DestoryIcon
271 imports. Both are required under Win32 to get HICON stuff working.
272 Added some GDI+ Metafile related definitions too.
273 * gdipStructs.cs: Update IconInfo structure so it can be used when
274 calling CreateIconIndirect on Win32.
275 * Icon.cs: Add support for handles under Win32.
277 2007-01-16 Sebastien Pouliot <sebastien@ximian.com>
279 * Icon.cs: Implement saving an icon from it's bitmap representation.
280 This allows roundtripped icons (Handle or HICON) to be saved.
282 2007-01-15 Sebastien Pouliot <sebastien@ximian.com>
284 * Icon.cs: Refactor Save code to allow saving a single icon size.
285 This allows ToBitmap to produce the right (sized) bitmap wrt the
286 selected icon size. Fix #80509 under UNIX.
288 2007-01-15 Sebastien Pouliot <sebastien@ximian.com>
290 * Bitmap.cs: Make sure we're not building bitmaps using stream that
291 can be disposed (as GDI+ may require access to them anytime);
292 * Icon.cs: Change icon selection to match either width *or* height.
293 * Image.cs: Track user versus internal streams in InitFromStream
295 2007-01-12 Sebastien Pouliot <sebastien@ximian.com>
297 * Graphics.cs: Change DrawIcon* methods to use the internal bitmap
298 we keep for the Icon. This is required to let HICON support work with
299 libgdiplus (and should be faster than creating a new bitmap each time)
300 * Icon.cs: Fix ctor exceptions. Select the correct icon when multiple
301 size are available (and do not match the requested size). Fix handle
302 support for work under UNIX (Win32 support still missing). Keep an
303 internal bitmap for the Icon to use for HICON support.
305 2007-01-11 Sebastien Pouliot <sebastien@ximian.com>
307 * Icon.cs: Fix .ctor(string) to load, when available, the 32x32 icon.
308 Remove TARGET_JVM from file (Mainsoft now use Icon2.jvm.cs). Use GDI+
309 to implement ToBitmap method (previous results were wrong).
311 2007-01-10 Sebastien Pouliot <sebastien@ximian.com>
313 * Image.cs: Fix Palette to call into GDI+ even for non-indexed images.
314 This case can occurs with the ICOn codec where the returned image is a
315 32bpp ARGB bitmap *with* a palette.
317 2007-01-09 Sebastien Pouliot <sebastien@ximian.com>
319 * Font.cs: Unify platform detection code.
320 * gdipFunctions.cs: Unify platform detection code.
321 * Graphics.cs: Unify platform detection code.
322 * Image.cs: Unify platform detection code.
323 * SystemColors.cs: Unify platform detection code.
325 2007-01-08 Sebastien Pouliot <sebastien@ximian.com>
327 * gdipStructs.cs: Add support for SignaturePatterns and
328 SiggnatureMasks values.
330 2006-12-30 Alexander Olk <alex.olk@googlemail.com>
332 * gdipFunctions.cs: Don't create "millions" of byte arrays in
333 GdiPlusStreamHelper. Just create a default size array and resize it
334 only when needed. (as an example: the FileDialog sample created more
335 than 1700 new byte arrays on my system before the patch, now only 74)
337 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
339 * Brush.cs: Fixed line endings.
340 * BufferedGraphicsContext.cs: Fixed line endings.
341 * CharacterRange.cs: Fixed line endings.
342 * Graphics.cs: Fixed line endings.
343 * IDeviceContext.cs: Fixed line endings.
344 * SizeFConverter.cs: Fixed line endings.
345 * SystemBrushes.cs: Fixed line endings.
346 * SystemFonts.cs: Fixed line endings.
347 * SystemPens.cs: Fixed line endings.
349 2006-12-22 Sebastien Pouliot <sebastien@ximian.com>
351 * Graphics.cs: Splitted CopyFromScreen into platform specific methods
352 and added MonoLimitations to all overloads. This should get better
355 2006-12-19 Sebastien Pouliot <sebastien@ximian.com>
357 * FontFamily.cs: More accurate Mono* attributes to avoid confusion.
358 * Icon.cs: Dummy implementation of ExtractAssociatedIcon to always
359 return SystemIcons.WinLogo (which is better than throwing an NIE).
360 Updated MonoTODO, to a MonoLimitation, to reflect the change.
362 2006-12-14 Sebastien Pouliot <sebastien@ximian.com>
364 * Image.cs: Rework Clone so it doesn't confuse MoMA to report a NIE.
365 Cloning works for bitmap. Metafiles aren't (actually) supported.
367 2006-12-07 Sebastien Pouliot <sebastien@ximian.com>
369 * Icon.cs: Revert a change from r68882. The type is also part of the
370 icon's name. Fix bug #80181.
372 2006-12-03 Sebastien Pouliot <sebastien@ximian.com>
374 * Icon.cs: Add a new ctor that returns undisposable Icon instances
375 (required when used from SystemIcons). Added a dispose check in
376 ToBitmap (many other are missing).
377 * SystemIcons.cs: Change icons to the one already in SVN.
379 2006-12-02 Sebastien Pouliot <sebastien@ximian.com>
381 * FontConverter.cs: Add a comment why the empty finalizer is required.
382 * gdipFunctions.cs: Remove warning from build (unused variable).
383 * Icon.cs: Fix .ctor accepting a type - the type is to find the
384 assembly, not the type of the ressource.
385 * SystemIcons.cs: Load some icons from the assembly (all the same Mono
388 2006-11-22 Sebastien Pouliot <sebastien@ximian.com>
390 * BufferedGraphicsContext.cs: Better MonoTODO.
391 * BufferedGraphics.cs: Better MonoTODO.
392 * Font.cs: Better MonoTODO.
393 * FontFamily.cs: Better MonoTODO.
394 * Graphics.cs: Better MonoTODO.
395 * Icon.cs: Better MonoTODO.
396 * Image.cs: Second chance while saving using the current RawFormat.
397 This allows icons to be saved as PNG (strange but look at unit tests).
398 * ImageFormatConverter.cs: Implement GetStandardValues (and remove
399 it's MonoTODO) and fix GetStandardValuesSupported (to return true).
400 * Region.cs: Implement ReleaseHrgn (2.0) - not really useful (as the
401 handle is never exposed) but it's easier than to document the TODO ;-)
402 * SystemIcons.cs: Better MonoTODO.
404 2006-11-06 Sebastien Pouliot <sebastien@ximian.com>
406 * RectangleF.cs: Fix operator !=. Patch by Manuel Alejandro Cerón
409 2006-11-04 Chris Toshok <toshok@ximian.com>
411 * SystemColors.cs: reassign the given color to the return value of
412 UpdateKnownColor. This makes sure that the color has the same
413 SystemColor name. So, SystemColors.Control.Name always equals
414 "Control", regardless of the values the theme has stuffed in it.
416 * Color.cs: UpdateKnownColor now returns the new color.
418 2006-10-11 Sebastien Pouliot <sebastien@ximian.com>
420 * Graphics.cs: In MeasureCharacterRanges throw an ArgumentException if
421 StringFormat is null and return an empty region array if no range exists
422 (avoid GDI+ error/exeception). In MeasureString (2 overloads) replace
423 999999 by Int32.MaxValue (now that the real bug is fixed).
424 * StringFormat.cs: Ensure we are clearing the handle before throwing
427 2006-09-21 Sebastien Pouliot <sebastien@ximian.com>
429 * gdipFunctions.cs: Throw an OverflowException for the ValueOverflow
432 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
434 * gdipFunctions.cs, Image.cs: 78315. Probably in the future we should
435 add the same checking for other resource release GDI API calls.
437 2006-09-19 Sebastien Pouliot <sebastien@ximian.com>
439 * StringFormat.cs: Add missing validations.
441 2006-09-18 Sebastien Pouliot <sebastien@ximian.com>
443 * Graphics.cs: Add missing validations to MeasureCharacterRanges.
445 2006-09-18 Sebastien Pouliot <sebastien@ximian.com>
447 * Graphics.cs: Reorder instructions in MeasureString methods to avoid
448 allocations before checking for quick exit case (null/String.Empty
449 text or throwing execptions).
451 2006-09-11 Sebastien Pouliot <sebastien@ximian.com>
453 * ImageConverter.cs: Fixed ConvertTo to deal with null values (#79331)
454 and not to "return new NotSupportedException", throwing them is better
456 2006-09-07 Kornél Pál <kornelpal@gmail.com>
458 * ComIStreamMarshaler.cs: ManagedToNativeWrapper: Dispose COM vtable
459 on shutdown. Dispose unmanaged resources when constructor fails.
461 2006-09-06 Kornél Pál <kornelpal@gmail.com>
463 * ComIStreamMarshaler.cs: ManagedToNativeWrapper should not have a
464 destructor because it is freed using Release. (Proper fix for bug
465 #78315.) Free COM vtable when unloading and all objects Released.
467 2006-09-06 Jonathan Chambers <joncham@gmail.com>
469 * ComIStreamMarshaler.cs: Only deallocate memory
470 for COM wrapper if not shutting down. #78315
472 2006-09-04 Jonathan Chambers <joncham@gmail.com>
474 * ComIStreamMarshaler.cs: Do not deallocate unmanaged memory
475 allocated for vtable. If this finalizer runs before all clients
476 are done with it (Image(s) in this case) we crash on windows. #78315
478 2006-09-01 Sebastien Pouliot <sebastien@ximian.com>
480 * Bitmap.cs: Fix exceptions for LockBits.
482 2006-08-28 Sebastien Pouliot <sebastien@ximian.com>
484 * ImageAnimator.cs: Remove catch/throw in WorkerThread (it hides the
485 original exception). Found with Gendarme.
486 * Color.cs: Remove the double-check lock. Found with Gendarme.
487 * ColorConverter.cs: Remove the double-check lock. Found with Gendarme
489 2006-08-28 Jonathan Chambers <joncham@gmail.com>
491 * ComIStreamMarshaler.cs: Do not free memory allocated for
492 Com Callable Wrapper for stream. When Image created from stream
493 is destroyed, it calls Release on CCW interface. Somehow we seem
494 to be destroying Stream CCW before Image is destroyed. Fixes
495 crash on exit on Windows. #78315
497 2006-08-28 Boris Kirzner <borisk@mainsoft.com>
499 * SystemColors.jvm.cs: fix array size for NET_2_0
501 2006-08-27 Sebastien Pouliot <sebastien@ximian.com>
503 * ColorConverter.cs: Catch the case where the integer part of the
504 color doesn't fit into a 32bit integer.
505 * ColorTranslator.cs: Fixed Gendarme's UseStringEmptyRule on ToHtml
506 method. Fixed string handling on FromHtml method. Fixed all parameter
509 2006-08-25 Sebastien Pouliot <sebastien@ximian.com>
511 * gdipFunctions.cs: Change ColorMatrix to IntPtr in method
512 GdipSetImageAttributesColorMatrix definition.
513 * FontConverter.cs: Fix compiler warnings.
515 2006-08-24 Sebastien Pouliot <sebastien@ximian.com>
517 * TextureBrush.cs: Remove private Image member as we cannot, without
518 cloning it (which removes the advantage of caching it), return it for
519 the Image property *and* we cannot dispose of it properly (Dispose
522 2006-08-22 Sebastien Pouliot <sebastien@ximian.com>
524 * gdipFunctions.cs: Fix GdipGetImageWidth to use an uint for it's
526 * Image.cs: Cast the uint into an int for the Width property.
528 2006-08-12 Duncan Mak <duncan@novell.com>
530 * gdipFunctions.cs (GdipLoadImageFromStream):
531 (GdipSaveImageToStream): Don't include these methods when
532 compiling the unit tests.
534 2006-08-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
536 * gdipFunctions.cs: return -1 when stream.Length throws.
538 2006-08-11 Sebastien Pouliot <sebastien@ximian.com>
540 * Font.cs: Remove the, now unrequired, FaceNameOffset field and
541 use the object size instead of the structure size when copying.
543 2006-08-11 Sebastien Pouliot <sebastien@ximian.com>
545 * Font.cs: Added more checks to ToLogFont and fixed it's behaviour
546 to match MS boundary between GDI+ and SD.
548 2006-08-07 Andrew Skiba <andrews@mainsoft.com>
550 * Graphics.jvm.cs, Pen.jvm.cs, Region.jvm.cs: TARGET_JVM fix
552 2006-08-05 Sebastien Pouliot <sebastien@ximian.com>
554 * Font.cs: Avoid double cast in Equals. Return lfCharSet as 1 in
555 ToLogFont even if GDI+ has that value to 0.
557 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
559 * Icon.cs: when converting to Bitmap, handle the 24 bits separately.
560 Read the XOR and AND masks in a single read.
562 2006-08-04 Sebastien Pouliot <sebastien@ximian.com>
564 * Pen.cs: Fix unit tests wrt libgdiplus return value change.
566 2006-08-03 Sebastien Pouliot <sebastien@ximian.com>
568 * FontFamily.cs: Fix unit tests wrt libgdiplus return value change.
569 * Region.cs: Fix unit tests wrt libgdiplus return value change.
571 2006-08-01 Jonathan Chambers <joncham@gmail.com>
573 * Font.cs: Fix marshalling of LOGFONT in ToHfont.
576 2006-07-20 Sebastien Pouliot <sebastien@ximian.com>
578 * Graphics: Added implementation for ReleaseHDC by Jonathan Pobst
581 2006-07-06 Sebastien Pouliot <sebastien@ximian.com>
583 * Image.cs: Ensure we're setting the nativeObject to NULL before
584 throwing any exception while disposing (and avoid possible double
585 freeing). Avoid multiple casts in Clone method.
586 * Pen.cs: Ensure the internal pen's brush is always disposed
587 correctly. Avoid making a reference to the internal brush.
588 * SolidBrush.cs: Avoid setting color when cloning the solid brush
589 as the .ctor(IntPtr) always does this job.
591 2006-07-04 Sebastien Pouliot <sebastien@ximian.com>
593 * Image.cs: Made GetThumbnailImage throw OutOfMemoryException when
594 image size is invalid (to match MS behaviour), also ensure that the
595 Graphics instance is disposed even if CheckStatus throws an exception.
597 2006-06-26 Sebastien Pouliot <sebastien@ximian.com>
599 * Pen.cs: Ensure we dispose of an existing brush before replacing it.
600 Avoid double-cast when dealing with SolidBrush.
602 2006-06-06 Sebastien Pouliot <sebastien@ximian.com>
604 * gdipFunctions.cs: Fix API signature (missing pen pointer) for
605 GdipIsOutlineVisiblePathPoint[I] methods.
606 * FontFamily.cs: Delay the call to refreshName until it is actually
609 2006-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
611 * Color.cs: when deserializing from an MS generated stream, the value
612 for known colors was 0. These changes make our Color handle that case.
613 We won't serialize the name for known colors either, but the value will
614 be there, so we only check for a 0 value on a known color once.
617 2006-05-30 Sebastien Pouliot <sebastien@ximian.com>
619 * Font.cs: Change default charset to 1. Ensure we always call the
620 CheckStatus method after calling GDI+. Added null checks to match MS
622 * FontFamily.cs: Avoid double-cast in Equals. Fixed Equals not compare
623 pointers but names. Simplify the Generic* static properties by reusing
624 the .ctor code. Fixed ToString to match MS output. Removed
625 GetStyleCheck as it failed when multiple styles were provided (flags).
626 * gdipFunctions.cs: Convert Status.FontFamilyNotFound to an
629 2006-05-29 Sebastien Pouliot <sebastien@ximian.com>
631 * ImageFormatConverter.cs: Changed ConvertFrom to work with both short
632 (e.g. Bmp) and long (e.g. guid) names.
634 2006-05-26 Sebastien Pouliot <sebastien@ximian.com>
636 * ImageFormatConverter.cs: Fixing unit tests for ImageFormat
637 introduced a regression in the converter (not catched by other unit
640 2006-05-25 Sebastien Pouliot <sebastien@ximian.com>
642 * gdipFunctions.cs: Added wrapper methods for GdipGetRegionHRgn and
643 GdipCreateRegionHrgn functions.
644 * Region.cs: Reimplement GetHrgn and FromHrgn methods using the GDI+
647 2006-05-24 Sebastien Pouliot <sebastien@ximian.com>
649 * PointConverter.cs: Fx 2.0 throws an ArgumentException in
650 CreateInstance if some values are missing from the dictionary, while
651 1.x throws an NullReferenceException.
652 * RectangleConverter.cs: Fx 2.0 throws an ArgumentException in
653 CreateInstance if some values are missing from the dictionary, while
654 1.x throws an NullReferenceException.
655 * SizeConverter.cs: Fx 2.0 throws an ArgumentException in
656 CreateInstance if some values are missing from the dictionary, while
657 1.x throws an NullReferenceException.
658 * SizeFConverter.cs: Fix CreateInstance to use float (not int).
660 2006-05-24 Sebastien Pouliot <sebastien@ximian.com>
662 * Font.cs: Added a Demand for UnmanagedCode on both ToLogFont methods.
663 * Graphics.cs: Added checks for null Rectangle[F] arrays in
664 FillRectangles methods and removed the check for 0-length (MS throws).
665 Let EndContainer mthod throws a NullReferenceException on 1.x profile.
666 * Pen.cs: Let Brush property throws a NullReferenceException on 1.x.
668 2006-05-24 Sebastien Pouliot <sebastien@ximian.com>
670 * Pen.cs: Clone the supplied brush in the .ctor (as the user may
671 dispose of it anytime). Make sure we're disposing our cached brush
672 when disposing the pen.
674 2006-05-21 Sebastien Pouliot <sebastien@ximian.com>
676 * ContentAlignment.cs: Removed [Serializable] from 2.0 profile.
677 * FontStyle.cs: Removed [Serializable] from 2.0 profile.
678 * GraphicsUnit.cs: Removed [Serializable] from 2.0 profile.
679 * KnownColor.cs: Removed [Serializable] from 2.0 profile.
680 * RotateFlipType.cs: Removed [Serializable] from 2.0 profile.
681 * StringAligment.cs: Removed [Serializable] from 2.0 profile.
682 * StringDigitSubstitute.cs: Removed [Serializable] from 2.0 profile.
683 * StringFormatFlags.cs: Removed [Serializable] from 2.0 profile.
684 * StringTrimming.cs: Removed [Serializable] from 2.0 profile.
685 * StringUnit.cs: Removed [Serializable] from 2.0 profile.
687 2006-05-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
689 * ImageAnimator.cs: get the FrameDelay from the image properties, if
690 available. Remove ^Ms.
692 2006-05-17 Sebastien Pouliot <sebastien@ximian.com>
694 * Pen.cs: Get the pen color from the solid brush (when applicable).
695 Added missing validations for most properties. Always return a clone
696 of the internal brush (so no one can dispose of it in our back).
698 2006-05-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
700 * Color.cs: make it serialization-compatible with MS. Fixes bug #78265.
702 2006-05-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
704 * Bitmap.cs: (Clone) use the 'format' argument instead of the
707 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
709 * Graphics.cs : (FillRectangles/FillRectanglesI): when argument
710 array is empty, don't invoke GDI+. Fixed bug #78408.
712 2006-05-12 Sebastien Pouliot <sebastien@ximian.com>
714 * gdipFunctions.c: Fix misnamed GdipAdd*Path*String[I] API (#78383)
716 2006-05-11 Peter Dennis Bartok <pbartok@novell.com>
718 * Icon.cs: Don't require width/height to be non-0 when creating from
719 serialized data, just require them to be square
721 2006-05-04 Sebastien Pouliot <sebastien@ximian.com>
723 * Graphics.cs: Chaned DrawIcon methods to dispose the temporary bitmap
726 2006-05-04 Sebastien Pouliot <sebastien@ximian.com>
728 * Graphics.cs: Added a MonoTODO to PixelOffsetMode property so it shows
729 (in the class status library) a note that this isn't supported with
732 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
734 * FontConverter.cs (ConvertFrom): Implemented it properly. Fixes #78269
736 2006-05-02 Sebastien Pouliot <sebastien@ximian.com>
738 * PointF.cs: Add operators + and - between PointF and SizeF in the
739 2.0 profile (CSC 8.x can compile that, but sadly it doesn't show in as
740 missing in corcompare results).
742 2006-05-02 Sebastien Pouliot <sebastien@ximian.com>
744 * gdipFunctions.cs: Fixed wrappers for Gdip[Begin|End]Container[2][I]
745 * Graphics.cs: Fixed usage of fixed API ;-) Added MonoTODO on
746 BeginContainer methods that use rectangles and on TextContrast property
747 (all aren't currently supported in libgdiplus).
749 2006-05-01 Sebastien Pouliot <sebastien@ximian.com>
751 * Graphics.cs: Removed MonoTODO on DrawCurve methods (it's fixed in
752 libgdiplus). Fixed minor extra/missing for corcompare.
754 2006-05-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
756 * SizeF.cs: serialization compatibility fixes. Closes bug #78236.
758 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
760 * Icon.cs: Icon AND masks are organized in strides, fixed to calculate
761 and set proper transparency. Also fixed broken calculation of AND
762 size when reading the icon. NDocGui now shows pretty buttons.
764 2006-04-28 Sebastien Pouliot <sebastien@ximian.com>
766 * Color.cs: corcompare fix. Remove ComVisible attribute from 2.0 build
767 * Region.cs: Remove old todo that were fixed in libgdiplus.
768 * Image.cs: corcompare fixes. Clone isn't virtual. Added DefaultValue
769 attribute to Tag property. FromStream(Stream,bool,bool) is available
770 in Fx 1.1 (probably since SP1).
772 2006-04-28 Sebastien Pouliot <sebastien@ximian.com>
774 * Graphics.cs: Added MonoTODO on some DrawCurve methods because
775 libgdiplus doesn't use the numberOfSegments argument.
777 2006-04-27 Sebastien Pouliot <sebastien@ximian.com>
779 * gdipFunctions.cs: Added wrappers for GdipAddPathLine2 and
780 GdipAddPathLine2I methods (to allow adding a single point).
782 2006-04-27 Sebastien Pouliot <sebastien@ximian.com>
784 * gdipFunctions.cs: Added CharSet=CharSet.Unicode to GdipAddString and
785 GdipAddStringI wrapper methods.
787 2006-04-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
789 * Bitmap.cs: throw when the target pixel format differs from the one
790 of the image and it's an indexed format. We were failing in UnlockBits
793 2006-04-25 Miguel de Icaza <miguel@novell.com>
795 * FontConverter.cs (FontUnitConverter): implement. CorCompare
796 for some reason does not dig into nested classes, match the
799 (FontNameConverter): Return the fonts available on the system.
801 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
803 * Icon.cs: We need to or, not and our alpha values into the
804 palette. Also, we need to actually store the altered palette
805 on the bitmap, since we are altering a copy.
807 2006-04-10 Sebastien Pouliot <sebastien@ximian.com>
809 * gdipFunctions.cs: Fixed wrappers for GdipCreateMatrix3[I].
811 2006-03-23 Peter Dennis Bartok <pbartok@novell.com>
814 - GdipGetFontCollectionFamilyList: No need for complicated
815 GlobalAlloc stuff, .Net marshals the IntPtr[] array just fine
816 - GdipDeletePrivateFontCollection: We need to pass a ref to the
817 structure. This was causing nasty crashes.
818 - GdipGetFamilyName: Switched to use StringBuilder instead of
820 * FontFamily.cs: Simplified the refreshName method, less error-prone now
822 2006-03-21 Sebastien Pouliot <sebastien@ximian.com>
824 * Brush.cs: Remove unused code.
825 * FontFamily.cs: Remove warnings from build.
826 * gdipFunctions.cs: Add missing p/invoke calls for GdipAddString[I].
828 2006-03-21 Sebastien Pouliot <sebastien@ximian.com>
830 * gdipFunctions.cs: Import XFree (from libX11) so we can free the
832 * Graphics.cs: Free the memory we get from XGetVisualInfo.
834 2006-03-20 Sebastien Pouliot <sebastien@ximian.com>
836 * Brush.cs: Allow Dispose to free the unmanaged memory for the brush
837 in every case. This has been known (in the past) to cause crashes
838 in Cairo. If still true then we need to find out why!
840 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
842 * gdipFunctions.cs: Removed XCloseDisplay call from Gdi+ shutdown,
843 it was causing crashes in the finalizers (bug #77464)
845 2006-03-06 Jonathan Gilbert <logic@deltaq.org>
847 * gdipFunctions.cs: Rewrote the StreamSeekImpl function to invalidate
848 the start_buf cached bytes whenever Seek() is actually called. If
849 Seek is not called (an invalid 'whence' value), then the buffer is
850 not invalidated. This fixes a bug with TIFF loading.
852 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
854 * Image.cs (ISerializable.GetObjectData): Save the image in it's
855 original format. (Fixes #77673)
857 2006-02-28 Jonathan Chambers <jonathan.chambers@ansys.com>,
858 Peter Dennis Bartok <pbartok@novell.com>
861 - ToLogFont: Reworked to allow running under MS runtime and to
862 support it being called with both boxed structs and formatted
863 classes (MS runtime PtrToStructure cannot marshal boxed value
864 types, but Marshal.AsAny can)
865 - Switched all usage of LOGFONTA to more generic CharSet-driven
867 - FromLogFont: Switched to use charset-agnostic GdipCreateFontFromLogfont
868 * gdipStructs.cs: Dropped LOGFONTA and LOGFONTW and switched to
869 CharSet-driven LOGFONT structure (needed because of ToLogFont fix)
870 * gdipFunctions.cs: Switched GdipGetLogFont, GdipCreateFontFromLogfont and
871 CreateFontIndirect to use LOGFONT structure, set to be CharSet=Auto
872 (needed because of ToLogFont fix)
874 2006-02-18 Duncan Mak <duncan@novell.com>
876 * Graphics.cs (DrawBeziers): Patch from Alexander Olk to fix
877 possible IndexOutOfRangeException.
879 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
881 * Image.cs, Bitmap.cs: Removed unneeded casts
882 * Icon.cs: Fixed code to be 64bit safe
884 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
886 * Font.cs: Fixes 77407
888 2006-01-27 Sebastien Pouliot <sebastien@ximian.com>
890 * Font.cs: Ensure unmanaged memory is free correctly in ToLogFont
891 even if GDIPlus.CheckStatus throws an exception;
892 * Image.cs: Ensure unmanaged memory is free correctly even if
893 GDIPlus.CheckStatus throws an exception. Note: the SetPropertyItem use
894 case is unclear to me (and unimplemented in libgdiplus);
895 * Region.cs: Ensure unmanaged memory is free correctly in
896 GetRegionScans even if GDIPlus.CheckStatus throws an exception;
898 2006-01-27 Jordi Mas i Hernandez <jordimash@gmail.com>
900 * gdipFunctions.cs: New gdiplus imports
901 * Font.cs: Use gdiplus calls to get font height and size
903 2006-01-26 Sebastien Pouliot <sebastien@ximian.com>
905 * FontFamily.cs: Free the memory allocated with Marshal.AllocHGlobal.
906 * Region.cs: Updated TODO to reflect current status.
908 2006-01-24 Konstantin Triger <kostat@mainsoft.com>
910 * Font.jvm.cs, FontFamily.jvm.cs: use static container.
912 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
914 * Icon.cs: The code wrongly assumed that the stride for the icon
915 would be the same as the stride for the bitmap. This was causing
918 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
920 * Icon.cs: Reworked ToBitmap() method to not use Bitmap(Stream)
921 which when calling down to MS GDI+ will create an image
922 where neither GetPixel or Save can be used on.
924 2006-01-18 Sebastien Pouliot <sebastien@ximian.com>
926 * gdipFunctions.cs: Added declaration for GdipCreateRegionRgnData.
927 * Region.cs: Implemented .ctor(RegionData)
929 2006-01-13 Miguel de Icaza <miguel@novell.com>
931 * Region.cs: Revert the Region.cs check in GetHrgn as it was used
932 by our Windows.Forms implementation.
934 2006-01-11 Sebastien Pouliot <sebastien@ximian.com>
936 * Graphics.cs: Avoid creating bitmaps two times if both X and Y
937 default DPI are required (i.e. init both value in both cases).
938 * Region.cs: Added null check to match MS behaviour (exception type)
939 and avoid NRE (before CheckStatus is called). Added security demands
940 for unmanaged code on both FromHrgn and ReleaseHrgn (2.0) methods.
942 2005-12-22 Jonathan Chambers <jonathan.chambers@ansys.com>
944 * gdipFunctions.cs: Do not call GdiplusShutdown for
945 now as it causes a crash on MS GDI+.
947 2005-12-20 Konstantin Triger <kostat@mainsoft.com>
949 * Font.jvm.cs: charset support.
951 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
953 * Graphics.cs (Flush): Make sure nativeObject is not null
955 2005-12-14 Konstantin Triger <kostat@mainsoft.com>
957 * StrokeFactory.jvm.cs: create AdvancedStroke when have penTransform.
959 2005-12-13 Konstantin Triger <kostat@mainsoft.com>
961 * Bitmap.jvm.cs: Fix MakeTransparent.
963 2005-12-07 Jordi Mas i Hernandez <jordimash@gmail.com>
965 * Graphics.cs: Add new deephs support to CopyFromScreen
967 2005-12-07 Jordi Mas i Hernandez <jordimash@gmail.com>
969 * BufferedGraphicsManager.cs: Fixes signature
971 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
974 - Implemented FromLogFont
975 - Implemented ToLogFont
978 - Added GdipGetLogFontW method
979 - Specified charset for GdipGetLogFontA method
980 * gdipStructs.cs: Added LOGFONTW structure
982 2005-12-05 Gert Driesen <drieseng@users.sourceforge.net>
984 * BufferedGraphics.cs: Removed duplicate class. Set eol-style to
986 * BufferedGraphicsManager.cs: Removed duplicate class. Set eol-style
989 2005-12-05 Jordi Mas i Hernandez <jordimash@gmail.com>
991 * gdipFunctions.cs: DllExports need it to implement
992 new Graphics.CopyFromScreen .Net 2.0 methods
993 * IDeviceContext.cs: New .Net 2.0 interface
994 * Color.cs: Fixes for new .Net 2.0 KnowColors
995 * PointF.cs: New .Net 2.0 Add/Subtract methods
996 * gdipStructs.cs: Structs need it for Graphics.CopyFromScreen
997 * SystemBrushes.cs: New standard SystemBrushes for .Net 2.0
998 * SizeF.cs: New .Net 2.0 Add/Subtract methods
999 * FontConverter.cs: New .Net 2.0 fixes
1000 * SystemColors.cs: New standard SystemColors for .Net 2.0
1001 * SizeFConverter.cs: New .Net 2.0 class (based on SizeConverter)
1002 * CharacterRange.cs: : New .Net 2.0 methods
1003 * Size.cs: New .Net 2.0 Add/Subtract methods
1004 * SystemPens.cs: New standard SystemPens for .Net 2.0
1005 * Bitmap.cs: New .Net 2.0 methods
1006 * Region.cs: New .Net 2.0 methods
1007 * Brush.cs: New .Net 2.0 constructor
1008 * Icon.cs: New .Net 2.0 Constructors and methods
1009 * Point.cs: New .Net 2.0 Add/Subtract methods
1010 * BufferedGraphicsManager.cs: New .Net 2.0 class
1011 * Graphics.cs: New methods for .Net 2.0 and fixes
1012 * BufferedGraphics.cs: New .Net 2.0 class
1013 * Font.cs: New .Net 2.0 properties
1014 * Image.cs: New .Net 2.0 tag property
1015 * KnownColor.cs: New .Net 2.0 know colors
1016 * CopyPixelOperation.cs: New .Net 2.0 enum
1017 * SystemFonts.cs: New .Net 2.0 class
1018 * BufferedGraphicsContext.cs: New .Net 2.0 class
1020 2005-11-28 Konstantin Triger <kostat@mainsoft.com>
1022 * SystemIcons.jvm.cs: refactoring.
1024 2005-11-28 Konstantin Triger <kostat@mainsoft.com>
1026 * Icon.cs: TARGET_JVM changes.
1028 2005-11-17 Vladimir Krasnov <vladimirk@mainsoft.com>
1030 * Image.jvm.cs: fixed Save, flush output stream
1032 2005-11-17 Konstantin Triger <kostat@mainsoft.com>
1034 * StrokeFactory.jvm.cs, Pen.jvm.cs, Graphics.jvm.cs: performance - use BasicStroke when possible.
1036 2005-11-17 Vladimir Krasnov <vladimirk@mainsoft.com>
1038 * ColorConverter.cs: fixed ConvertFrom, to be able
1039 to convert from three digit notation color (#abc)
1041 2005-11-16 Konstantin Triger <kostat@mainsoft.com>
1043 * Bitmap.jvm.cs: open a correct stream.
1045 2005-11-16 Konstantin Triger <kostat@mainsoft.com>
1047 * FontFamily.jvm.cs, Font.jvm.cs: throw exception if invalid params.
1049 2005-11-16 Konstantin Triger <kostat@mainsoft.com>
1051 * FontFamily.jvm.cs: fix for custom font collection
1053 2005-11-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1055 * FontFamily.jvm.cs: fixed GetName
1057 2005-11-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1059 * Bitmap.jvm.cs: fixed InternalSave() error handling
1060 * Image.jvm.cs: fixed Save() error handling
1062 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1064 * FontFamily.jvm.cs: Refactoring.
1066 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1068 * Font.jvm.cs: Refactoring.
1070 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1072 * StringFormat.jvm.cs, Graphics.jvm.cs: DrawString,
1073 MeasureString support
1075 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1077 * FontFamily.jvm.cs: correctly initialize fontcollection
1079 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1081 * FontFamily.jvm.cs: DrawMargin, refactoring.
1083 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1085 * Graphics.jvm.cs, Pen.jvm.cs, AdvancedStroke.jvm.cs:
1086 Differentiate standard and AntiAlias stroking
1088 2005-11-10 Vladimir Krasnov <vladimirk@mainsoft.com>
1090 * Graphics.jvm.cs: added UnitConversion property
1091 * FontFamily.jvm.cs: refactoring
1092 * Font.jvm.cs: refactoring
1094 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
1097 - Implemented serialization constructor
1098 - Implemented GetObjectData()
1100 2005-11-01 Vladimir Krasnov <vladimirk@mainsoft.com>
1102 * StringFormat.jvm.cs: Refactoring
1104 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
1106 * Image.cs: Default format for MemoryBMP should be Png
1108 2005-10-27 Vladimir Krasnov <vladimirk@mainsoft.com>
1110 * Bitmap.jvm.cs: fixed InternalSave
1111 * Image.jvm.cs: fixed Save
1113 2005-10-27 Vladimir Krasnov <vladimirk@mainsoft.com>
1115 * Image.jvm.cs: fixed redolution properties
1117 2005-10-27 Vladimir Krasnov <vladimirk@mainsoft.com>
1119 * Bitmap.jvm.cs: fixed InternalSave, to remove alpha channel of saved jpeg
1120 fixed clone, Initialize
1122 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
1124 * Brush.cs: Don't delete the brush if the display handle is no longer
1125 valid, otherwise cairo will try to use the handle and crash and burn
1127 2005-10-23 Vladimir Krasnov <vladimirk@mainsoft.com>
1129 * Graphics.jvm.cs: DrawImage refactoring
1131 2005-10-23 Vladimir Krasnov <vladimirk@mainsoft.com>
1133 * Graphics.jvm.cs: Clipping refactoring
1134 fixed FillScaledShape, DrawShape, MeasureDraw, BeginContainer,
1135 ExcludeClip, IntersectClip, ResetClip, CombineClipArea, RestoreBaseClip,
1136 TranslateClip, VisibleClipBounds
1138 2005-10-21 Miguel de Icaza <miguel@novell.com>
1140 * Pen.cs: Add support for returning the Brush from Pens created
1141 with a color constructor.
1143 Plus: code style police, else does not go on its own line.
1145 * Graphics.cs: Add various ArgumentNull checks.
1147 2005-10-20 Konstantin Triger <kostat@mainsoft.com>
1149 * Image.jvm.cs: make Clone abstract
1151 2005-10-20 Konstantin Triger <kostat@mainsoft.com>
1153 * Font.jvm.cs: make fallbacks for GdiCharSet, GdiVerticalFont
1155 2005-10-19 Vladimir Krasnov <vladimirk@mainsoft.com>
1157 * Bitmap.jvm.cs: fixed InternalSave, ToBufferedImageFormat, Clone
1158 * PlainImage.jvm.cs: fixed Clone
1159 * Graphics.jvm.cs: fixed FillShape, Clear, FillScaledShape
1161 2005-10-19 Vladimir Krasnov <vladimirk@mainsoft.com>
1163 * Brush.jvm.cs: added InternalClone() method
1164 changed transformation methods access level
1165 * TextureBrush.jvm.cs: refactoring, fixed clone()
1167 2005-10-19 Vladimir Krasnov <vladimirk@mainsoft.com>
1169 * AdvancedStroke.jvm.cs: fixed createStrokedShape, check for transform
1170 matrix singularity added
1171 * Font.jvm.cs: implemetated ISerializable
1172 * Pen.jvm.cs: fixed DashPattern property,
1173 fixed GetNativeObject() dash pattern calculation
1175 2005-10-14 Jordi Mas i Hernandez <jordi@ximian.com>
1177 * SystemColors.cs: Fixes the Win32 light and lightlight colours
1179 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
1181 * SystemColors.cs: Fixes the Win32 system colors including the color
1182 name and the knownColor properties.
1184 2005-10-07 Peter Dennis Bartok <pbartok@novell.com>
1186 * FontFamily.cs: Use Marshal.PtrToStringUni to do the string
1187 conversion, it's less overhead than StringBuilder. (Part of the
1188 bugfix for #74871 and #75534)
1190 * gdipFunctions: Changed signature for GdipGetFamilyName to just
1191 have an IntPtr for the buffer
1193 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
1195 * Graphics.cs, FontFamily.cs: Calling GC.SuppressFinalize from Dispose,
1198 2005-09-29 Peter Dennis Bartok <pbartok@novell.com>
1200 * SystemColor.cs: Added code used to generate properties, updated with
1203 2005-09-29 Peter Dennis Bartok <pbartok@novell.com>
1205 * SystemColor.cs: Make internal names predictable to allow scripted
1206 generation of color table
1208 2005-09-28 Peter Dennis Bartok <pbartok@novell.com>
1210 * Color.cs(UpdateKnownColor): Ensure knownColors exists before trying
1213 2005-09-27 Peter Dennis Bartok <pbartok@novell.com>
1216 - Changed properties to return colors from fields. This allows
1217 updating the colors via reflection, for example from MWF themes.
1218 - Added code to retrieve system colors via Win32 GetSysColors if
1219 running on Win32, this makes us compatible with Microsoft instead
1220 of returning static colors on Win32. Unix platforms still will
1221 use the static colors
1222 * Color.cs: Added UpdateKnownColor() method to allow updating of
1223 the KnownColors array
1225 2005-09-26 Kornél Pál <kornelpal@hotmail.com>
1227 * Graphics.cs: DrawImage: imageAttr can be null. Fixed to pass IntPtr.Zero
1228 when imageAttr is null.
1230 2005-09-26 Vladimir Krasnov <vladimirk@mainsoft.com>
1232 * Brush.jvm.cs: fixed transform methods, createContext
1233 * TextureBrush.jvm.cs: implemetated transform, WrapMode, ctors
1235 2005-09-21 Vladimir Krasnov <vladimirk@mainsoft.com>
1237 * Bitmap.jvm.cs: fixed Clone, InternalSave, Initialize, ctor refactoring, remarks refactoring
1238 * Image.jvm.cs: fixed GetFrameCount, GetThumbnailImage, SelectActiveFrame, remarks refactoring
1239 * PlainImage.jvm.cs: added metadata props, fixed ctor
1240 * PlainImageCollection.jvm.cs: fixed class access
1242 2005-09-21 Jordi Mas i Hernandez <jordi@ximian.com>
1244 * Graphics.cs: Fixes exception type at FromImage method
1246 2005-09-20 Vladimir Krasnov <vladimirk@mainsoft.com>
1248 * Graphics.jvm.cs: bitmap resolution fix in DrawImage
1250 2005-09-20 Vladimir Krasnov <vladimirk@mainsoft.com>
1252 * Graphics.jvm.cs: fixed DrawImage
1254 2005-09-19 Miguel de Icaza <miguel@novell.com>
1256 * Graphics.cs: Removed restriction on the images that can be
1257 loaded. Indexed images *can* be loaded
1259 2005-09-18 Miguel de Icaza <miguel@novell.com>
1261 * Image.cs: introduce a workaround that catches errors on systems
1262 that lack GDI+ as this is being triggered too easily when we
1263 enumerate attributes on loaded classes.
1265 The real bug to fix is #76062.
1267 2005-09-17 Kornél Pál <kornelpal@hotmail.com>
1269 * Image.cs: Implemented FromHbitmap.
1271 2005-09-16 Sebastien Pouliot <sebastien@ximian.com>
1273 * gdipFunctions.cs: Add [SuppressUnmanagedCodeSecurity] attributes so
1274 the JIT won't add demands for UnmanagedCode.
1275 * carbonFunctions.cs: Add [SuppressUnmanagedCodeSecurity] attributes
1276 so the JIT won't add demands for UnmanagedCode on Mac OSX.
1277 * Bitmap.cs: Added LinkDemand for UnmanagedCode on GetHbitmap
1278 (+ overloads) and GetHicon methods.
1279 * Graphics.cs: Added LinkDemand for UnmanagedCode on FromHdcInternal,
1280 FromHwndInternal and ReleaseHdcInternal methods (which are all public
1281 despite their names).
1283 2005-09-15 Konstantin Triger <kostat@mainsoft.com>
1285 * Graphics.jvm.cs: text transform, headless session
1287 2005-09-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1289 * Bitmap.jvm.cs: native object refactoring
1290 * Image.jvm.cs: native object refactoring
1291 * Graphics.jvm.cs: fixed access to image native object
1292 * TextureBrush.jvm.cs: fixed access to image native object
1293 * Added PlainImage.jvm.cs, PlainImageCollection.jvm.cs
1295 2005-09-14 Geoff Norton <gnorton@customerdna.com>
1297 * carbonFunctions.cs: Add GetCGContextForNSView for Cocoa# integration
1298 * Graphics.cs: Check GDIPlus.UseCocoaDrawable for Cocoa# integration
1299 * gdipFunctions.cs: Set UseCocoaDrawable depending on the environment variable MONO_GDIP_USE_COCOA_BACKEND
1301 2005-09-14 Konstantin Triger <kostat@mainsoft.com>
1303 * Graphics.jvm.cs: transform, container, thin pen
1305 2005-09-12 Konstantin Triger <kostat@mainsoft.com>
1307 * AdvancedStroke.jvm.cs: constants for pen fitting calculations
1308 * Pen.jvm.cs: fixing transform, pen fitting
1310 2005-09-12 Konstantin Triger <kostat@mainsoft.com>
1312 * Region.jvm.cs: IsVisible is about intersection
1314 2005-09-12 Gert Driesen <drieseng@users.sourceforge.net>
1316 * ImageConverter.cs: Use default TypeDescriptor implementation of
1319 2005-09-11 Konstantin Triger <kostat@mainsoft.com>
1321 * Graphics.jvm.cs: fixing clipping with rotate transform
1323 2005-09-11 Konstantin Triger <kostat@mainsoft.com>
1325 * Region.jvm.cs: default region is infinite
1327 2005-09-10 Konstantin Triger <kostat@mainsoft.com>
1329 * Graphics.jvm.cs: fixing clipping stuff
1331 2005-09-07 Vladimir Krasnov <vladimirk@mainsoft.com>
1333 * Bitmap.jvm.cs: fixed bitamp accessors
1334 * Image.jvm.cs: fixed image accessors
1336 2005-09-07 Konstantin Triger <kostat@mainsoft.com>
1337 * AdvancedStroke.jvm.cs: fix matrix translate
1338 * Graphics.jvm.cs: fix matrix concatenation order
1340 2005-09-07 Vladimir Krasnov <vladimirk@mainsoft.com>
1342 * Brush.jvm.cs: added transform methods
1344 2005-09-06 Konstantin Triger <kostat@mainsoft.com>
1346 * StrokeFactory.jvm.cs, AdvancedStroke.jvm.cs, Pen.jvm.cs:
1347 implementing fitting, output transform
1348 * Graphics.jvm.cs: fixing DrawXXX, Fill, Clipping, Containers
1350 2005-09-06 Konstantin Triger <kostat@mainsoft.com>
1352 * ColorTranslator.cs: perform case insensitive check
1354 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
1356 * gdipFunctions.cs: define new functions
1357 * Bitmap.cs: fixes image loading and exceptions
1358 * Image.cs: fixes image loading and exceptions
1360 Thanks Kornél Pál for its help
1362 2005-08-30 Vladimir Krasnov <vladimirk@mainsoft.com>
1364 * Brush.jvm.cs: added brush transform field
1366 2005-08-28 Vladimir Krasnov <vladimirk@mainsoft.com>
1368 * Graphics.jvm.cs: fixed .ctor (InterpolationMode)
1370 2005-08-28 Konstantin Triger <kostat@mainsoft.com>
1372 * StrokeFactory.jvm.cs, AdvancedStroke.jvm.cs, Pen.jvm.cs
1373 Graphics.jvm.cs: adjust stroke before widening
1375 2005-08-28 Vladimir Krasnov <vladimirk@mainsoft.com>
1377 * Graphics.jvm.cs: Implemented BeginContainer, EndContainer,
1380 2005-08-26 Gert Driesen <drieseng@users.sourceforge.net>
1382 * PointConverter.cs: Use Int32Converter instead of Int32.Parse. First
1383 convert string to int before checking number of components.
1384 * RectangleConverter.cs: same.
1385 * SizeConverter.cs: same.
1387 2005-08-26 Gert Driesen <drieseng@users.sourceforge.net>
1389 * ColorConverter.cs: Use Int32Converter instead of Int32.Parse to
1390 convert individual components. Special case string containing hex
1391 prefix. Convert components before checking count.
1393 2005-08-25 Marek Safar <marek.safar@seznam.cz>
1395 * gdipFunctions.cs: GetIconInfo new user32 method.
1396 GdipGetDC uses IntPtr.
1398 * gdipStructs.cs: Defined IconInfo struct.
1400 * Graphics.cs: FromImage throws exception when image has an indexed format.
1403 * Icon.cs: Implemented FromHandle, Dispose.
1405 2005-05-24 Michael Hutchinson <m.j.hutchinson@gmail.com>
1407 * ToolboxBitmapAttribute.cs: Implemented retrieving the image
1409 2005-08-23 Vladimir Krasnov <vladimirk@mainsoft.com>
1411 * Graphics.jvm.cs: Fixed ResetTransform, TransfromPoints
1412 Fixed SmoothingMode property
1414 2005-08-23 Jordi Mas i Hernandez <jordi@ximian.com>
1416 * Brushes: Do not create the objects every time that they are requested
1417 as in Pens we create and cache them only once when need it. This also
1418 fixes the Equals method between two objects requested to Brushes
1420 2005-08-22 Jordi Mas i Hernandez <jordi@ximian.com>
1422 * SolidBrush.cs: Fixes Dispose to avoid non-disposing some objects
1423 * Brush.cs Fixes Dispose to avoid non-disposing some objects
1424 * Pen.cs: Fixes Dispose to avoid non-disposing some objects
1425 * Region.cs: Dipose always frees if the resource was allocated
1427 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
1429 * gdipFunctions.cs: Before calling GdiplusShutdown we make that all of handles
1430 from gdiplus have been released
1432 2005-08-18 Vladimir Krasnov <vladimirk@mainsoft.com>
1434 * Pen.jvm.cs: Fixed DashSpacing in createStrokedShape
1435 * Color.cs: Fixed java NativeObject property
1436 * Image.jvm.cs: Fixed Save method
1438 2005-08-16 Andrew Skiba <andrews@mainsoft.com>
1440 * Icon.jvm.cs: match Bitmap internal constructor change
1441 * Image.jvm.cs: use ImageCodecInfo.Clsid as primary format id, not ImageFormat
1442 * Bitmap.jvm.cs: started changes for supporting ImageCodecInfo
1444 2005-08-16 Gert Driesen <drieseng@users.sourceforge.net>
1446 * Color.cs: To match MS.NET, throw ArgumentException instead of
1447 ArgumentOutOfRangeException when color is not between 0 and 255.
1448 * RectangleConverter.cs: Take culture into account when converting
1449 to/from string. Use culture's ListSeparator as separator character.
1451 2005-08-16 Gert Driesen <drieseng@users.sourceforge.net>
1453 * Color.cs: Fixed line endings. Set eol-style to native.
1454 * ColorConverter.cs: Fixed line endings. Set eol-style to native.
1455 * Size.cs: Set eol-style to native.
1456 * SizeF.cs: Use current culture in ToString(), set eol-style to native.
1457 * SizeConverter.cs: Take culture into account when converting to/from
1458 string. Set eol-style to native.
1459 * Point.cs: Fixed line endings. Set eol-style to native.
1460 * PointF.cs: Use current culture in ToString(), set eol-style to native.
1461 * PointConverter.cs: Take culture into account when converting to/from
1462 string. Set eol-style to native.
1463 * ImageFormatConverter.cs: Fixed line endings. Set eol-style to
1465 * RectangleConverter.cs: Fixed line endings. Set eol-style to native.
1467 2005-08-16 Vladimir Krasnov <vladimirk@mainsoft.com>
1469 * Graphics.jvm.cs: Fixed InterpolationMode property
1471 2005-08-15 Vladimir Krasnov <vladimirk@mainsoft.com>
1473 * Graphics.jvm.cs: Fixed DrawImage
1475 2005-08-14 Gert Driesen <drieseng@users.sourceforge.net>
1477 * ColorConverter.cs: Use TextInfo.ListSeparator as separator, as this
1478 appears to be what MS.NET uses.
1480 2005-08-14 Gert Driesen <drieseng@users.sourceforge.net>
1482 * Point.cs: Use invariant culture for converting numbers to string.
1486 2005-08-14 Gert Driesen <drieseng@users.sourceforge.net>
1488 * Color.cs: Fixed ToString for uninitialized color.
1489 * ColorConverter.cs: Support conversion from whitespace-only string to
1490 Color.Empty. Fixed conversion from Color.Empty and known colors to
1493 2005-08-14 Konstantin Triger <kostat@mainsoft.com>
1495 * Graphics.jvm.cs: Initial properties implementation
1497 2005-08-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1499 * Graphics.jvm.cs: DrawImage refactoring
1501 2005-08-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1503 * Graphics.jvm.cs: Implemented PageUnit, PageScale.
1504 Added UpdateInternalTransform
1505 Fixed DrawImage, Transform, ConcatenateTransform
1507 2005-08-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1509 * Icon.jvm.cs: Internal constructor from bitmap
1510 * Added SystemIcons.jvm.cs with implementation of SystemIcons
1512 2005-08-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1514 * Region.jvm.cs: Fixed GetBounds, IsVisible, IsEmpty, IsInfinite, Equals
1515 (all methods that use Graphics object)
1517 2005-08-11 Konstantin Triger <kostat@mainsoft.com>
1519 * Graphics.jvm.cs: Refactoring
1521 2005-08-11 Konstantin Triger <kostat@mainsoft.com>
1523 * Graphics.jvm.cs: Fixed Clear, Refactoring
1525 2005-08-11 Konstantin Triger <kostat@mainsoft.com>
1527 * Graphics.jvm.cs: Fixed FillClosedCurve
1529 2005-08-10 Zoltan Varga <vargaz@freemail.hu>
1531 * Rectangle.cs (Intersect): Return a non-empty rectangle if the two
1532 rectangles touch each other.
1534 2005-08-09 Konstantin Triger <kostat@mainsoft.com>
1536 * Graphics.jvm.cs: Fixed DrawCurve.
1538 2005-08-09 Konstantin Triger <kostat@mainsoft.com>
1540 * StrokeFactory.jvm.cs: use correct stroke
1542 2005-08-09 Konstantin Triger <kostat@mainsoft.com>
1544 * Added AdvancedStoke.jvm.cs and StrokeFactory.jvm.cs
1547 2005-08-09 Andrew Skiba <andrews@mainsoft.com>
1549 * FontConverter.cs: exclude not implemented destructor from TARGET_JVM
1551 2005-08-09 Andrew Skiba <andrews@mainsoft.com>
1553 * ColorConverter.cs, ColorTranslator.cs: fixes to pass tests
1556 2005-08-08 Konstantin Triger <kostat@mainsoft.com>
1558 * Graphics.jvm.cs: Refactoring
1560 2005-08-08 Vladimir Krasnov <vladimirk@mainsoft.com>
1562 * Graphics.jvm.cs: Fixed DrawPolygon
1564 2005-08-08 Konstantin Triger <kostat@mainsoft.com>
1566 * Graphics.jvm.cs: Refactoring
1567 * Pen.jvm.cs: setting awt.Stroke as a base
1569 2005-08-07 Konstantin Triger <kostat@mainsoft.com>
1571 * Graphics.jvm.cs: Refactoring
1573 2005-08-07 Vladimir Krasnov <vladimirk@mainsoft.com>
1575 * Graphics.jvm.cs: Fixed DrawLines, DrawPolygon to use GraphicsPath
1577 2005-08-07 Andrew Skiba <andrews@mainsoft.com>
1579 * Rectangle.cs: Intersect fixed
1580 * RectandleF.cs: Intersect and Inflate fixed
1582 2005-08-07 Andrew Skiba <andrews@mainsoft.com>
1584 * Point.cs: Produce same ToString result as dotnet
1586 2005-08-07 Andrew Skiba <andrews@mainsoft.com>
1588 * Color.cs: GetHashCode is affected by Name, too
1590 2005-08-07 Vladimir Krasnov <vladimirk@mainsoft.com>
1592 * Pen.jvm.cs: Fixed ctor, LineCap, SetLineCap
1594 2005-08-07 Vladimir Krasnov <vladimirk@mainsoft.com>
1596 * Graphics.jvm.cs: Fixed DrawLines, DrawPolygon
1598 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1600 * SolidBrush.jvm.cs: fix a typo
1602 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1604 * Image.jvm.cs, StringFormat.jvm.cs, FontFamily.jvm.cs, Bitmap.jvm.cs,
1605 Pen.jvm.cs, Region.jvm.cs, Brush.jvm.cs, Graphics.jvm.cs, TextureBrush.jvm.cs,
1606 Font.jvm.cs: Added TARGET_JVM implementation
1608 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1610 * Rectangle.cs, RectangleF.cs: TARGET_JVM - Add NativeObect property
1612 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1614 * BasicShape.jvm.cs: Added TARGET_JVM specific class
1616 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1618 * Icon.jvm.cs, SystemColors.jvm.cs: Added TARGET_JVM implementations
1620 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1622 * ColorTranslator.cs: (GH merge) recognise HTML system colors
1624 2005-08-02 Andrew Skiba <andrews@mainsoft.com>
1626 * SolidBrush.jvm.cs: added TARGET_JVM implementation of this class
1628 2005-08-02 Andrew Skiba <andrews@mainsoft.com>
1630 * Color.cs: TARGET_JVM - NativeObject property
1632 2005-07-27 Andrew Skiba <andrews@mainsoft.com>
1634 * Color.cs: Fixes equality operators, change isXXXcolor booleans into flags enum.
1636 2005-07-27 Jordi Mas i Hernandez <jordi@ximian.com>
1638 * RectangleF.cs: Fixes IsEmpty logic
1640 2005-06-23 Jordi Mas i Hernandez <jordi@ximian.com>
1642 * Graphics.cs: implements FromHwndInternal
1645 2005-06-13 Peter Bartok <pbartok@novell.com>
1647 * Icon.cs(ToBitmap): If the icon is not 32bits, create the bitmap
1648 through an intermediary step, which turns it into a 32bit version.
1651 2005-06-13 Kornél Pál <kornelpal@hotmail.com>
1653 * ComIStreamMarshaler.cs: Dispose releases managed objects as well,
1654 removed some unnecessary code
1655 * ComIStreamWrapper.cs: Reworked Seek method to proper support of
1656 positions beyond the size of stream
1658 2005-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1660 * Font.cs: fix platform checks.
1662 2005-06-08 Jordi Mas i Hernandez <jordi@ximian.com>
1665 - Fixes is empty method IsEmpty logic
1666 - Fixes Contains method logic
1667 - Fixes IntersectsWith logic
1670 - Fixes is empty method IsEmpty logic
1671 - Fixes Contains method logic
1672 - Fixes IntersectsWith logic
1674 2005-05-28 Kornél Pál <kornelpal@hotmail.com>
1676 * ComIStreamMarshaler.cs: GC.SuppressFinalize(this) is not called in
1677 destructors. Some methods renamed. Removed unnecessary variables.
1679 2005-05-25 Jonathan Gilbert <logic@deltaq.org>
1681 * Image.cs: Added retrieveGDIPalette () and storeGDIPalette ()
1682 and modified the Palette property to call them. This non-
1683 persistent behaviour was discovered by trial and error with
1684 Microsoft's implementation. In fact, the Palette property
1685 does not behave like a property at all! It is the only way an
1686 instance of System.Drawing.Imaging.ColorPalette can be created,
1687 and it reflects a backing store that is only updated when the
1688 property 'set' method is called. Also updated Clone () since
1689 the palette is no longer cached at image load time.
1690 * Image.cs: Added IsIndexedPixelFormat () in the same vein as
1691 Image::IsAlphaPixelFormat and Image::IsCanonicalPixelFormat.
1692 As such a function is not listed in MSDN nor given in
1693 Microsoft's implementation, I have made it a private function
1694 within the class that uses it.
1696 2005-05-24 Kornél Pál <kornelpal@hotmail.com>
1698 * Graphics.cs: Revised DrawString methods
1700 2005-03-22 Peter Bartok <pbartok@novell.com>
1702 * Graphics.cs: Fixed bug #74762, DrawString was crashing on s.Length
1705 2005-05-20 Kornél Pál <kornelpal@hotmail.com>
1707 * Image.cs: Uses MemoryStream wrapping on all platforms if needed
1708 * gdipFunctions.cs: Modified conditional compilation syntax
1709 * ComIStreamWrapper.cs: Modified conditional compilation syntax
1710 * ComIStreamMarshaler.cs: Modified conditional compilation syntax
1712 2005-05-18 Marek Safar <marek.safar@seznam.cz>
1714 * Bitmap.cs: Add null check into ctor.
1716 2005-05-16 Jordi Mas i Hernandez <jordi@ximian.com> <kornelpal@hotmail.com>
1718 * gdipFunctions.cs: Kornél Pál's IStream bug fixing
1719 * ComIStreamWrapper.cs: Kornél Pál's IStream bug fixing
1720 * ComIStreamMarshaler.cs: Kornél Pál's IStream bug fixing
1722 2005-05-14 Jordi Mas i Hernandez <jordi@ximian.com> <kornelpal@hotmail.com>
1724 * Bitmap.cs: Kornél Pál's Bitmap class ctor and MakeTransparent leak fixes
1726 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
1728 * gdipFunctions.cs: add GdipLoadImageFromStream and GdipSaveImageToStream
1729 * ComIStreamWrapper.cs: Kornel Pal COM Stream for Win32
1730 * ComIStreamMarshaler.cs: Kornel Pal COM Stream for Win32
1731 * Image.cs: uses new Win32 Stream functions when need it
1733 2005-05-10 Juraj Skripsky <juraj@hotfeet.ch>
1735 * Color.cs: Fix GetSaturation() again and remove
1738 2005-05-10 Juraj Skripsky <juraj@hotfeet.ch>
1740 * Color.cs: New, correct implementations for GetHue(),
1741 GetBrightness() and GetSaturation().
1743 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
1745 * gdipFunctions.cs: Use PlatformID.Unix under NET_2_0.
1746 * Graphics.cs: Use PlatformID.Unix under NET_2_0.
1747 * Image.cs: Use PlatformID.Unix under NET_2_0.
1749 2005-05-05 Miguel de Icaza <miguel@novell.com>
1751 * Bitmap.cs, Icon.cs (constructor): Use
1752 GetManifestResourceStream(Type,string) in the constructor that
1755 2005-04-27 Lluis Sanchez Gual <lluis@novell.com>
1757 * PointF.cs: Make serialization compatible with MS.
1759 2005-04-10 Geoff Norton <gnorton@customerdna.com>
1763 Use CGContextSynchronize instead of CGContextFlush. This saves
1764 on average 20000 ticks per drawing operation.
1766 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
1768 * Color.cs: take into account the name color in == and != operators
1769 * Font.cs: Use Equals instead of == to compare the family name
1771 - Removes generic fontfamilies cache (done at libgdiplus level)
1772 - Fixes Equals method
1774 2005-03-30 Jordi Mas i Hernandez <jordi@ximian.com>
1776 * Pen.cs: remove locks. They are done at gdiplus level
1777 * Brush.cs: remove locks. They are done at gdiplus level
1778 * Image.cs: remove locks. They are done at gdiplus level
1780 2005-03-30 Rogério Pereira Araújo <rogerio.araujo@gmail.com>
1782 * Icon.cs: Finished Icon(Type, String) ctor
1784 2005-03-23 Jordi Mas i Hernandez <jordi@ximian.com>
1786 * gdipFunctions.cs: fixes GdipGetImagePalette signature
1787 * Image.cs: Implements Palette property using gdiplus
1789 2005-03-17 Peter Bartok <pbartok@novell.com>
1792 - Changed P/Invoke signature for GdipLoadImageFromDelegate_linux()
1793 method, now includes a get header delegate
1794 - Added StreamGetHeaderImpl method, to allow libgdiplus to determine
1795 the image type even on non-seekable streams
1796 - Fixed StreamGetBytesImpl to consider the bytes already retrieved
1797 via StreamGetHeaderImpl
1798 * Image.cs: Fixed call to GdipLoadImageFromDelegate_linux() to include
1799 the new StreamGetHeader delegate
1801 2005-03-15 Jordi Mas i Hernandez <jordi@ximian.com>
1803 * Pen.cs: Fixes dispose method to allow to be called multiple times
1804 * Graphics.cs: matrix are saved and restored at gdiplus level
1806 2005-02-24 Geoff Norton <gnorton@customerdna.com>
1808 * gdipFunctions.cs: Cache the delegates in the GdiPlusStreamHelper
1809 so they dont get garbage collected before use.
1811 2005-02-11 Peter Bartok <pbartok@novell.com>
1813 * gdipFunctions.cs: Fixed prototype to match previous checkin
1815 2005-02-11 Peter Bartok <pbartok@novell.com>
1817 * Graphics.cs (FromImage): Fixed type of graphics to be IntPtr (since
1818 it really is a pointer)
1820 2005-02-10 Geoff Norton <gnorton@customerdna.com>
1822 * Icon.cs: Implement GetObjectData ()
1823 * Image.cs: Implement GetObjectData ()
1825 2005-02-09 Geoff Norton <gnorton@customerdna.com>
1827 * Icon.cs: Implement deserializer
1828 * Bitmap.cs: Implement deserializer
1830 2005-02-06 Ben Maurer <bmaurer@ximian.com>
1832 * Brushes.cs: Kill the static ctor here, it has tons of code bloat.
1834 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
1836 * Region.cs: revert Jackson's patch and fix this at libgdiplus level
1838 2005-02-02 Jackson Harper <jackson@ximian.com>
1840 * Region.cs: The default region constructor creates and infinite
1841 region, not an empty one.
1843 2005-01-27 Peter Bartok <pbartok@novell.com>
1845 * Color.cs (GetBrightness, GetSaturation, GetHue): Fixed calculations
1846 of HSV numbers. Previous implementation returned wrong numbers and NaN
1847 on achromatic colors
1849 2005-01-27 Lluis Sanchez Gual <lluis@novell.com>
1851 * PointConverter.cs, ImageFormatConverter.cs, RectangleConverter.cs,
1852 SizeConverter.cs, ColorConverter.cs, FontConverter.cs
1853 : Implemented support for InstanceDescriptor.
1855 2005-01-26 Peter Bartok <pbartok@novell.com>
1857 * Icon.cs (ToBitmap): Now sets transparency in according to
1860 2004-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
1862 * gdipFunctions.cs: Fixes GdipGet* function signatures
1863 * FontFamily.cs: Fixes GdipGet* function calls
1864 * Font.cs: Fixes ToString method
1866 2004-01-17 Jordi Mas i Hernandez <jordi@ximian.com>
1868 * Graphics.cs: calls XCloseDisplay on X11 when need it
1869 * gdipFunctions.cs: calls XCloseDisplay on X11 when need it
1871 2004-12-27 Zoltan Varga <vargaz@freemail.hu>
1873 * gdipFunctions.cs Image.cs: Fix marshalling of arrays on amd64.
1875 2004-12-16 Peter Bartok <pbartok@novell.com>
1877 * Graphics.cs (GetHdc): Removed Wine assumptions, the handle is now
1878 equivalent to the gdi+ native object
1880 * Font.cs (GetHfont): Removed Wine assumptions, the handle is now
1881 equivalent to the gdi+ native object
1883 2004-12-09 Geoff Norton <gnorton@customerdna.com>
1885 * carbonFunctions.cs: New carbon functions/structures
1886 * Graphics.cs: Update FromHwnd to work without being in the carbon eventing loop
1888 2004-12-08 Geoff Norton <gnorton@customerdna.com>
1890 * Graphics.cs: Drop FromHwndWithSize; we can't change the public API
1891 Add Quartz support to FromHwnd marshalling a struct back with the ptr/width/height.
1893 2004-12-07 Geoff Norton <gnorton@customerdna.com>
1895 * Graphics.cs: Add FromHwndWithSize for the MWF/Quartz backend
1896 * gdipFunctions.cs: Add the quartz dllimport into libgdiplus
1898 2004-12-06 Miguel de Icaza <miguel@ximian.com>
1900 * FontFamily.cs: This one is static.
1902 2004-11-25 Ravindra <rkumar@novell.com>
1904 * gdipFunctions.cs (GdipCreateFontFromLogfontA): Changed return
1905 type from int to Status type.
1907 2004-11-25 Marek Safar <marek.safar@seznam.cz>
1909 * Image.cs: Add CheckStatus to SaveAdd.
1911 2004-11-22 Ravindra <rkumar@novell.com>
1913 * Graphics.cs: Fixed null values handling in all overloads of
1914 MeasureString method.
1916 2004-11-18 Ravindra <rkumar@novell.com>
1918 * gdipFunctions.cs: Removed the .so extension from a DllImport
1921 2004-10-27 Jordi Mas i Hernandez <jordi@ximian.com>
1923 * gdipFunctions.cs: calls GdiplusShutdown to propery signal GDI+
1926 2004-11-03 Miguel de Icaza <miguel@ximian.com>
1928 * TextureBrush.cs (Clone): While cloning, it is not enough to let
1929 GDIPlus clone the underlying data, we must alos clone the managed
1932 * Pen.cs (Dispose): Set the nativeObject to IntPtr.Zero to catch
1933 errors in the future, set the lock on the object before doing any
1934 other tests, not after.
1936 (Clone): While cloning, it is not enough to let
1937 GDIPlus clone the underlying data, we must alos clone the managed
1940 * Brush.cs (Dispose): Set the nativeObject to IntPtr.Zero to catch
1941 errors in the future.
1943 Set the lock in the object before checkign disposed.
1945 * SolidBrush.cs (Clone): While cloning, it is not enough to let
1946 GDIPlus clone the underlying data, we must alos clone the managed
1949 (Dispose): Set the nativeObject to IntPtr.Zero to catch
1950 errors in the future.
1952 2004-10-28 Ravindra <rkumar@novell.com>
1954 * gdipFunctions.cs: Added checks for null stream in the
1955 StreamHelper internal class.
1956 * Icon.cs: Removed an ugly hack that used temp files in
1957 ToBitmap () method. We use MemoryStream instead.
1959 2004-10-27 Jordi Mas i Hernandez <jordi@ximian.com>
1961 * Font.cs: fixes bug 66533
1963 2004-10-22 Jordi Mas i Hernandez <jordi@ximian.com>
1965 * Bitmap.cs, Font.cs FontFamily.cs Graphics.cs Region.cs
1966 SolidBrush.cs StringFormat.cs TextureBrush.cs: removes the
1967 lock operations after conversation with Miguel. Do not really
1970 2004-10-22 Jordi Mas i Hernandez <jordi@ximian.com>
1972 * Bitmap.cs: Fixes MakeTransparent problem with 24bbps
1974 2004-10-19 Jordi Mas i Hernandez <jordi@ximian.com>
1976 * Bitmap.cs: Fixes MakeTransparent method
1978 2004-10-13 Ravindra <rkumar@novell.com>
1980 * Graphics.cs: Moved the initialization of 'use_x_drawable'
1981 member out of private constructor to class initialization.
1982 So that, we get it right even if Graphics is not instantiated.
1983 This fixes the problem we face (otherwise) when we make first
1984 call to Graphics.FromHwnd () method.
1986 2004-10-08 Ravindra <rkumar@novell.com>
1988 * Image.cs: Suppress finalization in Dispose () method.
1990 2004-10-04 Ravindra <rkumar@novell.com>
1992 * gdipFunctioncs.cs: Fix from Alois for bug #67383.
1994 2004-09-29 Jackson Harper <jackson@ximian.com>
1996 * Graphics.cs: Use FromHdcInternal to set the X display
1997 handle. Add a flag to check if we are on unix so we aren't calling
1998 Environment.OSVersion.Platform all the time. Mad props to Peter
2001 2004-09-17 Marek Safar <marek.safar@seznam.cz>
2003 * Font.cs (FromHfont, ToHfont): Fixed windows implementation.
2004 ToLogFont: Implemented.
2006 * gdipFunctions.cs: GdipCreateFromHDC changed int to IntPtr to
2008 GdipCreateFontFromLogfontA: A new extern call.
2010 2004-09-13 Ravindra <rkumar@novell.com>
2012 * Graphics.cs: MSDN says that using image width and height gives
2013 better performance, hence we are using image width and height to
2014 avoid autoscaling in DrawImageUnscaled.
2016 2004-09-10 Ravindra <rkumar@novell.com>
2018 * Graphics.cs: Implemented DrawIcon methods and fixed
2019 DrawImageUnscaled method implementation.
2021 2004-08-21 Jackson Harper <jackson@ximian.com>
2023 * ImageAnimator.cs: Run animator as a background thread so we do
2026 2004-08-21 Ravindra <rkumar@novell.com>
2028 * gdipFunctions.cs: Modified exception message to include the case
2029 of missing required libraries for different formats.
2031 2004-08-10 Jackson Harper <jackson@ximian.com>
2033 * SystemColors.cs: Make Highlight colour match colour from windows
2034 classic color scheme.
2036 2004-07-30 Ravindra <rkumar@novell.com>
2038 * Font.cs: Fixed Height property implementation and implemented
2039 GetHeight method and its overloads.
2041 2004-07-29 Sanjay Gupta <gsanjay@novell.com>
2043 * gdipFunctions.cs: Corrected signature of GdipGetPropertyItem
2044 P/Invoke function for Image.
2045 * Image.cs: Implemented GetPropertyItem() and SetPropertyItem() method.
2047 2004-07-29 Sanjay Gupta <gsanjay@novell.com>
2049 * gdipFunctions.cs: Corrected signatures of GdipGetPropertySize and
2050 GdipGetAllPropertyItems P/Invoke function for Image.
2051 * gdipStructs.cs: Corrected MarshalTo() method of GdipPropertyItem.
2052 * Image.cs: Corrected implementation of PropertyItems property.
2054 2004-07-29 Sanjay Gupta <gsanjay@novell.com>
2056 * gdipFunctions.cs: Corrected signature of GdipGetPropertyIdList
2057 P/Invoke function for Image.
2058 * Image.cs: Changed implementation of PropertyIdList property.
2060 2004-07-28 Sanjay Gupta <gsanjay@novell.com>
2062 * gdipStructs.cs: Implementing PropertyItem property in Image.cs.
2063 * Image.cs: Implemented PropertyItems and PropertyIdList properties.
2065 2004-07-21 Ravindra <rkumar@novell.com>
2067 * gdipFunctions.cs: Corrected signatures of GdipPathIterCopyData and
2068 GdipPathIterEnumerate P/Invoke functions for GraphicsPathIterator.
2070 2004-07-21 Jordi Mas i Hernandez <jordi@ximian.com>
2072 * Graphics.cs: fixes MeasureCharacterRanges function. It was completely wrong.
2073 * StringFormat.cs: MeasurableCharacterRanges should be passed to GDI+
2074 * gdipFunctions.cs: new GDI function calls
2076 2004-07-16 Ravindra <rkumar@novell.com>
2078 * gdipFunctions.cs: Added P/Invokes for GraphicsPathIterator.
2080 2004-07-15 Ravindra <rkumar@novell.com>
2082 * gdipFunctions.cs: Removed GdipGetPathData P/Invoke. It is redundant.
2084 2004-07-13 Ravindra <rkumar@novell.com>
2086 * gdipFunctions.cs: Removed GdipGetPathGradientRectI P/Invoke.
2087 This was redundant. It was kept in previous checkin to avoid
2090 2004-07-13 Ravindra <rkumar@novell.com>
2092 * gdipFunctions.cs: Added some P/Invokes for PathGradientBrush.
2094 2004-07-09 Peter Bartok <pbartok@novell.com>
2095 * Graphics.cs: Added support required for new managed SWF library
2096 * gdipFunctions.cs: Added XOpenDisplay definition/import
2098 2004-07-02 Jordi Mas i Hernandez <jordi@ximian.com>
2100 * gdipFunctions.cs: fixes bug 61050
2102 2004-06-24 Sanjay Gupta <gsanjay@novell.com>
2104 * ImageAnimator.cs: Rewrote complete implementation.
2106 2004-06-24 Sanjay Gupta <gsanjay@novell.com>
2108 * gdipFunctions.cs: Corrected issue in GdiPlusStreamHelper class.
2109 If read function was called after seek function call, the
2110 implementation was returning data from bytes already peeked and
2111 not from the new position in stream, which we have seeked.
2113 2004-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
2115 * Graphics.cs: added MeasureString wrappers
2117 2004-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
2119 * Graphics.cs, gdipFunctions.cs: define and use GdipSetVisibleClip_linux
2121 2004-06-20 Jordi Mas i Hernandez <jordi@ximian.com>
2123 * Graphics.cs, gdipFunctions.cs: added missing clip function wrappers
2125 2004-06-18 Ravindra <rkumar@novell.com>
2127 * FontConverter.cs: Implemented the missing functions.
2128 * Font.cs: Added some notes.
2130 2004-06-16 Sanjay Gupta <gsanjay@novell.com>
2132 * gdipFunctions.cs: Modified Function signature for
2133 GdipSaveImageToDelegate_linux() method for saving tiff images
2135 * image.cs: Modified function call GdipSaveImageToDelegate_linux()
2138 2004-06-15 Sanjay Gupta <gsanjay@novell.com>
2140 * gdipFunctions.cs: Added delegate and StreamHelper functions, Close
2141 and Size, required by TIFFCodec. Modifed Function signature for
2142 GdipLoadImageFromDelegate_linux() method.
2143 * image.cs: Modified function call GdipLoadImageFromDelegate_linux()
2146 2004-06-11 Ravindra <rkumar@novell.com>
2148 * gdipFunctions.cs: (GdipCreateSolidFill): Changed one argument
2149 from out int to out IntPtr.
2150 * SolidBrush.cs: Same.
2152 2004-06-10 Gert Driesen <drieseng@users.sourceforge.net>
2154 * Image.cs: API signature fixes, meaning DisposeResources is now
2155 private and marked InitFromStream internal
2157 2004-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
2159 * FontFamily.cs: simplifies object destruction and fixes
2161 2004-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
2163 * FontFamily.cs: added destructor
2164 * Graphics.cs: added destructor to stop leaking, remove debugging code
2167 2004-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
2169 * gdipFunctions.cs: added GdipSaveAddImage
2170 * Image.cs: added SaveAdd methods
2172 2004-06-02 Peter Bartok <pbartok@novell.com>
2173 * gdipFunctions.cs: Fixed reference to wrong DLLs for GetDC/ReleaseDC
2174 (This fixes bug #59479)
2176 2004-06-01 Gert Driesen <drieseng@users.sourceforge.net>
2178 * Font.cs: Added missing Browsable attribute on SizeInPoints.
2179 * Region.cs: Removed extra ComVisible attribute from Clone().
2181 2004-06-01 Ravindra <rkumar@novell.com>
2183 * Pen.cs: Added a note on Dispose method.
2184 * Brush.cs: Fixed Dispose method.
2185 * SolidBrush.cs: Fixed Dispose method.
2187 2004-05-28 Ravindra <rkumar@novell.com>
2189 * gdipFunctions.cs: Added some P/Invoke calls for Draw/Fill
2191 * Graphics.cs: Implemented Dispose method and changed Draw/Fill
2192 rectangles implementation (This is basically done to avoid lots
2193 of brush and pen setup happening in libgdiplus.)
2195 2004-05-27 Ravindra <rkumar@novell.com>
2197 * Color.cs: Changed Color.Green to what MS.NET has. Conforming to MS.
2199 2004-05-26 Sanjay Gupta <gsanjay@novell.com>
2201 * ImageFormatConverter.cs: Fixed issues discovered from nunit
2204 2004-05-26 Ravindra <rkumar@novell.com>
2206 * Color.cs: Corrected Color.Green property.
2208 2004-05-24 Jordi Mas i Hernandez <jordi@ximian.com>
2209 * gdipStructs.cs: remove unnecessary code, since bug 57706 is fixed
2211 2004-05-20 Sanjay Gupta <gsanjay@novell.com>
2213 * Icon.cs: Fixed issue with size property.
2215 2004-05-18 Ravindra <rkumar@novell.com>
2217 * Pen.cs: Added value checks in DashPattern and CompoundArray
2220 2004-05-16 Gert Driesen <drieseng@users.sourceforge.net>
2222 * Graphics.cs: fixed warning
2223 * ImageAnimator.cs: fixed warning
2224 * FontConverter.cs: fixed public API
2226 2004-05-14 Vladimir Vukicevic <vladimir@pobox.com>
2228 * gdipFunctions.cs: Fixed prototype for
2229 GdipGetEncoderParameterList
2231 * Image.cs: Reworked Save functions to handle EncoderParameters.
2232 Implemented GetEncoderParameterList
2233 Also removed unused setGDIPalette internal method.
2235 2004-05-14 Peter Bartok <pbartok@novell.com>
2236 * StringFormat.cs: Added CharacterRange handling
2237 * Graphics.cs: Implemented MeasureCharacterRanges method
2239 2004-05-14 Peter Bartok <pbartok@novell.com>
2240 * Graphics.cs: Added error check
2242 2004-05-14 Duncan Mak <duncan@ximian.com>
2243 * gdipFunctions.cs (GdipCreatePath2I, GdipAddPathPieI):
2244 (GdipFlattenPath, GdipWarpPath, GdipWidenPath):
2245 (GdipGetPathWorldBounds, GdipGetPathWorldBoundsI): Imported.
2247 2004-05-14 Sanjay Gupta <gsanjay@novell.com>
2248 * ImageFormatConverter.cs: Modified implementation of ConvertFrom() method.
2250 2004-05-13 Sanjay Gupta <gsanjay@novell.com>
2251 * ImageFormatConverter.cs: Implemented GetStandardValuesSupported () method.
2253 2004-05-13 Peter Bartok <pbartok@novell.com>
2254 * Bitmap.cs: Fixed bug #52868, Bitmap(Image, Size) did not
2257 2004-05-12 Peter Bartok <pbartok@novell.com>
2258 * Image.cs: Implemented GetThumbnailImage
2260 2004-05-13 Sanjay Gupta <gsanjay@novell.com>
2261 * Graphics.cs: Made method DrawRectangle (Pen , RectangleF) and
2262 FromXDrawable(IntPtr, IntPtr) internal.
2264 2004-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
2265 * Color.cs: work for API compatibilty: private date, todos
2266 * Font.cs: work for API compatibilty: private date, todos
2267 * FontFamily.cs: work for API compatibilty: private date, todos
2268 * Graphics.cs: work for API compatibilty: private date, todos
2269 * Icon.cs: work for API compatibilty: private date, todos
2270 * Image.cs: work for API compatibilty: private date, todos
2271 * ImageAnimator.cs: work for API compatibilty: private date, todos
2272 * Point.cs: work for API compatibilty: private date, todos
2273 * PointF.cs: work for API compatibilty: private date, todos
2274 * Rectangle.cs: work for API compatibilty: private date, todos
2275 * RectangleF.cs: work for API compatibilty: private date, todos
2276 * Region.cs: work for API compatibilty: private date, todos
2277 * Size.cs: work for API compatibilty: private date, todos
2278 * SizeF.cs: work for API compatibilty: private date, todos
2279 * SolidBrush.cs: work for API compatibilty: private date, todos
2280 * StringFormat.cs: work for API compatibilty: private date, todos
2281 * SystemPens.cs: work for API compatibilty: private date, todos
2282 * TextureBrush.cs: work for API compatibilty: private date, todos
2283 * gdipStructs.cs: work for API compatibilty: private date, todos
2285 2004-05-12 Ravindra <rkumar@novell.com>
2287 * Bitmap.cs, Font.cs, FontConverter.cs, Graphics.cs, Icon.cs, Image.cs
2288 ImageAnimator.cs, Point.cs, PointF.cs, Rectangle.cs, RectangleF.cs
2289 Region.cs, Size.cs, SizeF.cs, ToolboxBitmapAttribute.cs, gdipFunctions.cs:
2290 Added missing attributes and some coding style fixes.
2291 * Pen.cs: Implementing CustomStartCap and CustomEndCap properties and
2294 2004-05-11 Sanjay Gupta <gsanjay@novell.com>
2296 * ImageAnimator.cs: Implemented first version.
2298 2004-05-11 Ravindra <rkumar@novell.com>
2300 * gdipFunctions.cs: Implementing AdjustableArrowCap. Added P/Invokes
2303 2004-05-10 Ravindra <rkumar@novell.com>
2305 * gdipFunctions.cs: Implementing CustomLineCap. Added P/Invokes
2306 for the same. Added few related P/Invokes for Pen also.
2308 2004-05-06 Sanjay Gupta <gsanjay@novell.com>
2310 * ImageAnimator.cs: Corrected implementation of CanAnimate() method.
2312 2004-05-06 Ravindra <rkumar@novell.com>
2314 * RectangleConverter.cs: Implemented GetProperties () method.
2315 * SizeConverter.cs: Implemented GetProperties () method.
2316 * PointConverter.cs: Implemented GetProperties () method.
2317 * FontConverter.cs: Implemented some of the methods.
2319 2004-05-06 Ravindra <rkumar@novell.com>
2321 * Color.cs: Fixed Name property.
2322 * ColorTranslator.cs: Fixed the existing methods and implemented
2323 the missing methods.
2324 * ColorConverter.cs: Fixed the existing methods and implemented
2325 the missing methods. Also, fixed coding style.
2327 2004-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
2328 * Bitmap.cs: Let GDI+ calculate the strides, as it does in Win32.
2330 2004-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
2331 * Image.cs: raw_format should be handled by GDI+
2332 * Bitmap.cs: raw_format should be handled by GDI+
2334 2004-05-04 Ravindra <rkumar@novell.com>
2336 * Pen.cs: Modified exception message. Fixed Transform, DashPattern,
2337 and DashCap properties. Implementing CoumpoundArray, StartCap, EndCap
2338 properties and SetLineCap method. In constructors use IntPtr instead
2340 * SolidBrush.cs: Modified exception message.
2341 * TextureBrush.cs: Fixed Transform property.
2342 * gdipFunctions.cs: Fixed P/Invokes for Pen.cs, TextureBrush.cs and
2343 LinearGradientBrush.cs.
2345 2004-04-30 Sanjay Gupta <gsanjay@novell.com>
2347 * Image.cs: Implemented FrameDimensionsList property.
2349 2004-04-30 Ravindra <rkumar@novell.com>
2351 * gdipFunctions.cs: Added few more P/Invoke calls for
2352 lineargradient brush and added one case statement in
2355 2004-04-30 Jordi Mas i Hernandez <jordi@ximian.com>
2357 * Image.cs: takes into account MemoryBmp format when saving
2359 2004-04-30 Ravindra <rkumar@novell.com>
2361 * StringFormat.cs: Added checks for status.
2363 2004-04-30 Sanjay Gupta <gsanjay@novell.com>
2365 * Image.cs: Removed calls which passes byte[] for Guid parameter.
2366 * gdipFunctions.cs: Removed unwanted unix specific function calls.
2368 2004-04-30 Ravindra <rkumar@novell.com>
2370 * Graphics.cs: Added checks for status.
2371 * Image.cs: Added a check for status.
2372 * FontFamily.cs: Added checks for status.
2374 2004-04-29 Peter Bartok <pbartok@novell.com>
2376 * Brushes.cs: Fixed bug #52695. No longer creates a new
2377 brush for every request and behaves Microsoft compatible
2379 2004-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
2381 * Image.cs: fixes Save method. It now retrieves the proper encoder and uses
2382 its ClsID instead of the formatID (as GDI+ expects)
2384 2004-04-29 Ravindra <rkumar@novell.com>
2386 * Font.cs: Added checks for status.
2387 * Bitmap.cs: Added checks for status.
2388 * Pen.cs: Added checks for status.
2390 2004-04-28 Sanjay Gupta <gsanjay@novell.com>
2392 * ColorTranslator.cs, StringFormat.cs, SystemIcons.cs, ToolBoxBitmapAttributes.cs:
2393 Converted to unix format from dos format.
2395 2004-04-28 Sanjay Gupta <gsanjay@novell.com>
2397 * ImageConverter.cs: Implemented GetProperties() and GetPropertiesSupported () methods.
2399 2004-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
2401 * gdipStructs.cs: added GdipImageCodecInfo struct
2403 2004-04-28 Sanjay Gupta <gsanjay@novell.com>
2405 * ImageFormatConverter.cs: Corrected ConvertFrom method.
2407 2004-04-27 Sanjay Gupta <gsanjay@novell.com>
2409 * ImageConverter.cs: Added exception message.
2410 * IconConverter.cs: Added exception message.
2411 * ImageFormatConverter.cs: Implemented first version.
2413 2004-04-27 Sanjay Gupta <gsanjay@novell.com>
2415 * ImageConverter.cs: Implemented first version.
2417 2004-04-27 Sanjay Gupta <gsanjay@novell.com>
2419 * IconConverter.cs: Implemented first version.
2421 2004-04-26 Sanjay Gupta <gsanjay@novell.com>
2423 * Image.cs: Corrected implementation of Property RawFormat.
2424 * gdipFunctions.cs: Corrected declaration of GdipGetImageRawFormat.
2426 2004-04-25 Sanjay Gupta <gsanjay@novell.com>
2428 * Bitmap.cs: Resolved a compile time error.
2429 * Image.cs: Changed the implementation of few methods to progress
2430 with ImageAnimator class.
2431 * gdipFunctions.cs: Added few linux only function calls.
2432 * Icon.cs: Removed unused variable from code.
2434 2004-04-25 Vladimir Vukicevic <vladimir@pobox.com>
2436 * Graphics.cs, gdipFunctions.cs: Added CreateFromXDrawable_linux.
2438 2004-04-23 Vladimir Vukicevic <vladimir@pobox.com>
2440 * Commited patch from pcgod@gmx.net (Bnehamin Jemlich) for
2441 serialization for Bitmaps. (Bugzilla #52568)
2443 2004-04-23 Ravindra <rkumar@novell.com>
2445 * RectangleConverter.cs: Fixed ConvertTo () method.
2446 * SizeConverter.cs: Fixed ConvertTo () method.
2447 * PointConverter.cs: Fixed ConvertTo () method.
2449 2004-04-23 Sanjay Gupta <gsanjay@novell.com>
2450 * ImageAnimator.cs: Implemented CanAnimate() method.
2452 2004-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
2453 * Image.cs: added RotateFlip and RemovePropertyItem calls
2455 2004-04-22 Ravindra <rkumar@novell.com>
2457 * RectangleConverter.cs: Implemented. Also changed file format
2459 * Rectangle.cs: Fixed ToString method.
2460 * RectangleF.cs: Fixed ToString method.
2462 2004-04-22 Ravindra <rkumar@novell.com>
2464 * SizeConverter.cs: Implemented some of the functions.
2465 * PointConveter.cs: Implemented.
2466 * gdipFunctions.cs: Corrected one typo.
2467 * Brushes.cs: Added a comment.
2469 2004-04-22 Vladimir Vukicevic <vladimir@pobox.com>
2471 * gdipFunctions.cs: Fix StreamGetBytesImpl to handle
2472 returning portions of the peek buffer back. Fixes #57379.
2474 2004-04-21 Peter Bartok <pbartok@novell.com>
2475 * Font.cs: Implemented Font.FromHfont method
2476 * gdipStructs.cs: fixed sign for LOGFONTA lfHeight member
2477 * gdipFunctions.cs: Added imports for functions required to support
2478 Font.FromHfont method
2480 2004-04-21 Jordi Mas i Hernandez <jordi@ximian.com>
2481 * RectangleConverter.cs: stubbed out
2482 * Font.cs : added missing members
2484 2004-04-19 Sanjay Gupta <gsanjay@novell.com>
2485 * Icon.cs: Fixed problem in extracting bitmap from Icon.
2487 2004-04-16 Ravindra <rkumar@novell.com>
2489 * Pen.cs: GC should be allowed to collect any pen including
2491 * SolidBrush.cs: GC should be allowed to collect any SolidBrush
2492 including system brushes.
2493 * Brushes.cs: Coding style.
2494 * Pens.cs: Objects created by Pens are not modifiable on
2495 MS.NET, so we are now. Also, coding style fixes.
2496 * SystemPens.cs: Removed static constructor and changed file
2498 * SystemBrushes.cs: Some cosmetic changes.
2500 2004-04-15 Sanjay Gupta <gsanjay@novell.com>
2501 * Icon.cs: Implemented more missing bits and fixed the problem
2502 of icon not getting saved in proper format
2504 2004-04-14 Sanjay Gupta <gsanjay@novell.com>
2505 * Icon.cs: Implemented more missing bits
2507 2004-04-13 Sanjay Gupta <gsanjay@novell.com>
2508 * Icon.cs: Implemented few more missing bits
2510 2004-04-12 Sanjay Gupta <gsanjay@novell.com>
2511 * Icon.cs: Implemented first version
2513 2004-04-11 Peter Bartok <pbartok@novell.com>
2514 * Font.cs: Implemented Font.ToHfont method; used Jordi's suggestion of splitting
2515 the code and using our own private gdiplus function when on Unix and using Win32
2516 functions when running on Windows
2517 * gdipStructs.cs: Added LOGFONTA structure
2518 * gdipFunctions.cs: Added various DllImports required for Font.ToHfont
2520 2004-04-10 Vladimir Vukicevic <vladimir@pobox.com>
2522 * Image.cs: Save should use encoder.FormatID, not Clsid
2524 2004-04-06 Jordi Mas i Hernandez <jordi@ximian.com>
2525 * Region.cs: fixes GdipCombineRegionRect and GdipCombineRegionRectI signature
2526 * gdipFunctions.cs: fixes GdipCombineRegionRect and GdipCombineRegionRectI signature
2528 2004-04-06 Duncan Mak <duncan@ximian.com>
2530 * gdipFunctions.cs (GdipCreatePath2): Fixed signature.
2532 2004-04-06 Jordi Mas i Hernandez <jordi@ximian.com>
2533 * Region.cs: fixes GetRegionScans
2534 * gdipFunctions.cs: fixes GetRegionScans
2536 2004-04-06 Vladimir Vukicevic <vladimir@pobox.com>
2538 * gdipFunctions.cs: Added stream delegate helpers for
2539 stream loading/saving on linux
2541 * Image.cs, Bitmap.cs: Converted to call into GDIPlus for
2542 loading/saving image data.
2544 2004-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
2545 * Region.cs: implemented new methods
2546 * Graphics.cs: implemented new methods
2548 2004-04-02 Jordi Mas i Hernandez <jordi@ximian.com>
2549 * Region.cs: implemented
2551 2004-04-01 Duncan Mak <duncan@ximian.com>
2553 * Graphics.cs (DrawCurve): Call the correct GDI+ wrappers.
2555 * gdipFunctions.cs (GdipAddPathCurveI):
2556 (GdipAddPathCurve2, GdipAddPathCurve2I):
2557 (GdipAddPathCurve3, GdipAddPathCurve3I):
2558 (GdipAddPathClosedCurve, GdipAddPathClosedCurveI):
2559 (GdipAddPathClosedCurve2, GdipAddPathClosedCurve2I): Added new
2562 2004-03-30 Jordi Mas i Hernandez <jordi@ximian.com>
2563 * Image.cs: implemented a few GDI+ wrapper calls
2565 2004-03-30 Jordi Mas i Hernandez <jordi@ximian.com>
2566 * Bitmap.cs: remove redundant data already present at Image.cs
2567 * Image.cs: use GDI+ functions to get image details
2568 * StringFormat.cs: missing constructor and property
2570 2004-03-24 Jordi Mas i Hernandez <jordi@ximian.com>
2571 * FontFamily.cs: added missing members and style clean
2572 * Graphics.cs: fixed signature of DrawArc and DrawPie
2573 * Image.cs: added missing members, fixes
2574 * StringFormat.cs: missing constructor and property
2576 2004-03-24 Jordi Mas i Hernandez <jordi@ximian.com>
2577 * Graphics.cs: Added missing DrawImage GDI+ calls
2578 * gdipFunctions.cs: Added missing DrawImage GDI+ calls
2580 2004-03-23 Ravindra <rkumar@novell.com>
2581 * gdipFunctions.cs: Added few more P/Invoke calls for
2582 LinearGradientBrush.
2584 2004-03-22 Ravindra <rkumar@novell.com>
2585 * gdipFunctions.cs: Added P/Invoke calls for LinearGradientBrush
2586 and did few coding style fixes.
2588 2004-03-18 Ravindra <rkumar@novell.com>
2589 * Brush.cs: Fixed Dispose method.
2590 * SolidBrush.cs: Fixed clone method.
2591 * TextureBrush.cs: Fixed clone method.
2592 * gdipFunctions.cs: Fixed P/Invokes for PathGradientBrush.
2594 2004-03-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2596 * SizeConverter.cs: fixd typo in ConvertFrom that made height be wrong.
2598 2004-03-10 Ravindra <rkumar@novell.com>
2599 * Pen.cs: Implemented PenType property.
2600 * Brush.cs: Coding style.
2602 2004-03-06 Ravindra <rkumar@novell.com>
2603 * gdipFunctions.cs: Added few more GDI+ P/Invoke calls
2604 for PathGradientBrush.
2606 2004-03-06 Ravindra <rkumar@novell.com>
2607 * gdipFunctions.cs: Added GDI+ P/Invoke calls for
2610 2004-03-04 Duncan Mak <duncan@ximian.com>
2612 * Region.cs: Indentation.
2614 * RectangleF.cs: Changed the internal structure from a PointF,
2615 SizeF to floats in order to match the layout from the C API.
2617 2004-03-04 Jordi Mas i Hernandez <jordi@ximian.com>
2618 * StringFormat.cs: DigitSubstitution and TabStob methods, coding-style
2620 2004-03-03 Sanjay Gupta <gsanjay@novell.com>
2621 * gdipFunctions.cs: Added functions for ImageAttributes
2623 2004-03-03 Sanjay Gupta <gsanjay@novell.com>
2624 * Icon.cs: Missing function stubs added
2625 * Icon.cs: Missing function stubs added
2626 * IconConverter.cs: Missing function stubs added
2627 * ImageAnimator.cs: Missing function stubs added
2628 * ImageConverter.cs: Missing function stubs added
2629 * ImageFormatConverter.cs: Missing function stubs added
2631 2004-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
2632 * Font.cs: Allow multiple styles
2634 2004-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
2635 * StringFormat.cs: Clone method
2637 2004-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
2638 * font.cs: fixes, Clone, and ToString
2640 2004-02-21 Jordi Mas i Hernandez <jordi@ximian.com>
2641 * gdipFunctions.cs: MeasureString
2642 * Graphics.cs : MeasureString
2644 2004-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
2645 * Font.cs: destructor and unit conversion
2646 * Graphics.cs : system dpi support
2648 2004-02-13 Ravindra <rkumar@novell.com>
2649 * Pen.cs: Fixed some bugs.
2650 * TextureBrush.cs: Fixed some bugs.
2652 2004-02-13 Sanjay Gupta <gsanjay@novell.com>
2653 * gdipFunctions.cs: Added ImageCodecInfo functions
2654 * Image.cs: Added few methods
2656 2004-02-13 Jordi Mas i Hernandez <jordi@ximian.com>
2657 * FontFamily.cs: remove hardcoded font names, a few bug fixes
2659 2004-02-12 Sanjay Gupta <gsanjay@novell.com>
2660 * gdipFunctions.cs: Added Image class functions
2661 * Image.cs: Added few methods
2663 2004-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
2664 * graphics.cs: fixes parameters for DrawStrings functions
2666 2004-02-07 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2668 * SRDescriptionAttribute.cs: Added and implemented
2669 * ToolboxBitmapAttribute.cs: Implemented a few members
2670 * SystemIcons.cs: Stubbed
2671 * StringFormat.cs: Implemented method
2672 * Region.cs: Added Todo, fixed attribute
2673 * Size.cs: Added attribute
2674 * SizeF.cs: Added attribute
2675 * RectangleF.cs: Added attributes
2676 * Rectangle.cs: Added attributes
2677 * PointF.cs: Added attribute
2678 * Point.cs: Added attribute
2680 2004-02-06 Ravindra <rkumar@novell.com>
2682 * Brush.cs: Renamed GetException method to CheckStatus
2683 and moved it to gdipFunctions.cs.
2684 * gdipFunctions.cs: Added CheckStatus method.
2685 * SolidBrush.cs: Using CheckStatus method.
2686 * TextureBrush.cs: Using CheckStatus method.
2687 * gdipEnums.cs: Added a missing value.
2689 2004-02-05 Ravindra <rkumar@novell.com>
2691 * Brush.cs: Added a missing namespace.
2693 2004-02-05 Ravindra <rkumar@novell.com>
2695 * gdipFunctions.cs: Added methods for HatchBrush and
2697 * SolidBrush.cs: Added checks for status.
2698 * Brush.cs: Added support for HatchBrush and TextureBrush
2699 types in internal CreateBrush() method.
2701 2004-02-03 Jordi Mas <jordi@ximian.com>
2702 * Font.cs: Setup font properties
2704 2004-02-03 Ravindra <rkumar@novell.com>
2706 * TextureBrush.cs and Brush.cs: Moved GetException (Status)
2707 method from TextureBrush.cs to Brush.cs.
2708 * Brush.cs: Made GetException (Status) method internal.
2710 2004-02-03 Sanjay Gupta <gsanjay@novell.com>
2712 * gdipFunctions.cs: Added methods for Image class.
2714 2004-01-30 Ravindra <rkumar@novell.com>
2716 * TextureBrush.cs: Added more methods to complete it.
2717 * gdipFunctions.cs: Added methods for TextureBrush class.
2719 2004-01-30 Ravindra <rkumar@novell.com>
2721 * gdipFunctions.cs: Added methods for TextureBrush class.
2723 2004-01-30 Ravindra <rkumar@novell.com>
2725 * Pen.cs: Modified to handle TextureBrush also.
2726 * Bitmap.cs: Added one internal constructor.
2727 * TextureBrush.cs: Implemented.
2729 2004-01-29 Duncan Mak <duncan@ximian.com>
2732 * Graphics.cs: Indentation fixes, removed long dangling lines and
2735 * Graphics.cs (IsVisible): Renamed variable to not use hungarian
2738 2004-01-29 Sanjay Gupta <gsanjay@novell.com>
2740 * FontFamily.cs: Implemented few methods and a constructor
2742 2004-01-28 Sanjay Gupta <gsanjay@novell.com>
2744 * gdipFunctions.cs: Added FontFamily and FontCollection functions.
2745 * FontFamily.cs: Implemented missing functionalities.
2747 2004-01-24 Duncan Mak <duncan@ximian.com>
2749 * Graphics.cs (DrawPath): Implemented.
2751 2004-01-23 Ravindra <rkumar@novell.com>
2753 * Point.cs: ToString modified.
2754 * PointF.cs: ToString modified.
2755 * Size.cs: ToString modified.
2756 * SizeF.cs: ToString modified. ToPoint and ToSize methods
2759 2004-01-21 Jordi Mas i Hernà ndez
2760 * Bitmap.cs: Several new methods added.
2762 2004-01-21 Duncan Mak <duncan@ximian.com>
2764 * gdipFunctions.cs (GdipGetPathTypes, GdipGetPathPoints): Add
2765 OutAttribute to the array argument. This fixes the PathPoints
2766 property in System.Drawing.Drawing2D.GraphicsPath.
2768 2004-01-20 Ravindra <rkumar@novell.com>
2770 * Pen.cs: Fixed bug #52811 in Pen.Transform property. Setting
2771 this property was hanging and getting was throwing a NullRef
2772 Exception. Earlier we were passing Matrix object to and fro
2773 which was causing the problem. Now, we are using IntPtr.
2774 Thanks to Duncan for helping me.
2775 Also, .NET behavior is to maintain Pen.Color and Pen.Brush
2776 together. If color is set, a SolidBrush automatically gets
2777 set with the same color, Pen loses the old brush object.
2778 If a SolidBrush is set, Pen.Color gets the value same as that
2779 of brush color losing the old value. Pen shows this behavior
2781 * gdipFunctions.cs: Changed the signature of GdipGetPenTransform
2782 and GdipSetPenTransform methods to use IntPtr instead of Matrix.
2784 2004-01-19 Duncan Mak <duncan@ximian.com>
2786 * gdipFunctions.cs: Import functions for GraphicsPath.
2788 2004-01-14 Ravindra <rkumar@novell.com>
2790 * SolidBrush.cs: Made SolidBrush to initialize its color
2793 * gdipFunctions.cs: Added call to GdipGetSolidFillColor GDI+ API.
2795 2004-01-11 Duncan Mak <duncan@ximian.com>
2797 * Bitmap.cs (LockBits):
2798 * Graphics.cs (DrawString): Removed reference to GpRectF.
2800 2004-01-09 Duncan Mak <duncan@ximian.com>
2802 * gdipStructs.cs (GpRectF, GpRect, GpPointF, GpPoint):
2803 Removed. Didn't know that structs are laid out sequentially by
2804 default. We don't need these anymore.
2806 2004-01-12 Ben Maurer <bmaurer@users.sourceforge.net>
2808 * Color.cs: Keep KnownColors in an array so that we avoid ht lookup.
2810 2004-01-11 Daniel Morgan <danielmorgan@verizon.net>
2812 * Graphics.cs: fix compile error on Windows builds for out
2813 parameter state in call to GdipSaveGraphics
2815 2004-01-10 Ravindra <rkumar@novell.com>
2817 * All Enums: Made serializable.
2819 * Image.cs: Corrected signature of Dispose(bool) method.
2821 * Pen.cs, SolidBrush.cs, SystemPens.cs, SystemBrushes.cs:
2822 Corrected coding style mistakes of my previous commit.
2824 * PointConverter.cs, RectangleConverter.cs: Inherit TypeConverter.
2826 * PointF.cs, RectangleF.cs, SizeF.cs: Made serializable.
2828 * StringFormat.cs: Inherits MarshalByRefObject.
2830 * ToolboxBitmapAttribute.cs: Added missing attribute [AttributeUsage].
2832 2004-01-08 Ravindra <rkumar@novell.com>
2834 * Pen.cs: Added isModifiable (bool) variable. It is required to
2835 make Pens created by SystemPens.cs unmodifiable. All property
2836 setters are modified for this.
2838 * SolidBrush.cs: Added isModifiable variable (bool). It is
2839 required to make Brushes created by SystemBrushes.cs unmodifiable.
2840 All property setters are modified for this.
2842 * SystemBrushes.cs: Modified all the properties as per the .NET
2843 specs, so that Brushes are not created every time. Also, missing
2844 properties are added.
2846 * SystemPens.cs: Modified all the properties as per the .NET
2847 specs, so that Brushes are not created every time. Also, missing
2848 properties are added.
2850 2003-12-12 Miguel de Icaza <miguel@ximian.com>
2852 * Rectangle.cs: Patch from Bryan Bulten, fixes Inflate and makes
2855 2004-01-06 Duncan Mak <duncan@ximian.com>
2857 * gdipFunctions.cs: Import GraphicsPath functions from GDI+.
2859 2003-12-21 Duncan Mak <duncan@ximian.com>
2861 * Graphics.cs (DrawArc): Fixed the method signature and hooked it
2862 up to the GDI+ implementation.
2863 (RotateTransform): Uncommented.
2865 * gdipFunctions.cs (DrawArc, DrawArcI): Import from
2868 2003-12-13 Todd Berman <tberman@sevenl.net>
2870 * Font.cs: Implementing a couple things for porting purposes
2871 * SystemBrushes.cs: ^
2872 * StringFormat.cs: ^^
2874 2003-11-28 Duncan Mak <duncan@ximian.com>
2876 * Pen.cs (CompoundArray): Hide this for now.
2878 2003-11-28 Duncan Mak <duncan@ximian.com>
2880 * Brush.cs (CreateBrush): new internal factory method for creating
2881 specific brushes based on the internal (GDI+ C API) BrushType
2883 (Brush (IntPtr)): new internal constructor.
2885 * Pen.cs: Removed all the C# fields. We are using GDI+ completely
2887 (Pen (IntPtr)): new internal constructor.
2888 (Pen (Brush, float)): Use GdipCreateBrush2.
2889 (Clone): Implemented using GdipClonePen.
2890 (Alignment, Brush, Color, Width): Use GDI+ implementations
2892 (CompoundArray, DashCap, DashOffset, DashPattern, DashStyle):
2893 Implemented these properties.
2894 (CustomStartCap, CustomEndCap, StartCap, EndCap, SetLineCap): Stubbed.
2895 (MultiplyTransform, ResetTransform, RotateTransform):
2896 (ScaleTransform, TranslateTransform): Implemented these methods.
2898 * SolidBrush.cs (SolidBrush (IntPtr)): new internal constructor.
2900 * gdipEnums.cs (BrushType): Added new GDI+ enum.
2902 * gdipFunctions.cs: Imported new Brush and Pen functions.
2904 2003-11-22 Duncan Mak <duncan@ximian.com>
2907 (GdipResetWorldTransform, GdipSetWorldTransform):
2908 (GdipGetWorldTransform, GdipScaleWorldTransform): Imported.
2910 * Graphics.cs: Remove unnecessary TODO, and reformatted the code.
2911 (transform): Removed this field. Always use the
2912 matrix associated in the GpGraphics ptr.
2913 (DrawBeziers): Implemented.
2914 (DrawLine): Don't need to manually invoke the transform now.
2915 (MultiplyTransform, ResetTransform):
2916 (ScaleTransform, TranslateTransform): Use GDI+ implementation.
2917 (Transform): Instead of storing a Matrix in managed code, use
2918 equivalent GDI+ functions.
2920 2003-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2922 * SizeConverter.cs: fixed class signature and implemented some methods.
2924 2003-11-17 Duncan Mak <duncan@ximian.com>
2926 * gdipFunctions.cs (GdipGetMatrixElements): Fix signature.
2928 * Graphics.cs (MultiplyTransform): Commented out until my Matrix commit.
2930 2003-11-17 Duncan Mak <duncan@ximian.com>
2932 * Bitmap.cs (LockBits):
2933 * Graphics.cs (DrawString): Use GpRectF.
2935 * gdipFunctions.cs: Updated method signatures.
2937 * Graphics.cs (MultiplyTransform): Implemented using
2938 GdipMultiplyWorldTransform from GDI+.
2940 * gdipStructs.cs (GdipRectF, GdipRect): Renamed to GpRectF and
2941 GpRect, to be more consistent with the C naming.
2943 2003-11-16 Miguel de Icaza <miguel@ximian.com>
2945 * Graphics.cs: Implement the other DrawString overloads .
2947 2003-11-16 Miguel de Icaza <miguel@ximian.com>
2949 * gdipStructs.cs (GdipRectF): Added utility constructor
2951 2003-11-15 Duncan Mak <duncan@ximian.com>
2953 * gdipFunctions.cs: Imported matrix functions.
2955 2003-11-13 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2957 * Bitmap.cs: Added Attributes
2958 * ColorTranslator.cs: Added private constructor
2959 * Font.cs: Added Attributes
2960 * FontFamily.cs: sealed
2961 * Icon.cs: Added Attributes
2962 * IconConverter.cs: Fixed signature
2963 * Image.cs: Added attributes
2965 * ImageConverter.cs:
2966 * ImageFormatConverter.cs:
2973 * TextureBrush.cs: Fixed signature
2974 * Color.cs: Added attributes
2979 * SizeF.cs: Added attributes
2980 * ContentAlignment.cs: Added attribute
2982 2003-11-13 Duncan Mak <duncan@ximian.com>
2984 * Pen.cs (LineCap, LineJoin, MiterLimit, Transform): implemented.
2987 (GdipSetPenMiterLimit, GdipGetPenMiterLimit):
2988 (GdipSetPenLineJoin, GdipGetPenLineJoin):
2989 (GdipSetPenLineJoin, GdipGetPenTransform): imported.
2991 2003-11-12 Alexandre Pigolkine <pigolkine@gmx.de>
2993 * gdipFunctions.cs copy image in Bitmap constructor
2995 2003-11-06 Duncan Mak <duncan@ximian.com>
2996 * Graphics.cs (DrawPie): Use DrawPieI instead of DrawPie and fix
2997 angle parameters for the integer case.
2998 (DrawBezier): Hook it up with GdipDrawBezier.
2999 (DrawEllipse): Fix Width, Height ordering.
3001 2003-11-05 Duncan Mak <duncan@ximian.com>
3003 * Graphics.cs (DrawPie):
3004 * gdipFunctions.cs (GdipDrawPie): Add hooks to the implementation
3007 2003-10-28 Duncan Mak <duncan@ximian.com>
3009 * Graphics.cs (DrawEllipse, DrawLine, DrawPolygon):
3010 (FillEllipse, FillPolygon): implemented.
3011 (RenderingOrigin): implemented.
3013 * gdipFunctions.cs: Added new GDI+ equivalents.
3015 2003-10-25 Alexandre Pigolkine <pigolkine@gmx.de>
3017 * Image.cs small fixes
3019 2003-10-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3021 * Image.cs : renamed 'pallete' to 'colorPallete' for CLS compliance.
3023 2003-10-24 Miguel de Icaza <miguel@ximian.com>
3025 * SystemBrushes.cs: Some more brushe3s.
3027 * SystemPens.cs: More pens.
3029 * Pen.cs: Implement IDisposable, ICloneable.
3031 * Region.cs: Add some more stubs here.
3033 * StringFormat.cs: Add some more code here.
3035 2003-10-23 Miguel de Icaza <miguel@ximian.com>
3037 * Image.cs: Kill the InternalImageInfo, everything is now done in
3038 terms of Image and BitmapData.
3040 * Rectangle.cs: Make this one also sequential, change from using
3041 Point + Size to use x, y, width, height; So we can use GdiPlus.
3043 * gdipFunctions.cs (GdipBitmapLockBits): Remove the ref from the
3044 BitmapData class argument, and instead use the [In,Out]
3045 attributes, which will do struct marshalling on the fields. Now
3046 we can use C#'s BitmapData directly to talk to Gdiplus.
3048 * gdipStructs.cs: Every internal structure that has to talk to
3049 Gdi+ is properly prefixed, to minimize the confussion.
3051 * Bitmap.cs Bitmap (int width, int height, PixelFormat format):
3052 Compute the stride here where we have the BPP information,
3053 allocate a buffer of the proper size, and pass this to
3054 GdipCreateBitmapFromScan0
3056 * Image.cs: Implement Dispose pattern.
3058 2003-10-14 Alexandre Pigolkine <pigolkine@gmx.de>
3061 * gdipStructs.cs DrawString function added
3063 2003-10-12 Alexandre Pigolkine <pigolkine@gmx.de>
3066 * gdipStructs.cs added
3069 2003-10-12 Alexandre Pigolkine <pigolkine@gmx.de>
3078 implementation changed to gdi+
3080 2003-09-08 Duncan Mak <duncan@ximian.com>
3082 * Factories.cs (DefaultImplementationNamespace): Change it from
3083 "XrImpl" to "Cairo".
3085 2003-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3087 * Color.cs: fixed FromArgb to handle alpha value correctly. Closes
3090 2003-08-08 Duncan Mak <duncan@ximian.com>
3092 * Graphics.cs (DrawBezier): Fixed.
3094 2003-08-03 Alexandre Pigolkine <pigolkine@gmx.de>
3095 * Graphics.cs delegate Dispose to implementation
3097 2003-08-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3099 * FontConverter.cs: stub it out so that system.web compiles.
3101 2003-07-30 Alexandre Pigolkine <pigolkine@gmx.de>
3102 * Image.cs InternalImageInfo class improved
3104 2003-07-23 Miguel de Icaza <miguel@ximian.com>
3106 * Factories.cs: If the AppDomain key `Mono.Running.Windows.Forms'
3107 is set, default to Win32Impl
3109 2003-07-22 Alexandre Pigolkine <pigolkine@gmx.de>
3110 * Image.cs implementation added
3112 2003-07-21 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
3114 * Icon.cs: Stubed out (fix for System.Drawing.Design)
3116 2003-07-17 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
3118 * StringFormat.cs: Changes to become CLS-compliant
3120 2003-07-14 Miguel de Icaza <miguel@ximian.com>
3122 * Factories.cs: Remove debugging message.
3124 2003-07-01 Alexandre Pigolkine <pigolkine@gmx.de>
3125 * Color.cs code generation program modified
3127 2003-06-29 Alexandre Pigolkine
3128 * Graphics.cs image drawing
3130 2003-06-28 Alexandre Pigolkine <pigolkine@gmx.de>
3133 supply KnowColor enum value to save Enum.Parse at runtime
3135 2003-06-26 Alexandre Pigolkine <pigolkine@gmx.de>
3136 * Graphics.cs coordinate transformations
3137 * Image.cs small fix
3139 2003-06-22 Alexandre Pigolkine <pigolkine@gmx.de>
3141 * FontFamily.cs more implementation
3143 2003-06-20 Alexandre Pigolkine <pigolkine@gmx.de>
3145 * FontFamily.cs more implementation
3147 2003-06-18 Alexandre Pigolkine <pigolkine@gmx.de>
3148 * Graphics.cs few more calls to implementation
3150 2003-06-15 Alexandre Pigolkine <pigolkine@gmx.de>
3151 * Bitmap.cs BITMAP declaration removed
3152 * Graphics.cs few more calls to implementation
3153 * Image.cs InternalImageInfo structure, image read/write functions
3156 2003-05-26 Alexandre Pigolkine <pigolkine@gmx.de>
3157 * Factories.cs analyse environment variable and machine.config to select implementation
3158 * Image.cs PixelFormat property added
3160 2003-04-30 Nick Drochak <ndrochak@gol.com>
3162 * Factories.cs: Change weird characters that broke build on windows.
3164 2003-04-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3166 * ColorConverter.cs:
3167 (ConvertFrom): return a system or named color if there's one that fits
3168 teh values parsed with Color.FromArgb.
3170 2003-04-26 Alexandre Pigolkine <pigolkine@gmx.de>
3180 delegate function calls to implementation
3182 2003-04-26 Alexandre Pigolkine <pigolkine@gmx.de>
3186 * SystemBrushes.cs switch to Linux style line terminators
3188 2003-03-29 Alan Tam <Tam@SiuLung.com>
3189 * ToolboxBitmapAttribute
3190 stubbed more constructors and fixed base class
3192 2003-03-01 Alexandre Pigolkine <pigolkine@gmx.de>
3194 added stubs to compile SWF
3197 2003-02-21 Alexandre Pigolkine <pigolkine@gmx.de>
3202 small changes to be able to run SWF apps
3204 2003-02-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3206 * Graphics.cs: stubbed out all the methods.
3208 2003-02-08 Piers Haken <piersh@friskit.com>
3210 * fixed case of pens.cs and font.cs
3212 2003-02-07 Alexandre Pigolkine <pigolkine@gmx.de>
3219 2002-11-21 Dennis Hayes (dennish@raytek.com)
3220 * checkin for Matt Stump (mstump@swfo.arizona.edu)
3224 2002-10-19 Rachel Hestilow <hestilow@ximian.com>
3226 * ColorTranslator.cs (FromHtml): Implement.
3228 2002-10-14 Dennis Hayes (dennish@raytek.com)
3230 * changed using namespace from Drawing2d to Drawing2D
3232 2002-9-15 Asier Llano <asierllano@infonegocio.com>
3234 * Fixes the enum values in the following enums
3235 * ContentAlignment.cs:
3239 * RotateFlipType.cs:
3240 * StringAligment.cs:
3241 * StringDigitSubstitute.cs:
3242 * StringFormatFlags.cs:
3243 * StringTrimming.cs:
3245 * SolidBrush.cs: Easy implementation
3246 * Brushes.cs: Implementation based on SolidBrush and Color class.
3247 * Brush.cs: Fixes based on the status web).
3248 * CharacterRange.cs: Implemented the missing Lenth property.
3250 2002-9-14 Dennis Hayes (dennish@raytek.com)
3253 * removed personal template that should not have been checked in
3255 2002-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3257 * ColorConverter.cs: readded MonoTODOs and implemented a couple of
3260 2002-9-14 DennisHayes <dennish@raytek.com>
3268 * ImageFormatConverter.cs
3270 * RectangleConverter.cs
3279 * ToolboxBitmapAttribute.cs
3280 * Added null classes for most/all classes, Many stubs, and some implmentation
3282 2002-9-2 DennisHayes <dennish@raytek.com>
3289 * Added stubs, implmentation
3291 2002-9-2 DennisHayes <dennish@raytek.com>
3293 * Brushes.cs : stubbed, added colors. Not sure how to implement,
3294 but this should at least save someone some typing.
3295 * CharacterRange.cs :Implmented
3296 * Region.cs : stub needed for system.windows.forms
3298 2002-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3300 * ColorTranslator.cs: use Color.Name.
3302 2002-07-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3304 * Color.cs: implemented SystemColors and NamedColors properties that
3305 are used by ColorConverter, removed public constructor, use
3306 SystemColors, and misc. fixes to make it behave as MS (ToString,
3307 parsing names, FromKnownColor,...).
3309 * ColorConverter.cs: use NamedColors and SystemColors from Color when
3310 trying to get the color from its name.
3312 * SystemColors.cs: new file.
3314 2002-07-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3316 * Color.cs: changed static properties to use FromArgbNamed. Also
3317 modified the program included in comments that get the values for
3320 (FromArgbNamed): build named colors.
3321 (FromKnownColor): fixed.
3322 (FromName): use a hash to look up colors by name.
3323 (FillColorNames): create the hash of colors.
3324 (Equals): compare values and name.
3325 (ToString): improved.
3327 * ColorTranslator.cs: implemented ToHtml.
3329 2002-06-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3331 * Color.cs: added TypeConverter attribute.
3333 * ColorConverter.cs: added constructor.
3335 2002-06-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3337 * ColorConverter.cs: implemented minimal set of features needed by xsp.
3339 2002-05-03 Mike Kestner <mkestner@speakeasy.net>
3341 * Bitmap.cs : using System.IO
3342 * ColorTranslator.cs : Stubbed off build breakers.
3343 * Image.cs : Stub off IDisposable and ICloneable.
3345 2002-04-27 Christian Meyer <Christian.Meyer@cs.tum.edu>
3347 * Bitmap.cs: Ximian is the new copyright holder now.
3350 2002-04-05 Christian Meyer <Christian.Meyer@cs.tum.edu>
3352 * Uppercased several files.
3354 2002-04-05 Christian Meyer <Christian.Meyer@cs.tum.edu>
3356 * color.cs: Fixed a typo in GetSaturation ().
3358 2002-02-26 Christian Meyer <Christian.Meyer@cs.tum.edu>
3360 * Bitmap.cs: Added method headers.
3362 2002-02-25 Christian Meyer <Christian.Meyer@cs.tum.edu>
3364 * Bitmap.cs: Added, no implementation's done, yet.
3366 2001-12-15 Mike Kestner <mkestner@speakeasy.net>
3368 * Rectangle.cs : Add a doc comment.
3369 * RectangleF.cs : New struct implementation.
3371 2001-12-15 Mike Kestner <mkestner@speakeasy.net>
3373 * Rectangle.cs : New struct implementation.
3375 2001-08-17 Mike Kestner <mkestner@speakeasy.net>
3377 * PointF.cs, Size.cs, SizeF.cs : New struct implementations.
3379 2001-08-16 Mike Kestner <mkestner@speakeasy.net>
3381 * Point.cs : New. Implementation of System.Drawing.Point struct.