1 2007-10-31 Sebastien Pouliot <sebastien@ximian.com>
3 * ImageAnimator.cs: Fix delay == 0 to match most browser (imaginative)
4 definitions of "0". Don't throw on null images. Synchronize hashtable.
5 Remove unrequired loops.
7 2007-10-17 Geoff Norton <gnorton@novell.com>
9 * Graphics.cs: Only synchronize the display on Flush when we actually have
12 2007-10-17 Geoff Norton <gnorton@novell.com>
14 * carbonFunctions.cs: Initial support for clipping children out of the
15 CGContext before drawing on it.
17 2007-10-09 Geoff Norton <gnorton@novell.com>
19 * carbonFunctions.cs: Correct the P/Invoke definition for CGContext*CTM.
21 2007-09-26 Ivan N.Zlatev <contact@i-nz.net>
23 * ColorConverter.cs: During conversion to InstanceDescriptor check
24 both IsSystemColor to get a PropertyInfo from type SystemColors
25 and IsKnownColor to get PropertyInfo from type Color.
27 2007-08-09 Vladimir Krasnov <vladimirk@mainsoft.com>
29 * ColorTranslator.cs: optimized Html color formatting in ToHtml method
31 2007-08-13 Sebastien Pouliot <sebastien@ximian.com>
33 * gdipFunctions.cs: Change GdipMeasureString definition to use unsafe
35 * Graphics.cs: Rework MeasureString not to supply integers (characters
36 and lines) as they aren't required for most of it's overloads and
37 requires extra code/time to calculate inside libgdiplus. Also fix a
38 possible NRE in MultiplyTransform.
40 2007-08-01 Sebastien Pouliot <sebastien@ximian.com>
42 * gdipFunctions.cs: Added definition for GdipCloneFontFamily
44 2007-08-01 Vladimir Krasnov <vladimirk@mainsoft.com>
46 * Bitmap.jvm.cs: fixed InternalPixelFormat TYPE_BYTE_GRAY
48 2007-05-30 Sebastien Pouliot <sebastien@ximian.com>
50 * Graphics.cs: Refactor [Get|Release]Hdc to get ReleaseHdcInternal
51 working (as long as the HDC comes from GetHdc).
53 2007-05-21 Adar Wesley <adarw@mainsoft.com>
57 * Region.jvm.cs: Changed MemberwiseClone to clone.
59 2007-05-21 Adar Wesley <adarw@mainsoft.com>
61 * Font.jvm.cs: added implementation for Equals and GetHashCode.
63 * Graphics.jvm.cs: added missing DrawImage overloads,
64 DrawImageUnscaledAndClipped.
66 2007-05-18 Sebastien Pouliot <sebastien@ximian.com>
68 * Icon.cs: Always open icon files as read only. Fix #81669.
70 2007-05-15 Sebastien Pouliot <sebastien@ximian.com>
72 * Graphics.cs: Fix DrawImageUnscaled for empty (width or height <= 0)
73 Fix NRE in DrawImageUnscaledAndClipped. Remove lines with only tabs in
75 * RectangleF.cs: A rectangle with a negative width or height is also
78 2007-05-09 Igor Zelmanovich <igorz@mainsoft.com>
80 * FontConverter.cs: for TARGET_JVM destructor is not used.
82 2007-05-03 Igor Zelmanovich <igorz@mainsoft.com>
84 * ColorConverter.cs: fixed GetStandardValues() for TARGET_JVM
85 * Font.jvm.cs: fixed GetHeight()
87 2007-05-02 Sebastien Pouliot <sebastien@ximian.com>
89 * gdipEnums.cs: Add GetSysColorIndex
90 * gdipStructs.cs: Remove GetSysColorIndex (it's an enum)
91 * KnownColors.cs: Fix Windows desktop colors as GetSysColor returns
92 values in BGR (not RGB).
94 2007-05-01 Sebastien Pouliot <sebastien@ximian.com>
96 * KnownColors.cs: Force alpha values (opaque) on Win32's GetSysColor.
98 2007-04-30 Sebastien Pouliot <sebastien@ximian.com>
100 * Color.cs: Reflection didn't like the change from int to uint (thanks
101 to Gert for noticing again :-).
103 2007-04-29 Konstantin Triger <kostat@mainsoft.com>
105 * Color.cs: FromName - do not throw on unknown color.
107 2007-04-26 Sebastien Pouliot <sebastien@ximian.com>
109 * Color.cs: Try to avoid calling GetName in GetHashCode when the color
110 isn't named. Commented code (#81465) to remove the string name member
111 for the 2.0 profile (to avoid a reference in a struct).
112 * ColorConverter.cs: Use the new KnownColor static uint array.
113 * ColorTranslator.cs: Share code between From[Win32|Ole] (both BGR).
114 Reduce ToHtml switch size (when html name == known color name).
115 * KnownColors.cs: Remove the array of struct for every known colors.
116 Add an array of uint with color values and a method to return the name
117 of a known color. Big reduction of the static ctor code size.
119 2007-04-26 Sebastien Pouliot <sebastien@ximian.com>
121 * gdipFunctions.cs: Add p/invoke definitions for GdipRecordMetafile
122 FromDelegate[I]_linux.
124 2007-04-26 Sebastien Pouliot <sebastien@ximian.com>
126 * gdipFunctions.cs: Add p/invoke definitions for GdipRecordMetafile
127 [FileName|FromStream][I].
129 2007-04-16 Sebastien Pouliot <sebastien@ximian.com>
131 * Bitmap.cs: Add check in SetPixel for Format16bppGrayScale (but
132 without requiring a second unmanaged call on each SetPixel call).
134 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
136 * Brush.cs: Ensure we're zeroing the handle before calling
137 CheckStatus. Some clean up.
138 * Pen.cs: Ensure we're zeroing the handle before calling CheckStatus.
139 Use Locale.GetText for exceptions.
141 2007-04-11 Sebastien Pouliot <sebastien@ximian.com>
143 * Bitmap.cs: Move LockBits validations into unmanaged code.
144 * gdipFunctions.cs: Add mapping for Win32Error in CheckStatus. Add
145 globalization support for CheckStatus and add the GDI+ status code in
147 * SolidBrush.cs: Clean up and add comments about [un]named colors.
149 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
151 * Color.cs: Remove duplicate check in == and add better comments
153 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
155 * Color.cs: Remove hashtables and locks. All color properties are read
156 from KnownColors. Remove extra & 0xFF (typecast to byte is enough).
157 Keep track of the Name property once calculated. When possible (most
158 likely case) don't create the names (strings) in Equals, == and !=
159 * ColorTranslator.cs: Use the new KnownColors instead of the separate
160 NamedColors and SystemColors.
161 * ColorConverter.cs: Use the new KnownColors instead of the separate
162 NamedColors and SystemColors.
163 * gdipFunctions.cs: Moved GetSysColor p/invoke signature here as this
164 class is marked by [SuppressUnmanagedCodeSecurity].
165 * gdipStructs.cs: Moved Windows-specific GetSysColorIndex enum here.
166 * KnownColors.cs: New. Single source for all colors.
167 * SystemColors.cs: Vastly simplified. All color properties are read
170 2007-04-05 Sebastien Pouliot <sebastien@ximian.com>
172 * gdipFunctions.cs: Remove unused (and not part of GDI+) GdipGetHfont
175 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
177 * Pen.cs: Simplify. Caching the brush still involved too many
178 unmanaged calls and was hiding libgdiplus bugs (e.g. 81266). Color is
179 still cached (a little less ;-) but needs to stay that way so we keep
180 the color names available (it's the expected behavior).
182 2007-03-20 Sebastien Pouliot <sebastien@ximian.com>
184 * Graphics.cs: Replace TODO on all EnumerateMetafile overloads.
186 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
188 * Font.cs: Add a better exception for trying to create a font
189 where the requested style is not available. [Fixes #81194]
191 2007-03-15 Sebastien Pouliot <sebastien@ximian.com>
193 * ColorConverter.cs: Rewrite the hex color convertion to be more
194 compatible with MS implementation (fixing NotWorking unit tests) and
195 more endian friendly.
197 2007-02-28 Sebastien Pouliot <sebastien@ximian.com>
199 * Font.cs: Remove internal SysFontName setter property and add a new
201 * SystemFonts.cs: We can't cache font instance (because anyone can
202 dispose them) so we must return new instances each time.
204 2007-02-27 Sebastien Pouliot <sebastien@ximian.com>
206 * Bitmap.cs: Removed unrequired ctors.
207 * TextureBrush.cs: Change which GDI+ calls is used to create the
208 brush (to better match what you expect from libgdiplus source). Add
209 [MonoLimitation] to ctors accepting ImageAttributes (not supported
210 by libgdiplus). Split some long lines into two lines.
212 2007-02-26 Sebastien Pouliot <sebastien@ximian.com>
214 * gdipFunctions.cs: Add p/invoke signature for GDI DeleteObject.
215 * Region.cs: Under Windows use DeleteObject when calling ReleaseHrgn.
218 2007-02-21 Sebastien Pouliot <sebastien@ximian.com>
220 * Image.cs: Fix Metefile.ctor usage (to avoid creating, and leaking,
221 an unmanaged metafile object);
223 2007-02-16 Sebastien Pouliot <sebastien@ximian.com>
225 * gdipFunctions.cs: Fix some p/invoke definitions (int versus uint)
226 and add more for metafile functions.
227 * Image.cs: Fix usage of corrected p/invoke signatures.
229 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
231 * SystemColors.cs: Query Windows for the colors added to this class
232 for 2.0. (Windows-only path of course.)
234 2007-02-13 Sebastien Pouliot <sebastien@ximian.com>
236 * Icon.cs: Ignore Vista 256x256 icons, just like MS does.
238 2007-02-09 Sebastien Pouliot <sebastien@ximian.com>
240 * Icon.cs: Resurrected some old Icon to Bitmap code from SVN history
241 to handle convertion for Win32, where MS GDI+ ICO codec doesn't
242 support all the icon formats supported by the Icon class.
244 2007-02-08 Sebastien Pouliot <sebastien@ximian.com>
246 * Bitmap.cs: Adapt code wrt Image changes. Reuse the serialization
247 ctor from Image to avoid duplicate code.
248 * gdipEnums.cs: Added ImageType. Clean up extra stuff.
249 * gdipFunctions.cs: Added GdipGetImageType and some metafile
251 * Image.cs: Refactor code not to create a Bitmap for every images
252 (e.g. FromFile, FromStream) as the result can also be a Metafile.
254 2007-01-30 Sebastien Pouliot <sebastien@ximian.com>
256 * Image.cs: Fix serialization of Image/Bitmap that contains ICO. In
257 this case the image is serialized as a PNG bitmap (note: the ICO codec
258 is a decoder-only codec).
260 2007-01-19 Sebastien Pouliot <sebastien@ximian.com>
262 * Graphics.cs: Fix FromImage to check for indexed images inside
263 managed code (and not GDI+ which will report the wrong error code
264 for the exception we expect).
265 * Image.cs: Remove unused private method IsIndexedPixelFormat.
267 2007-01-19 Sebastien Pouliot <sebastien@ximian.com>
269 * Font.cs: Fix calls to GDIPlus.ReleaseDC (missing parameter). This
270 fix the GDI object leaks under Win32 (#80552).
271 * gdipFunctions.cs: Fix ReleaseDC signature (missing hWnd).
272 * Graphics.cs: Fix ReleaseDC signature (missing hWnd) in NET_2_0.
274 2007-01-19 Sebastien Pouliot <sebastien@ximian.com>
276 * Font.cs: Under Win32 cache the LOGFONT we use to create the HFONT
277 handle. This "hides" the fact that ToLogFont leaks (#80552).
279 2007-01-17 Sebastien Pouliot <sebastien@ximian.com>
281 * gdipFunctions.cs: Added Win32 CreateIconIndirect and DestoryIcon
282 imports. Both are required under Win32 to get HICON stuff working.
283 Added some GDI+ Metafile related definitions too.
284 * gdipStructs.cs: Update IconInfo structure so it can be used when
285 calling CreateIconIndirect on Win32.
286 * Icon.cs: Add support for handles under Win32.
288 2007-01-16 Sebastien Pouliot <sebastien@ximian.com>
290 * Icon.cs: Implement saving an icon from it's bitmap representation.
291 This allows roundtripped icons (Handle or HICON) to be saved.
293 2007-01-15 Sebastien Pouliot <sebastien@ximian.com>
295 * Icon.cs: Refactor Save code to allow saving a single icon size.
296 This allows ToBitmap to produce the right (sized) bitmap wrt the
297 selected icon size. Fix #80509 under UNIX.
299 2007-01-15 Sebastien Pouliot <sebastien@ximian.com>
301 * Bitmap.cs: Make sure we're not building bitmaps using stream that
302 can be disposed (as GDI+ may require access to them anytime);
303 * Icon.cs: Change icon selection to match either width *or* height.
304 * Image.cs: Track user versus internal streams in InitFromStream
306 2007-01-12 Sebastien Pouliot <sebastien@ximian.com>
308 * Graphics.cs: Change DrawIcon* methods to use the internal bitmap
309 we keep for the Icon. This is required to let HICON support work with
310 libgdiplus (and should be faster than creating a new bitmap each time)
311 * Icon.cs: Fix ctor exceptions. Select the correct icon when multiple
312 size are available (and do not match the requested size). Fix handle
313 support for work under UNIX (Win32 support still missing). Keep an
314 internal bitmap for the Icon to use for HICON support.
316 2007-01-11 Sebastien Pouliot <sebastien@ximian.com>
318 * Icon.cs: Fix .ctor(string) to load, when available, the 32x32 icon.
319 Remove TARGET_JVM from file (Mainsoft now use Icon2.jvm.cs). Use GDI+
320 to implement ToBitmap method (previous results were wrong).
322 2007-01-10 Sebastien Pouliot <sebastien@ximian.com>
324 * Image.cs: Fix Palette to call into GDI+ even for non-indexed images.
325 This case can occurs with the ICOn codec where the returned image is a
326 32bpp ARGB bitmap *with* a palette.
328 2007-01-09 Sebastien Pouliot <sebastien@ximian.com>
330 * Font.cs: Unify platform detection code.
331 * gdipFunctions.cs: Unify platform detection code.
332 * Graphics.cs: Unify platform detection code.
333 * Image.cs: Unify platform detection code.
334 * SystemColors.cs: Unify platform detection code.
336 2007-01-08 Sebastien Pouliot <sebastien@ximian.com>
338 * gdipStructs.cs: Add support for SignaturePatterns and
339 SiggnatureMasks values.
341 2006-12-30 Alexander Olk <alex.olk@googlemail.com>
343 * gdipFunctions.cs: Don't create "millions" of byte arrays in
344 GdiPlusStreamHelper. Just create a default size array and resize it
345 only when needed. (as an example: the FileDialog sample created more
346 than 1700 new byte arrays on my system before the patch, now only 74)
348 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
350 * Brush.cs: Fixed line endings.
351 * BufferedGraphicsContext.cs: Fixed line endings.
352 * CharacterRange.cs: Fixed line endings.
353 * Graphics.cs: Fixed line endings.
354 * IDeviceContext.cs: Fixed line endings.
355 * SizeFConverter.cs: Fixed line endings.
356 * SystemBrushes.cs: Fixed line endings.
357 * SystemFonts.cs: Fixed line endings.
358 * SystemPens.cs: Fixed line endings.
360 2006-12-22 Sebastien Pouliot <sebastien@ximian.com>
362 * Graphics.cs: Splitted CopyFromScreen into platform specific methods
363 and added MonoLimitations to all overloads. This should get better
366 2006-12-19 Sebastien Pouliot <sebastien@ximian.com>
368 * FontFamily.cs: More accurate Mono* attributes to avoid confusion.
369 * Icon.cs: Dummy implementation of ExtractAssociatedIcon to always
370 return SystemIcons.WinLogo (which is better than throwing an NIE).
371 Updated MonoTODO, to a MonoLimitation, to reflect the change.
373 2006-12-14 Sebastien Pouliot <sebastien@ximian.com>
375 * Image.cs: Rework Clone so it doesn't confuse MoMA to report a NIE.
376 Cloning works for bitmap. Metafiles aren't (actually) supported.
378 2006-12-07 Sebastien Pouliot <sebastien@ximian.com>
380 * Icon.cs: Revert a change from r68882. The type is also part of the
381 icon's name. Fix bug #80181.
383 2006-12-03 Sebastien Pouliot <sebastien@ximian.com>
385 * Icon.cs: Add a new ctor that returns undisposable Icon instances
386 (required when used from SystemIcons). Added a dispose check in
387 ToBitmap (many other are missing).
388 * SystemIcons.cs: Change icons to the one already in SVN.
390 2006-12-02 Sebastien Pouliot <sebastien@ximian.com>
392 * FontConverter.cs: Add a comment why the empty finalizer is required.
393 * gdipFunctions.cs: Remove warning from build (unused variable).
394 * Icon.cs: Fix .ctor accepting a type - the type is to find the
395 assembly, not the type of the ressource.
396 * SystemIcons.cs: Load some icons from the assembly (all the same Mono
399 2006-11-22 Sebastien Pouliot <sebastien@ximian.com>
401 * BufferedGraphicsContext.cs: Better MonoTODO.
402 * BufferedGraphics.cs: Better MonoTODO.
403 * Font.cs: Better MonoTODO.
404 * FontFamily.cs: Better MonoTODO.
405 * Graphics.cs: Better MonoTODO.
406 * Icon.cs: Better MonoTODO.
407 * Image.cs: Second chance while saving using the current RawFormat.
408 This allows icons to be saved as PNG (strange but look at unit tests).
409 * ImageFormatConverter.cs: Implement GetStandardValues (and remove
410 it's MonoTODO) and fix GetStandardValuesSupported (to return true).
411 * Region.cs: Implement ReleaseHrgn (2.0) - not really useful (as the
412 handle is never exposed) but it's easier than to document the TODO ;-)
413 * SystemIcons.cs: Better MonoTODO.
415 2006-11-06 Sebastien Pouliot <sebastien@ximian.com>
417 * RectangleF.cs: Fix operator !=. Patch by Manuel Alejandro Cerón
420 2006-11-04 Chris Toshok <toshok@ximian.com>
422 * SystemColors.cs: reassign the given color to the return value of
423 UpdateKnownColor. This makes sure that the color has the same
424 SystemColor name. So, SystemColors.Control.Name always equals
425 "Control", regardless of the values the theme has stuffed in it.
427 * Color.cs: UpdateKnownColor now returns the new color.
429 2006-10-11 Sebastien Pouliot <sebastien@ximian.com>
431 * Graphics.cs: In MeasureCharacterRanges throw an ArgumentException if
432 StringFormat is null and return an empty region array if no range exists
433 (avoid GDI+ error/exeception). In MeasureString (2 overloads) replace
434 999999 by Int32.MaxValue (now that the real bug is fixed).
435 * StringFormat.cs: Ensure we are clearing the handle before throwing
438 2006-09-21 Sebastien Pouliot <sebastien@ximian.com>
440 * gdipFunctions.cs: Throw an OverflowException for the ValueOverflow
443 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
445 * gdipFunctions.cs, Image.cs: 78315. Probably in the future we should
446 add the same checking for other resource release GDI API calls.
448 2006-09-19 Sebastien Pouliot <sebastien@ximian.com>
450 * StringFormat.cs: Add missing validations.
452 2006-09-18 Sebastien Pouliot <sebastien@ximian.com>
454 * Graphics.cs: Add missing validations to MeasureCharacterRanges.
456 2006-09-18 Sebastien Pouliot <sebastien@ximian.com>
458 * Graphics.cs: Reorder instructions in MeasureString methods to avoid
459 allocations before checking for quick exit case (null/String.Empty
460 text or throwing execptions).
462 2006-09-11 Sebastien Pouliot <sebastien@ximian.com>
464 * ImageConverter.cs: Fixed ConvertTo to deal with null values (#79331)
465 and not to "return new NotSupportedException", throwing them is better
467 2006-09-07 Kornél Pál <kornelpal@gmail.com>
469 * ComIStreamMarshaler.cs: ManagedToNativeWrapper: Dispose COM vtable
470 on shutdown. Dispose unmanaged resources when constructor fails.
472 2006-09-06 Kornél Pál <kornelpal@gmail.com>
474 * ComIStreamMarshaler.cs: ManagedToNativeWrapper should not have a
475 destructor because it is freed using Release. (Proper fix for bug
476 #78315.) Free COM vtable when unloading and all objects Released.
478 2006-09-06 Jonathan Chambers <joncham@gmail.com>
480 * ComIStreamMarshaler.cs: Only deallocate memory
481 for COM wrapper if not shutting down. #78315
483 2006-09-04 Jonathan Chambers <joncham@gmail.com>
485 * ComIStreamMarshaler.cs: Do not deallocate unmanaged memory
486 allocated for vtable. If this finalizer runs before all clients
487 are done with it (Image(s) in this case) we crash on windows. #78315
489 2006-09-01 Sebastien Pouliot <sebastien@ximian.com>
491 * Bitmap.cs: Fix exceptions for LockBits.
493 2006-08-28 Sebastien Pouliot <sebastien@ximian.com>
495 * ImageAnimator.cs: Remove catch/throw in WorkerThread (it hides the
496 original exception). Found with Gendarme.
497 * Color.cs: Remove the double-check lock. Found with Gendarme.
498 * ColorConverter.cs: Remove the double-check lock. Found with Gendarme
500 2006-08-28 Jonathan Chambers <joncham@gmail.com>
502 * ComIStreamMarshaler.cs: Do not free memory allocated for
503 Com Callable Wrapper for stream. When Image created from stream
504 is destroyed, it calls Release on CCW interface. Somehow we seem
505 to be destroying Stream CCW before Image is destroyed. Fixes
506 crash on exit on Windows. #78315
508 2006-08-28 Boris Kirzner <borisk@mainsoft.com>
510 * SystemColors.jvm.cs: fix array size for NET_2_0
512 2006-08-27 Sebastien Pouliot <sebastien@ximian.com>
514 * ColorConverter.cs: Catch the case where the integer part of the
515 color doesn't fit into a 32bit integer.
516 * ColorTranslator.cs: Fixed Gendarme's UseStringEmptyRule on ToHtml
517 method. Fixed string handling on FromHtml method. Fixed all parameter
520 2006-08-25 Sebastien Pouliot <sebastien@ximian.com>
522 * gdipFunctions.cs: Change ColorMatrix to IntPtr in method
523 GdipSetImageAttributesColorMatrix definition.
524 * FontConverter.cs: Fix compiler warnings.
526 2006-08-24 Sebastien Pouliot <sebastien@ximian.com>
528 * TextureBrush.cs: Remove private Image member as we cannot, without
529 cloning it (which removes the advantage of caching it), return it for
530 the Image property *and* we cannot dispose of it properly (Dispose
533 2006-08-22 Sebastien Pouliot <sebastien@ximian.com>
535 * gdipFunctions.cs: Fix GdipGetImageWidth to use an uint for it's
537 * Image.cs: Cast the uint into an int for the Width property.
539 2006-08-12 Duncan Mak <duncan@novell.com>
541 * gdipFunctions.cs (GdipLoadImageFromStream):
542 (GdipSaveImageToStream): Don't include these methods when
543 compiling the unit tests.
545 2006-08-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
547 * gdipFunctions.cs: return -1 when stream.Length throws.
549 2006-08-11 Sebastien Pouliot <sebastien@ximian.com>
551 * Font.cs: Remove the, now unrequired, FaceNameOffset field and
552 use the object size instead of the structure size when copying.
554 2006-08-11 Sebastien Pouliot <sebastien@ximian.com>
556 * Font.cs: Added more checks to ToLogFont and fixed it's behaviour
557 to match MS boundary between GDI+ and SD.
559 2006-08-07 Andrew Skiba <andrews@mainsoft.com>
561 * Graphics.jvm.cs, Pen.jvm.cs, Region.jvm.cs: TARGET_JVM fix
563 2006-08-05 Sebastien Pouliot <sebastien@ximian.com>
565 * Font.cs: Avoid double cast in Equals. Return lfCharSet as 1 in
566 ToLogFont even if GDI+ has that value to 0.
568 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
570 * Icon.cs: when converting to Bitmap, handle the 24 bits separately.
571 Read the XOR and AND masks in a single read.
573 2006-08-04 Sebastien Pouliot <sebastien@ximian.com>
575 * Pen.cs: Fix unit tests wrt libgdiplus return value change.
577 2006-08-03 Sebastien Pouliot <sebastien@ximian.com>
579 * FontFamily.cs: Fix unit tests wrt libgdiplus return value change.
580 * Region.cs: Fix unit tests wrt libgdiplus return value change.
582 2006-08-01 Jonathan Chambers <joncham@gmail.com>
584 * Font.cs: Fix marshalling of LOGFONT in ToHfont.
587 2006-07-20 Sebastien Pouliot <sebastien@ximian.com>
589 * Graphics: Added implementation for ReleaseHDC by Jonathan Pobst
592 2006-07-06 Sebastien Pouliot <sebastien@ximian.com>
594 * Image.cs: Ensure we're setting the nativeObject to NULL before
595 throwing any exception while disposing (and avoid possible double
596 freeing). Avoid multiple casts in Clone method.
597 * Pen.cs: Ensure the internal pen's brush is always disposed
598 correctly. Avoid making a reference to the internal brush.
599 * SolidBrush.cs: Avoid setting color when cloning the solid brush
600 as the .ctor(IntPtr) always does this job.
602 2006-07-04 Sebastien Pouliot <sebastien@ximian.com>
604 * Image.cs: Made GetThumbnailImage throw OutOfMemoryException when
605 image size is invalid (to match MS behaviour), also ensure that the
606 Graphics instance is disposed even if CheckStatus throws an exception.
608 2006-06-26 Sebastien Pouliot <sebastien@ximian.com>
610 * Pen.cs: Ensure we dispose of an existing brush before replacing it.
611 Avoid double-cast when dealing with SolidBrush.
613 2006-06-06 Sebastien Pouliot <sebastien@ximian.com>
615 * gdipFunctions.cs: Fix API signature (missing pen pointer) for
616 GdipIsOutlineVisiblePathPoint[I] methods.
617 * FontFamily.cs: Delay the call to refreshName until it is actually
620 2006-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
622 * Color.cs: when deserializing from an MS generated stream, the value
623 for known colors was 0. These changes make our Color handle that case.
624 We won't serialize the name for known colors either, but the value will
625 be there, so we only check for a 0 value on a known color once.
628 2006-05-30 Sebastien Pouliot <sebastien@ximian.com>
630 * Font.cs: Change default charset to 1. Ensure we always call the
631 CheckStatus method after calling GDI+. Added null checks to match MS
633 * FontFamily.cs: Avoid double-cast in Equals. Fixed Equals not compare
634 pointers but names. Simplify the Generic* static properties by reusing
635 the .ctor code. Fixed ToString to match MS output. Removed
636 GetStyleCheck as it failed when multiple styles were provided (flags).
637 * gdipFunctions.cs: Convert Status.FontFamilyNotFound to an
640 2006-05-29 Sebastien Pouliot <sebastien@ximian.com>
642 * ImageFormatConverter.cs: Changed ConvertFrom to work with both short
643 (e.g. Bmp) and long (e.g. guid) names.
645 2006-05-26 Sebastien Pouliot <sebastien@ximian.com>
647 * ImageFormatConverter.cs: Fixing unit tests for ImageFormat
648 introduced a regression in the converter (not catched by other unit
651 2006-05-25 Sebastien Pouliot <sebastien@ximian.com>
653 * gdipFunctions.cs: Added wrapper methods for GdipGetRegionHRgn and
654 GdipCreateRegionHrgn functions.
655 * Region.cs: Reimplement GetHrgn and FromHrgn methods using the GDI+
658 2006-05-24 Sebastien Pouliot <sebastien@ximian.com>
660 * PointConverter.cs: Fx 2.0 throws an ArgumentException in
661 CreateInstance if some values are missing from the dictionary, while
662 1.x throws an NullReferenceException.
663 * RectangleConverter.cs: Fx 2.0 throws an ArgumentException in
664 CreateInstance if some values are missing from the dictionary, while
665 1.x throws an NullReferenceException.
666 * SizeConverter.cs: Fx 2.0 throws an ArgumentException in
667 CreateInstance if some values are missing from the dictionary, while
668 1.x throws an NullReferenceException.
669 * SizeFConverter.cs: Fix CreateInstance to use float (not int).
671 2006-05-24 Sebastien Pouliot <sebastien@ximian.com>
673 * Font.cs: Added a Demand for UnmanagedCode on both ToLogFont methods.
674 * Graphics.cs: Added checks for null Rectangle[F] arrays in
675 FillRectangles methods and removed the check for 0-length (MS throws).
676 Let EndContainer mthod throws a NullReferenceException on 1.x profile.
677 * Pen.cs: Let Brush property throws a NullReferenceException on 1.x.
679 2006-05-24 Sebastien Pouliot <sebastien@ximian.com>
681 * Pen.cs: Clone the supplied brush in the .ctor (as the user may
682 dispose of it anytime). Make sure we're disposing our cached brush
683 when disposing the pen.
685 2006-05-21 Sebastien Pouliot <sebastien@ximian.com>
687 * ContentAlignment.cs: Removed [Serializable] from 2.0 profile.
688 * FontStyle.cs: Removed [Serializable] from 2.0 profile.
689 * GraphicsUnit.cs: Removed [Serializable] from 2.0 profile.
690 * KnownColor.cs: Removed [Serializable] from 2.0 profile.
691 * RotateFlipType.cs: Removed [Serializable] from 2.0 profile.
692 * StringAligment.cs: Removed [Serializable] from 2.0 profile.
693 * StringDigitSubstitute.cs: Removed [Serializable] from 2.0 profile.
694 * StringFormatFlags.cs: Removed [Serializable] from 2.0 profile.
695 * StringTrimming.cs: Removed [Serializable] from 2.0 profile.
696 * StringUnit.cs: Removed [Serializable] from 2.0 profile.
698 2006-05-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
700 * ImageAnimator.cs: get the FrameDelay from the image properties, if
701 available. Remove ^Ms.
703 2006-05-17 Sebastien Pouliot <sebastien@ximian.com>
705 * Pen.cs: Get the pen color from the solid brush (when applicable).
706 Added missing validations for most properties. Always return a clone
707 of the internal brush (so no one can dispose of it in our back).
709 2006-05-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
711 * Color.cs: make it serialization-compatible with MS. Fixes bug #78265.
713 2006-05-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
715 * Bitmap.cs: (Clone) use the 'format' argument instead of the
718 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
720 * Graphics.cs : (FillRectangles/FillRectanglesI): when argument
721 array is empty, don't invoke GDI+. Fixed bug #78408.
723 2006-05-12 Sebastien Pouliot <sebastien@ximian.com>
725 * gdipFunctions.c: Fix misnamed GdipAdd*Path*String[I] API (#78383)
727 2006-05-11 Peter Dennis Bartok <pbartok@novell.com>
729 * Icon.cs: Don't require width/height to be non-0 when creating from
730 serialized data, just require them to be square
732 2006-05-04 Sebastien Pouliot <sebastien@ximian.com>
734 * Graphics.cs: Chaned DrawIcon methods to dispose the temporary bitmap
737 2006-05-04 Sebastien Pouliot <sebastien@ximian.com>
739 * Graphics.cs: Added a MonoTODO to PixelOffsetMode property so it shows
740 (in the class status library) a note that this isn't supported with
743 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
745 * FontConverter.cs (ConvertFrom): Implemented it properly. Fixes #78269
747 2006-05-02 Sebastien Pouliot <sebastien@ximian.com>
749 * PointF.cs: Add operators + and - between PointF and SizeF in the
750 2.0 profile (CSC 8.x can compile that, but sadly it doesn't show in as
751 missing in corcompare results).
753 2006-05-02 Sebastien Pouliot <sebastien@ximian.com>
755 * gdipFunctions.cs: Fixed wrappers for Gdip[Begin|End]Container[2][I]
756 * Graphics.cs: Fixed usage of fixed API ;-) Added MonoTODO on
757 BeginContainer methods that use rectangles and on TextContrast property
758 (all aren't currently supported in libgdiplus).
760 2006-05-01 Sebastien Pouliot <sebastien@ximian.com>
762 * Graphics.cs: Removed MonoTODO on DrawCurve methods (it's fixed in
763 libgdiplus). Fixed minor extra/missing for corcompare.
765 2006-05-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
767 * SizeF.cs: serialization compatibility fixes. Closes bug #78236.
769 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
771 * Icon.cs: Icon AND masks are organized in strides, fixed to calculate
772 and set proper transparency. Also fixed broken calculation of AND
773 size when reading the icon. NDocGui now shows pretty buttons.
775 2006-04-28 Sebastien Pouliot <sebastien@ximian.com>
777 * Color.cs: corcompare fix. Remove ComVisible attribute from 2.0 build
778 * Region.cs: Remove old todo that were fixed in libgdiplus.
779 * Image.cs: corcompare fixes. Clone isn't virtual. Added DefaultValue
780 attribute to Tag property. FromStream(Stream,bool,bool) is available
781 in Fx 1.1 (probably since SP1).
783 2006-04-28 Sebastien Pouliot <sebastien@ximian.com>
785 * Graphics.cs: Added MonoTODO on some DrawCurve methods because
786 libgdiplus doesn't use the numberOfSegments argument.
788 2006-04-27 Sebastien Pouliot <sebastien@ximian.com>
790 * gdipFunctions.cs: Added wrappers for GdipAddPathLine2 and
791 GdipAddPathLine2I methods (to allow adding a single point).
793 2006-04-27 Sebastien Pouliot <sebastien@ximian.com>
795 * gdipFunctions.cs: Added CharSet=CharSet.Unicode to GdipAddString and
796 GdipAddStringI wrapper methods.
798 2006-04-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
800 * Bitmap.cs: throw when the target pixel format differs from the one
801 of the image and it's an indexed format. We were failing in UnlockBits
804 2006-04-25 Miguel de Icaza <miguel@novell.com>
806 * FontConverter.cs (FontUnitConverter): implement. CorCompare
807 for some reason does not dig into nested classes, match the
810 (FontNameConverter): Return the fonts available on the system.
812 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
814 * Icon.cs: We need to or, not and our alpha values into the
815 palette. Also, we need to actually store the altered palette
816 on the bitmap, since we are altering a copy.
818 2006-04-10 Sebastien Pouliot <sebastien@ximian.com>
820 * gdipFunctions.cs: Fixed wrappers for GdipCreateMatrix3[I].
822 2006-03-23 Peter Dennis Bartok <pbartok@novell.com>
825 - GdipGetFontCollectionFamilyList: No need for complicated
826 GlobalAlloc stuff, .Net marshals the IntPtr[] array just fine
827 - GdipDeletePrivateFontCollection: We need to pass a ref to the
828 structure. This was causing nasty crashes.
829 - GdipGetFamilyName: Switched to use StringBuilder instead of
831 * FontFamily.cs: Simplified the refreshName method, less error-prone now
833 2006-03-21 Sebastien Pouliot <sebastien@ximian.com>
835 * Brush.cs: Remove unused code.
836 * FontFamily.cs: Remove warnings from build.
837 * gdipFunctions.cs: Add missing p/invoke calls for GdipAddString[I].
839 2006-03-21 Sebastien Pouliot <sebastien@ximian.com>
841 * gdipFunctions.cs: Import XFree (from libX11) so we can free the
843 * Graphics.cs: Free the memory we get from XGetVisualInfo.
845 2006-03-20 Sebastien Pouliot <sebastien@ximian.com>
847 * Brush.cs: Allow Dispose to free the unmanaged memory for the brush
848 in every case. This has been known (in the past) to cause crashes
849 in Cairo. If still true then we need to find out why!
851 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
853 * gdipFunctions.cs: Removed XCloseDisplay call from Gdi+ shutdown,
854 it was causing crashes in the finalizers (bug #77464)
856 2006-03-06 Jonathan Gilbert <logic@deltaq.org>
858 * gdipFunctions.cs: Rewrote the StreamSeekImpl function to invalidate
859 the start_buf cached bytes whenever Seek() is actually called. If
860 Seek is not called (an invalid 'whence' value), then the buffer is
861 not invalidated. This fixes a bug with TIFF loading.
863 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
865 * Image.cs (ISerializable.GetObjectData): Save the image in it's
866 original format. (Fixes #77673)
868 2006-02-28 Jonathan Chambers <jonathan.chambers@ansys.com>,
869 Peter Dennis Bartok <pbartok@novell.com>
872 - ToLogFont: Reworked to allow running under MS runtime and to
873 support it being called with both boxed structs and formatted
874 classes (MS runtime PtrToStructure cannot marshal boxed value
875 types, but Marshal.AsAny can)
876 - Switched all usage of LOGFONTA to more generic CharSet-driven
878 - FromLogFont: Switched to use charset-agnostic GdipCreateFontFromLogfont
879 * gdipStructs.cs: Dropped LOGFONTA and LOGFONTW and switched to
880 CharSet-driven LOGFONT structure (needed because of ToLogFont fix)
881 * gdipFunctions.cs: Switched GdipGetLogFont, GdipCreateFontFromLogfont and
882 CreateFontIndirect to use LOGFONT structure, set to be CharSet=Auto
883 (needed because of ToLogFont fix)
885 2006-02-18 Duncan Mak <duncan@novell.com>
887 * Graphics.cs (DrawBeziers): Patch from Alexander Olk to fix
888 possible IndexOutOfRangeException.
890 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
892 * Image.cs, Bitmap.cs: Removed unneeded casts
893 * Icon.cs: Fixed code to be 64bit safe
895 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
897 * Font.cs: Fixes 77407
899 2006-01-27 Sebastien Pouliot <sebastien@ximian.com>
901 * Font.cs: Ensure unmanaged memory is free correctly in ToLogFont
902 even if GDIPlus.CheckStatus throws an exception;
903 * Image.cs: Ensure unmanaged memory is free correctly even if
904 GDIPlus.CheckStatus throws an exception. Note: the SetPropertyItem use
905 case is unclear to me (and unimplemented in libgdiplus);
906 * Region.cs: Ensure unmanaged memory is free correctly in
907 GetRegionScans even if GDIPlus.CheckStatus throws an exception;
909 2006-01-27 Jordi Mas i Hernandez <jordimash@gmail.com>
911 * gdipFunctions.cs: New gdiplus imports
912 * Font.cs: Use gdiplus calls to get font height and size
914 2006-01-26 Sebastien Pouliot <sebastien@ximian.com>
916 * FontFamily.cs: Free the memory allocated with Marshal.AllocHGlobal.
917 * Region.cs: Updated TODO to reflect current status.
919 2006-01-24 Konstantin Triger <kostat@mainsoft.com>
921 * Font.jvm.cs, FontFamily.jvm.cs: use static container.
923 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
925 * Icon.cs: The code wrongly assumed that the stride for the icon
926 would be the same as the stride for the bitmap. This was causing
929 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
931 * Icon.cs: Reworked ToBitmap() method to not use Bitmap(Stream)
932 which when calling down to MS GDI+ will create an image
933 where neither GetPixel or Save can be used on.
935 2006-01-18 Sebastien Pouliot <sebastien@ximian.com>
937 * gdipFunctions.cs: Added declaration for GdipCreateRegionRgnData.
938 * Region.cs: Implemented .ctor(RegionData)
940 2006-01-13 Miguel de Icaza <miguel@novell.com>
942 * Region.cs: Revert the Region.cs check in GetHrgn as it was used
943 by our Windows.Forms implementation.
945 2006-01-11 Sebastien Pouliot <sebastien@ximian.com>
947 * Graphics.cs: Avoid creating bitmaps two times if both X and Y
948 default DPI are required (i.e. init both value in both cases).
949 * Region.cs: Added null check to match MS behaviour (exception type)
950 and avoid NRE (before CheckStatus is called). Added security demands
951 for unmanaged code on both FromHrgn and ReleaseHrgn (2.0) methods.
953 2005-12-22 Jonathan Chambers <jonathan.chambers@ansys.com>
955 * gdipFunctions.cs: Do not call GdiplusShutdown for
956 now as it causes a crash on MS GDI+.
958 2005-12-20 Konstantin Triger <kostat@mainsoft.com>
960 * Font.jvm.cs: charset support.
962 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
964 * Graphics.cs (Flush): Make sure nativeObject is not null
966 2005-12-14 Konstantin Triger <kostat@mainsoft.com>
968 * StrokeFactory.jvm.cs: create AdvancedStroke when have penTransform.
970 2005-12-13 Konstantin Triger <kostat@mainsoft.com>
972 * Bitmap.jvm.cs: Fix MakeTransparent.
974 2005-12-07 Jordi Mas i Hernandez <jordimash@gmail.com>
976 * Graphics.cs: Add new deephs support to CopyFromScreen
978 2005-12-07 Jordi Mas i Hernandez <jordimash@gmail.com>
980 * BufferedGraphicsManager.cs: Fixes signature
982 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
985 - Implemented FromLogFont
986 - Implemented ToLogFont
989 - Added GdipGetLogFontW method
990 - Specified charset for GdipGetLogFontA method
991 * gdipStructs.cs: Added LOGFONTW structure
993 2005-12-05 Gert Driesen <drieseng@users.sourceforge.net>
995 * BufferedGraphics.cs: Removed duplicate class. Set eol-style to
997 * BufferedGraphicsManager.cs: Removed duplicate class. Set eol-style
1000 2005-12-05 Jordi Mas i Hernandez <jordimash@gmail.com>
1002 * gdipFunctions.cs: DllExports need it to implement
1003 new Graphics.CopyFromScreen .Net 2.0 methods
1004 * IDeviceContext.cs: New .Net 2.0 interface
1005 * Color.cs: Fixes for new .Net 2.0 KnowColors
1006 * PointF.cs: New .Net 2.0 Add/Subtract methods
1007 * gdipStructs.cs: Structs need it for Graphics.CopyFromScreen
1008 * SystemBrushes.cs: New standard SystemBrushes for .Net 2.0
1009 * SizeF.cs: New .Net 2.0 Add/Subtract methods
1010 * FontConverter.cs: New .Net 2.0 fixes
1011 * SystemColors.cs: New standard SystemColors for .Net 2.0
1012 * SizeFConverter.cs: New .Net 2.0 class (based on SizeConverter)
1013 * CharacterRange.cs: : New .Net 2.0 methods
1014 * Size.cs: New .Net 2.0 Add/Subtract methods
1015 * SystemPens.cs: New standard SystemPens for .Net 2.0
1016 * Bitmap.cs: New .Net 2.0 methods
1017 * Region.cs: New .Net 2.0 methods
1018 * Brush.cs: New .Net 2.0 constructor
1019 * Icon.cs: New .Net 2.0 Constructors and methods
1020 * Point.cs: New .Net 2.0 Add/Subtract methods
1021 * BufferedGraphicsManager.cs: New .Net 2.0 class
1022 * Graphics.cs: New methods for .Net 2.0 and fixes
1023 * BufferedGraphics.cs: New .Net 2.0 class
1024 * Font.cs: New .Net 2.0 properties
1025 * Image.cs: New .Net 2.0 tag property
1026 * KnownColor.cs: New .Net 2.0 know colors
1027 * CopyPixelOperation.cs: New .Net 2.0 enum
1028 * SystemFonts.cs: New .Net 2.0 class
1029 * BufferedGraphicsContext.cs: New .Net 2.0 class
1031 2005-11-28 Konstantin Triger <kostat@mainsoft.com>
1033 * SystemIcons.jvm.cs: refactoring.
1035 2005-11-28 Konstantin Triger <kostat@mainsoft.com>
1037 * Icon.cs: TARGET_JVM changes.
1039 2005-11-17 Vladimir Krasnov <vladimirk@mainsoft.com>
1041 * Image.jvm.cs: fixed Save, flush output stream
1043 2005-11-17 Konstantin Triger <kostat@mainsoft.com>
1045 * StrokeFactory.jvm.cs, Pen.jvm.cs, Graphics.jvm.cs: performance - use BasicStroke when possible.
1047 2005-11-17 Vladimir Krasnov <vladimirk@mainsoft.com>
1049 * ColorConverter.cs: fixed ConvertFrom, to be able
1050 to convert from three digit notation color (#abc)
1052 2005-11-16 Konstantin Triger <kostat@mainsoft.com>
1054 * Bitmap.jvm.cs: open a correct stream.
1056 2005-11-16 Konstantin Triger <kostat@mainsoft.com>
1058 * FontFamily.jvm.cs, Font.jvm.cs: throw exception if invalid params.
1060 2005-11-16 Konstantin Triger <kostat@mainsoft.com>
1062 * FontFamily.jvm.cs: fix for custom font collection
1064 2005-11-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1066 * FontFamily.jvm.cs: fixed GetName
1068 2005-11-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1070 * Bitmap.jvm.cs: fixed InternalSave() error handling
1071 * Image.jvm.cs: fixed Save() error handling
1073 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1075 * FontFamily.jvm.cs: Refactoring.
1077 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1079 * Font.jvm.cs: Refactoring.
1081 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1083 * StringFormat.jvm.cs, Graphics.jvm.cs: DrawString,
1084 MeasureString support
1086 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1088 * FontFamily.jvm.cs: correctly initialize fontcollection
1090 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1092 * FontFamily.jvm.cs: DrawMargin, refactoring.
1094 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1096 * Graphics.jvm.cs, Pen.jvm.cs, AdvancedStroke.jvm.cs:
1097 Differentiate standard and AntiAlias stroking
1099 2005-11-10 Vladimir Krasnov <vladimirk@mainsoft.com>
1101 * Graphics.jvm.cs: added UnitConversion property
1102 * FontFamily.jvm.cs: refactoring
1103 * Font.jvm.cs: refactoring
1105 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
1108 - Implemented serialization constructor
1109 - Implemented GetObjectData()
1111 2005-11-01 Vladimir Krasnov <vladimirk@mainsoft.com>
1113 * StringFormat.jvm.cs: Refactoring
1115 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
1117 * Image.cs: Default format for MemoryBMP should be Png
1119 2005-10-27 Vladimir Krasnov <vladimirk@mainsoft.com>
1121 * Bitmap.jvm.cs: fixed InternalSave
1122 * Image.jvm.cs: fixed Save
1124 2005-10-27 Vladimir Krasnov <vladimirk@mainsoft.com>
1126 * Image.jvm.cs: fixed redolution properties
1128 2005-10-27 Vladimir Krasnov <vladimirk@mainsoft.com>
1130 * Bitmap.jvm.cs: fixed InternalSave, to remove alpha channel of saved jpeg
1131 fixed clone, Initialize
1133 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
1135 * Brush.cs: Don't delete the brush if the display handle is no longer
1136 valid, otherwise cairo will try to use the handle and crash and burn
1138 2005-10-23 Vladimir Krasnov <vladimirk@mainsoft.com>
1140 * Graphics.jvm.cs: DrawImage refactoring
1142 2005-10-23 Vladimir Krasnov <vladimirk@mainsoft.com>
1144 * Graphics.jvm.cs: Clipping refactoring
1145 fixed FillScaledShape, DrawShape, MeasureDraw, BeginContainer,
1146 ExcludeClip, IntersectClip, ResetClip, CombineClipArea, RestoreBaseClip,
1147 TranslateClip, VisibleClipBounds
1149 2005-10-21 Miguel de Icaza <miguel@novell.com>
1151 * Pen.cs: Add support for returning the Brush from Pens created
1152 with a color constructor.
1154 Plus: code style police, else does not go on its own line.
1156 * Graphics.cs: Add various ArgumentNull checks.
1158 2005-10-20 Konstantin Triger <kostat@mainsoft.com>
1160 * Image.jvm.cs: make Clone abstract
1162 2005-10-20 Konstantin Triger <kostat@mainsoft.com>
1164 * Font.jvm.cs: make fallbacks for GdiCharSet, GdiVerticalFont
1166 2005-10-19 Vladimir Krasnov <vladimirk@mainsoft.com>
1168 * Bitmap.jvm.cs: fixed InternalSave, ToBufferedImageFormat, Clone
1169 * PlainImage.jvm.cs: fixed Clone
1170 * Graphics.jvm.cs: fixed FillShape, Clear, FillScaledShape
1172 2005-10-19 Vladimir Krasnov <vladimirk@mainsoft.com>
1174 * Brush.jvm.cs: added InternalClone() method
1175 changed transformation methods access level
1176 * TextureBrush.jvm.cs: refactoring, fixed clone()
1178 2005-10-19 Vladimir Krasnov <vladimirk@mainsoft.com>
1180 * AdvancedStroke.jvm.cs: fixed createStrokedShape, check for transform
1181 matrix singularity added
1182 * Font.jvm.cs: implemetated ISerializable
1183 * Pen.jvm.cs: fixed DashPattern property,
1184 fixed GetNativeObject() dash pattern calculation
1186 2005-10-14 Jordi Mas i Hernandez <jordi@ximian.com>
1188 * SystemColors.cs: Fixes the Win32 light and lightlight colours
1190 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
1192 * SystemColors.cs: Fixes the Win32 system colors including the color
1193 name and the knownColor properties.
1195 2005-10-07 Peter Dennis Bartok <pbartok@novell.com>
1197 * FontFamily.cs: Use Marshal.PtrToStringUni to do the string
1198 conversion, it's less overhead than StringBuilder. (Part of the
1199 bugfix for #74871 and #75534)
1201 * gdipFunctions: Changed signature for GdipGetFamilyName to just
1202 have an IntPtr for the buffer
1204 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
1206 * Graphics.cs, FontFamily.cs: Calling GC.SuppressFinalize from Dispose,
1209 2005-09-29 Peter Dennis Bartok <pbartok@novell.com>
1211 * SystemColor.cs: Added code used to generate properties, updated with
1214 2005-09-29 Peter Dennis Bartok <pbartok@novell.com>
1216 * SystemColor.cs: Make internal names predictable to allow scripted
1217 generation of color table
1219 2005-09-28 Peter Dennis Bartok <pbartok@novell.com>
1221 * Color.cs(UpdateKnownColor): Ensure knownColors exists before trying
1224 2005-09-27 Peter Dennis Bartok <pbartok@novell.com>
1227 - Changed properties to return colors from fields. This allows
1228 updating the colors via reflection, for example from MWF themes.
1229 - Added code to retrieve system colors via Win32 GetSysColors if
1230 running on Win32, this makes us compatible with Microsoft instead
1231 of returning static colors on Win32. Unix platforms still will
1232 use the static colors
1233 * Color.cs: Added UpdateKnownColor() method to allow updating of
1234 the KnownColors array
1236 2005-09-26 Kornél Pál <kornelpal@hotmail.com>
1238 * Graphics.cs: DrawImage: imageAttr can be null. Fixed to pass IntPtr.Zero
1239 when imageAttr is null.
1241 2005-09-26 Vladimir Krasnov <vladimirk@mainsoft.com>
1243 * Brush.jvm.cs: fixed transform methods, createContext
1244 * TextureBrush.jvm.cs: implemetated transform, WrapMode, ctors
1246 2005-09-21 Vladimir Krasnov <vladimirk@mainsoft.com>
1248 * Bitmap.jvm.cs: fixed Clone, InternalSave, Initialize, ctor refactoring, remarks refactoring
1249 * Image.jvm.cs: fixed GetFrameCount, GetThumbnailImage, SelectActiveFrame, remarks refactoring
1250 * PlainImage.jvm.cs: added metadata props, fixed ctor
1251 * PlainImageCollection.jvm.cs: fixed class access
1253 2005-09-21 Jordi Mas i Hernandez <jordi@ximian.com>
1255 * Graphics.cs: Fixes exception type at FromImage method
1257 2005-09-20 Vladimir Krasnov <vladimirk@mainsoft.com>
1259 * Graphics.jvm.cs: bitmap resolution fix in DrawImage
1261 2005-09-20 Vladimir Krasnov <vladimirk@mainsoft.com>
1263 * Graphics.jvm.cs: fixed DrawImage
1265 2005-09-19 Miguel de Icaza <miguel@novell.com>
1267 * Graphics.cs: Removed restriction on the images that can be
1268 loaded. Indexed images *can* be loaded
1270 2005-09-18 Miguel de Icaza <miguel@novell.com>
1272 * Image.cs: introduce a workaround that catches errors on systems
1273 that lack GDI+ as this is being triggered too easily when we
1274 enumerate attributes on loaded classes.
1276 The real bug to fix is #76062.
1278 2005-09-17 Kornél Pál <kornelpal@hotmail.com>
1280 * Image.cs: Implemented FromHbitmap.
1282 2005-09-16 Sebastien Pouliot <sebastien@ximian.com>
1284 * gdipFunctions.cs: Add [SuppressUnmanagedCodeSecurity] attributes so
1285 the JIT won't add demands for UnmanagedCode.
1286 * carbonFunctions.cs: Add [SuppressUnmanagedCodeSecurity] attributes
1287 so the JIT won't add demands for UnmanagedCode on Mac OSX.
1288 * Bitmap.cs: Added LinkDemand for UnmanagedCode on GetHbitmap
1289 (+ overloads) and GetHicon methods.
1290 * Graphics.cs: Added LinkDemand for UnmanagedCode on FromHdcInternal,
1291 FromHwndInternal and ReleaseHdcInternal methods (which are all public
1292 despite their names).
1294 2005-09-15 Konstantin Triger <kostat@mainsoft.com>
1296 * Graphics.jvm.cs: text transform, headless session
1298 2005-09-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1300 * Bitmap.jvm.cs: native object refactoring
1301 * Image.jvm.cs: native object refactoring
1302 * Graphics.jvm.cs: fixed access to image native object
1303 * TextureBrush.jvm.cs: fixed access to image native object
1304 * Added PlainImage.jvm.cs, PlainImageCollection.jvm.cs
1306 2005-09-14 Geoff Norton <gnorton@customerdna.com>
1308 * carbonFunctions.cs: Add GetCGContextForNSView for Cocoa# integration
1309 * Graphics.cs: Check GDIPlus.UseCocoaDrawable for Cocoa# integration
1310 * gdipFunctions.cs: Set UseCocoaDrawable depending on the environment variable MONO_GDIP_USE_COCOA_BACKEND
1312 2005-09-14 Konstantin Triger <kostat@mainsoft.com>
1314 * Graphics.jvm.cs: transform, container, thin pen
1316 2005-09-12 Konstantin Triger <kostat@mainsoft.com>
1318 * AdvancedStroke.jvm.cs: constants for pen fitting calculations
1319 * Pen.jvm.cs: fixing transform, pen fitting
1321 2005-09-12 Konstantin Triger <kostat@mainsoft.com>
1323 * Region.jvm.cs: IsVisible is about intersection
1325 2005-09-12 Gert Driesen <drieseng@users.sourceforge.net>
1327 * ImageConverter.cs: Use default TypeDescriptor implementation of
1330 2005-09-11 Konstantin Triger <kostat@mainsoft.com>
1332 * Graphics.jvm.cs: fixing clipping with rotate transform
1334 2005-09-11 Konstantin Triger <kostat@mainsoft.com>
1336 * Region.jvm.cs: default region is infinite
1338 2005-09-10 Konstantin Triger <kostat@mainsoft.com>
1340 * Graphics.jvm.cs: fixing clipping stuff
1342 2005-09-07 Vladimir Krasnov <vladimirk@mainsoft.com>
1344 * Bitmap.jvm.cs: fixed bitamp accessors
1345 * Image.jvm.cs: fixed image accessors
1347 2005-09-07 Konstantin Triger <kostat@mainsoft.com>
1348 * AdvancedStroke.jvm.cs: fix matrix translate
1349 * Graphics.jvm.cs: fix matrix concatenation order
1351 2005-09-07 Vladimir Krasnov <vladimirk@mainsoft.com>
1353 * Brush.jvm.cs: added transform methods
1355 2005-09-06 Konstantin Triger <kostat@mainsoft.com>
1357 * StrokeFactory.jvm.cs, AdvancedStroke.jvm.cs, Pen.jvm.cs:
1358 implementing fitting, output transform
1359 * Graphics.jvm.cs: fixing DrawXXX, Fill, Clipping, Containers
1361 2005-09-06 Konstantin Triger <kostat@mainsoft.com>
1363 * ColorTranslator.cs: perform case insensitive check
1365 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
1367 * gdipFunctions.cs: define new functions
1368 * Bitmap.cs: fixes image loading and exceptions
1369 * Image.cs: fixes image loading and exceptions
1371 Thanks Kornél Pál for its help
1373 2005-08-30 Vladimir Krasnov <vladimirk@mainsoft.com>
1375 * Brush.jvm.cs: added brush transform field
1377 2005-08-28 Vladimir Krasnov <vladimirk@mainsoft.com>
1379 * Graphics.jvm.cs: fixed .ctor (InterpolationMode)
1381 2005-08-28 Konstantin Triger <kostat@mainsoft.com>
1383 * StrokeFactory.jvm.cs, AdvancedStroke.jvm.cs, Pen.jvm.cs
1384 Graphics.jvm.cs: adjust stroke before widening
1386 2005-08-28 Vladimir Krasnov <vladimirk@mainsoft.com>
1388 * Graphics.jvm.cs: Implemented BeginContainer, EndContainer,
1391 2005-08-26 Gert Driesen <drieseng@users.sourceforge.net>
1393 * PointConverter.cs: Use Int32Converter instead of Int32.Parse. First
1394 convert string to int before checking number of components.
1395 * RectangleConverter.cs: same.
1396 * SizeConverter.cs: same.
1398 2005-08-26 Gert Driesen <drieseng@users.sourceforge.net>
1400 * ColorConverter.cs: Use Int32Converter instead of Int32.Parse to
1401 convert individual components. Special case string containing hex
1402 prefix. Convert components before checking count.
1404 2005-08-25 Marek Safar <marek.safar@seznam.cz>
1406 * gdipFunctions.cs: GetIconInfo new user32 method.
1407 GdipGetDC uses IntPtr.
1409 * gdipStructs.cs: Defined IconInfo struct.
1411 * Graphics.cs: FromImage throws exception when image has an indexed format.
1414 * Icon.cs: Implemented FromHandle, Dispose.
1416 2005-05-24 Michael Hutchinson <m.j.hutchinson@gmail.com>
1418 * ToolboxBitmapAttribute.cs: Implemented retrieving the image
1420 2005-08-23 Vladimir Krasnov <vladimirk@mainsoft.com>
1422 * Graphics.jvm.cs: Fixed ResetTransform, TransfromPoints
1423 Fixed SmoothingMode property
1425 2005-08-23 Jordi Mas i Hernandez <jordi@ximian.com>
1427 * Brushes: Do not create the objects every time that they are requested
1428 as in Pens we create and cache them only once when need it. This also
1429 fixes the Equals method between two objects requested to Brushes
1431 2005-08-22 Jordi Mas i Hernandez <jordi@ximian.com>
1433 * SolidBrush.cs: Fixes Dispose to avoid non-disposing some objects
1434 * Brush.cs Fixes Dispose to avoid non-disposing some objects
1435 * Pen.cs: Fixes Dispose to avoid non-disposing some objects
1436 * Region.cs: Dipose always frees if the resource was allocated
1438 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
1440 * gdipFunctions.cs: Before calling GdiplusShutdown we make that all of handles
1441 from gdiplus have been released
1443 2005-08-18 Vladimir Krasnov <vladimirk@mainsoft.com>
1445 * Pen.jvm.cs: Fixed DashSpacing in createStrokedShape
1446 * Color.cs: Fixed java NativeObject property
1447 * Image.jvm.cs: Fixed Save method
1449 2005-08-16 Andrew Skiba <andrews@mainsoft.com>
1451 * Icon.jvm.cs: match Bitmap internal constructor change
1452 * Image.jvm.cs: use ImageCodecInfo.Clsid as primary format id, not ImageFormat
1453 * Bitmap.jvm.cs: started changes for supporting ImageCodecInfo
1455 2005-08-16 Gert Driesen <drieseng@users.sourceforge.net>
1457 * Color.cs: To match MS.NET, throw ArgumentException instead of
1458 ArgumentOutOfRangeException when color is not between 0 and 255.
1459 * RectangleConverter.cs: Take culture into account when converting
1460 to/from string. Use culture's ListSeparator as separator character.
1462 2005-08-16 Gert Driesen <drieseng@users.sourceforge.net>
1464 * Color.cs: Fixed line endings. Set eol-style to native.
1465 * ColorConverter.cs: Fixed line endings. Set eol-style to native.
1466 * Size.cs: Set eol-style to native.
1467 * SizeF.cs: Use current culture in ToString(), set eol-style to native.
1468 * SizeConverter.cs: Take culture into account when converting to/from
1469 string. Set eol-style to native.
1470 * Point.cs: Fixed line endings. Set eol-style to native.
1471 * PointF.cs: Use current culture in ToString(), set eol-style to native.
1472 * PointConverter.cs: Take culture into account when converting to/from
1473 string. Set eol-style to native.
1474 * ImageFormatConverter.cs: Fixed line endings. Set eol-style to
1476 * RectangleConverter.cs: Fixed line endings. Set eol-style to native.
1478 2005-08-16 Vladimir Krasnov <vladimirk@mainsoft.com>
1480 * Graphics.jvm.cs: Fixed InterpolationMode property
1482 2005-08-15 Vladimir Krasnov <vladimirk@mainsoft.com>
1484 * Graphics.jvm.cs: Fixed DrawImage
1486 2005-08-14 Gert Driesen <drieseng@users.sourceforge.net>
1488 * ColorConverter.cs: Use TextInfo.ListSeparator as separator, as this
1489 appears to be what MS.NET uses.
1491 2005-08-14 Gert Driesen <drieseng@users.sourceforge.net>
1493 * Point.cs: Use invariant culture for converting numbers to string.
1497 2005-08-14 Gert Driesen <drieseng@users.sourceforge.net>
1499 * Color.cs: Fixed ToString for uninitialized color.
1500 * ColorConverter.cs: Support conversion from whitespace-only string to
1501 Color.Empty. Fixed conversion from Color.Empty and known colors to
1504 2005-08-14 Konstantin Triger <kostat@mainsoft.com>
1506 * Graphics.jvm.cs: Initial properties implementation
1508 2005-08-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1510 * Graphics.jvm.cs: DrawImage refactoring
1512 2005-08-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1514 * Graphics.jvm.cs: Implemented PageUnit, PageScale.
1515 Added UpdateInternalTransform
1516 Fixed DrawImage, Transform, ConcatenateTransform
1518 2005-08-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1520 * Icon.jvm.cs: Internal constructor from bitmap
1521 * Added SystemIcons.jvm.cs with implementation of SystemIcons
1523 2005-08-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1525 * Region.jvm.cs: Fixed GetBounds, IsVisible, IsEmpty, IsInfinite, Equals
1526 (all methods that use Graphics object)
1528 2005-08-11 Konstantin Triger <kostat@mainsoft.com>
1530 * Graphics.jvm.cs: Refactoring
1532 2005-08-11 Konstantin Triger <kostat@mainsoft.com>
1534 * Graphics.jvm.cs: Fixed Clear, Refactoring
1536 2005-08-11 Konstantin Triger <kostat@mainsoft.com>
1538 * Graphics.jvm.cs: Fixed FillClosedCurve
1540 2005-08-10 Zoltan Varga <vargaz@freemail.hu>
1542 * Rectangle.cs (Intersect): Return a non-empty rectangle if the two
1543 rectangles touch each other.
1545 2005-08-09 Konstantin Triger <kostat@mainsoft.com>
1547 * Graphics.jvm.cs: Fixed DrawCurve.
1549 2005-08-09 Konstantin Triger <kostat@mainsoft.com>
1551 * StrokeFactory.jvm.cs: use correct stroke
1553 2005-08-09 Konstantin Triger <kostat@mainsoft.com>
1555 * Added AdvancedStoke.jvm.cs and StrokeFactory.jvm.cs
1558 2005-08-09 Andrew Skiba <andrews@mainsoft.com>
1560 * FontConverter.cs: exclude not implemented destructor from TARGET_JVM
1562 2005-08-09 Andrew Skiba <andrews@mainsoft.com>
1564 * ColorConverter.cs, ColorTranslator.cs: fixes to pass tests
1567 2005-08-08 Konstantin Triger <kostat@mainsoft.com>
1569 * Graphics.jvm.cs: Refactoring
1571 2005-08-08 Vladimir Krasnov <vladimirk@mainsoft.com>
1573 * Graphics.jvm.cs: Fixed DrawPolygon
1575 2005-08-08 Konstantin Triger <kostat@mainsoft.com>
1577 * Graphics.jvm.cs: Refactoring
1578 * Pen.jvm.cs: setting awt.Stroke as a base
1580 2005-08-07 Konstantin Triger <kostat@mainsoft.com>
1582 * Graphics.jvm.cs: Refactoring
1584 2005-08-07 Vladimir Krasnov <vladimirk@mainsoft.com>
1586 * Graphics.jvm.cs: Fixed DrawLines, DrawPolygon to use GraphicsPath
1588 2005-08-07 Andrew Skiba <andrews@mainsoft.com>
1590 * Rectangle.cs: Intersect fixed
1591 * RectandleF.cs: Intersect and Inflate fixed
1593 2005-08-07 Andrew Skiba <andrews@mainsoft.com>
1595 * Point.cs: Produce same ToString result as dotnet
1597 2005-08-07 Andrew Skiba <andrews@mainsoft.com>
1599 * Color.cs: GetHashCode is affected by Name, too
1601 2005-08-07 Vladimir Krasnov <vladimirk@mainsoft.com>
1603 * Pen.jvm.cs: Fixed ctor, LineCap, SetLineCap
1605 2005-08-07 Vladimir Krasnov <vladimirk@mainsoft.com>
1607 * Graphics.jvm.cs: Fixed DrawLines, DrawPolygon
1609 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1611 * SolidBrush.jvm.cs: fix a typo
1613 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1615 * Image.jvm.cs, StringFormat.jvm.cs, FontFamily.jvm.cs, Bitmap.jvm.cs,
1616 Pen.jvm.cs, Region.jvm.cs, Brush.jvm.cs, Graphics.jvm.cs, TextureBrush.jvm.cs,
1617 Font.jvm.cs: Added TARGET_JVM implementation
1619 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1621 * Rectangle.cs, RectangleF.cs: TARGET_JVM - Add NativeObect property
1623 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1625 * BasicShape.jvm.cs: Added TARGET_JVM specific class
1627 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1629 * Icon.jvm.cs, SystemColors.jvm.cs: Added TARGET_JVM implementations
1631 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1633 * ColorTranslator.cs: (GH merge) recognise HTML system colors
1635 2005-08-02 Andrew Skiba <andrews@mainsoft.com>
1637 * SolidBrush.jvm.cs: added TARGET_JVM implementation of this class
1639 2005-08-02 Andrew Skiba <andrews@mainsoft.com>
1641 * Color.cs: TARGET_JVM - NativeObject property
1643 2005-07-27 Andrew Skiba <andrews@mainsoft.com>
1645 * Color.cs: Fixes equality operators, change isXXXcolor booleans into flags enum.
1647 2005-07-27 Jordi Mas i Hernandez <jordi@ximian.com>
1649 * RectangleF.cs: Fixes IsEmpty logic
1651 2005-06-23 Jordi Mas i Hernandez <jordi@ximian.com>
1653 * Graphics.cs: implements FromHwndInternal
1656 2005-06-13 Peter Bartok <pbartok@novell.com>
1658 * Icon.cs(ToBitmap): If the icon is not 32bits, create the bitmap
1659 through an intermediary step, which turns it into a 32bit version.
1662 2005-06-13 Kornél Pál <kornelpal@hotmail.com>
1664 * ComIStreamMarshaler.cs: Dispose releases managed objects as well,
1665 removed some unnecessary code
1666 * ComIStreamWrapper.cs: Reworked Seek method to proper support of
1667 positions beyond the size of stream
1669 2005-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1671 * Font.cs: fix platform checks.
1673 2005-06-08 Jordi Mas i Hernandez <jordi@ximian.com>
1676 - Fixes is empty method IsEmpty logic
1677 - Fixes Contains method logic
1678 - Fixes IntersectsWith logic
1681 - Fixes is empty method IsEmpty logic
1682 - Fixes Contains method logic
1683 - Fixes IntersectsWith logic
1685 2005-05-28 Kornél Pál <kornelpal@hotmail.com>
1687 * ComIStreamMarshaler.cs: GC.SuppressFinalize(this) is not called in
1688 destructors. Some methods renamed. Removed unnecessary variables.
1690 2005-05-25 Jonathan Gilbert <logic@deltaq.org>
1692 * Image.cs: Added retrieveGDIPalette () and storeGDIPalette ()
1693 and modified the Palette property to call them. This non-
1694 persistent behaviour was discovered by trial and error with
1695 Microsoft's implementation. In fact, the Palette property
1696 does not behave like a property at all! It is the only way an
1697 instance of System.Drawing.Imaging.ColorPalette can be created,
1698 and it reflects a backing store that is only updated when the
1699 property 'set' method is called. Also updated Clone () since
1700 the palette is no longer cached at image load time.
1701 * Image.cs: Added IsIndexedPixelFormat () in the same vein as
1702 Image::IsAlphaPixelFormat and Image::IsCanonicalPixelFormat.
1703 As such a function is not listed in MSDN nor given in
1704 Microsoft's implementation, I have made it a private function
1705 within the class that uses it.
1707 2005-05-24 Kornél Pál <kornelpal@hotmail.com>
1709 * Graphics.cs: Revised DrawString methods
1711 2005-03-22 Peter Bartok <pbartok@novell.com>
1713 * Graphics.cs: Fixed bug #74762, DrawString was crashing on s.Length
1716 2005-05-20 Kornél Pál <kornelpal@hotmail.com>
1718 * Image.cs: Uses MemoryStream wrapping on all platforms if needed
1719 * gdipFunctions.cs: Modified conditional compilation syntax
1720 * ComIStreamWrapper.cs: Modified conditional compilation syntax
1721 * ComIStreamMarshaler.cs: Modified conditional compilation syntax
1723 2005-05-18 Marek Safar <marek.safar@seznam.cz>
1725 * Bitmap.cs: Add null check into ctor.
1727 2005-05-16 Jordi Mas i Hernandez <jordi@ximian.com> <kornelpal@hotmail.com>
1729 * gdipFunctions.cs: Kornél Pál's IStream bug fixing
1730 * ComIStreamWrapper.cs: Kornél Pál's IStream bug fixing
1731 * ComIStreamMarshaler.cs: Kornél Pál's IStream bug fixing
1733 2005-05-14 Jordi Mas i Hernandez <jordi@ximian.com> <kornelpal@hotmail.com>
1735 * Bitmap.cs: Kornél Pál's Bitmap class ctor and MakeTransparent leak fixes
1737 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
1739 * gdipFunctions.cs: add GdipLoadImageFromStream and GdipSaveImageToStream
1740 * ComIStreamWrapper.cs: Kornel Pal COM Stream for Win32
1741 * ComIStreamMarshaler.cs: Kornel Pal COM Stream for Win32
1742 * Image.cs: uses new Win32 Stream functions when need it
1744 2005-05-10 Juraj Skripsky <juraj@hotfeet.ch>
1746 * Color.cs: Fix GetSaturation() again and remove
1749 2005-05-10 Juraj Skripsky <juraj@hotfeet.ch>
1751 * Color.cs: New, correct implementations for GetHue(),
1752 GetBrightness() and GetSaturation().
1754 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
1756 * gdipFunctions.cs: Use PlatformID.Unix under NET_2_0.
1757 * Graphics.cs: Use PlatformID.Unix under NET_2_0.
1758 * Image.cs: Use PlatformID.Unix under NET_2_0.
1760 2005-05-05 Miguel de Icaza <miguel@novell.com>
1762 * Bitmap.cs, Icon.cs (constructor): Use
1763 GetManifestResourceStream(Type,string) in the constructor that
1766 2005-04-27 Lluis Sanchez Gual <lluis@novell.com>
1768 * PointF.cs: Make serialization compatible with MS.
1770 2005-04-10 Geoff Norton <gnorton@customerdna.com>
1774 Use CGContextSynchronize instead of CGContextFlush. This saves
1775 on average 20000 ticks per drawing operation.
1777 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
1779 * Color.cs: take into account the name color in == and != operators
1780 * Font.cs: Use Equals instead of == to compare the family name
1782 - Removes generic fontfamilies cache (done at libgdiplus level)
1783 - Fixes Equals method
1785 2005-03-30 Jordi Mas i Hernandez <jordi@ximian.com>
1787 * Pen.cs: remove locks. They are done at gdiplus level
1788 * Brush.cs: remove locks. They are done at gdiplus level
1789 * Image.cs: remove locks. They are done at gdiplus level
1791 2005-03-30 Rogério Pereira Araújo <rogerio.araujo@gmail.com>
1793 * Icon.cs: Finished Icon(Type, String) ctor
1795 2005-03-23 Jordi Mas i Hernandez <jordi@ximian.com>
1797 * gdipFunctions.cs: fixes GdipGetImagePalette signature
1798 * Image.cs: Implements Palette property using gdiplus
1800 2005-03-17 Peter Bartok <pbartok@novell.com>
1803 - Changed P/Invoke signature for GdipLoadImageFromDelegate_linux()
1804 method, now includes a get header delegate
1805 - Added StreamGetHeaderImpl method, to allow libgdiplus to determine
1806 the image type even on non-seekable streams
1807 - Fixed StreamGetBytesImpl to consider the bytes already retrieved
1808 via StreamGetHeaderImpl
1809 * Image.cs: Fixed call to GdipLoadImageFromDelegate_linux() to include
1810 the new StreamGetHeader delegate
1812 2005-03-15 Jordi Mas i Hernandez <jordi@ximian.com>
1814 * Pen.cs: Fixes dispose method to allow to be called multiple times
1815 * Graphics.cs: matrix are saved and restored at gdiplus level
1817 2005-02-24 Geoff Norton <gnorton@customerdna.com>
1819 * gdipFunctions.cs: Cache the delegates in the GdiPlusStreamHelper
1820 so they dont get garbage collected before use.
1822 2005-02-11 Peter Bartok <pbartok@novell.com>
1824 * gdipFunctions.cs: Fixed prototype to match previous checkin
1826 2005-02-11 Peter Bartok <pbartok@novell.com>
1828 * Graphics.cs (FromImage): Fixed type of graphics to be IntPtr (since
1829 it really is a pointer)
1831 2005-02-10 Geoff Norton <gnorton@customerdna.com>
1833 * Icon.cs: Implement GetObjectData ()
1834 * Image.cs: Implement GetObjectData ()
1836 2005-02-09 Geoff Norton <gnorton@customerdna.com>
1838 * Icon.cs: Implement deserializer
1839 * Bitmap.cs: Implement deserializer
1841 2005-02-06 Ben Maurer <bmaurer@ximian.com>
1843 * Brushes.cs: Kill the static ctor here, it has tons of code bloat.
1845 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
1847 * Region.cs: revert Jackson's patch and fix this at libgdiplus level
1849 2005-02-02 Jackson Harper <jackson@ximian.com>
1851 * Region.cs: The default region constructor creates and infinite
1852 region, not an empty one.
1854 2005-01-27 Peter Bartok <pbartok@novell.com>
1856 * Color.cs (GetBrightness, GetSaturation, GetHue): Fixed calculations
1857 of HSV numbers. Previous implementation returned wrong numbers and NaN
1858 on achromatic colors
1860 2005-01-27 Lluis Sanchez Gual <lluis@novell.com>
1862 * PointConverter.cs, ImageFormatConverter.cs, RectangleConverter.cs,
1863 SizeConverter.cs, ColorConverter.cs, FontConverter.cs
1864 : Implemented support for InstanceDescriptor.
1866 2005-01-26 Peter Bartok <pbartok@novell.com>
1868 * Icon.cs (ToBitmap): Now sets transparency in according to
1871 2004-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
1873 * gdipFunctions.cs: Fixes GdipGet* function signatures
1874 * FontFamily.cs: Fixes GdipGet* function calls
1875 * Font.cs: Fixes ToString method
1877 2004-01-17 Jordi Mas i Hernandez <jordi@ximian.com>
1879 * Graphics.cs: calls XCloseDisplay on X11 when need it
1880 * gdipFunctions.cs: calls XCloseDisplay on X11 when need it
1882 2004-12-27 Zoltan Varga <vargaz@freemail.hu>
1884 * gdipFunctions.cs Image.cs: Fix marshalling of arrays on amd64.
1886 2004-12-16 Peter Bartok <pbartok@novell.com>
1888 * Graphics.cs (GetHdc): Removed Wine assumptions, the handle is now
1889 equivalent to the gdi+ native object
1891 * Font.cs (GetHfont): Removed Wine assumptions, the handle is now
1892 equivalent to the gdi+ native object
1894 2004-12-09 Geoff Norton <gnorton@customerdna.com>
1896 * carbonFunctions.cs: New carbon functions/structures
1897 * Graphics.cs: Update FromHwnd to work without being in the carbon eventing loop
1899 2004-12-08 Geoff Norton <gnorton@customerdna.com>
1901 * Graphics.cs: Drop FromHwndWithSize; we can't change the public API
1902 Add Quartz support to FromHwnd marshalling a struct back with the ptr/width/height.
1904 2004-12-07 Geoff Norton <gnorton@customerdna.com>
1906 * Graphics.cs: Add FromHwndWithSize for the MWF/Quartz backend
1907 * gdipFunctions.cs: Add the quartz dllimport into libgdiplus
1909 2004-12-06 Miguel de Icaza <miguel@ximian.com>
1911 * FontFamily.cs: This one is static.
1913 2004-11-25 Ravindra <rkumar@novell.com>
1915 * gdipFunctions.cs (GdipCreateFontFromLogfontA): Changed return
1916 type from int to Status type.
1918 2004-11-25 Marek Safar <marek.safar@seznam.cz>
1920 * Image.cs: Add CheckStatus to SaveAdd.
1922 2004-11-22 Ravindra <rkumar@novell.com>
1924 * Graphics.cs: Fixed null values handling in all overloads of
1925 MeasureString method.
1927 2004-11-18 Ravindra <rkumar@novell.com>
1929 * gdipFunctions.cs: Removed the .so extension from a DllImport
1932 2004-10-27 Jordi Mas i Hernandez <jordi@ximian.com>
1934 * gdipFunctions.cs: calls GdiplusShutdown to propery signal GDI+
1937 2004-11-03 Miguel de Icaza <miguel@ximian.com>
1939 * TextureBrush.cs (Clone): While cloning, it is not enough to let
1940 GDIPlus clone the underlying data, we must alos clone the managed
1943 * Pen.cs (Dispose): Set the nativeObject to IntPtr.Zero to catch
1944 errors in the future, set the lock on the object before doing any
1945 other tests, not after.
1947 (Clone): While cloning, it is not enough to let
1948 GDIPlus clone the underlying data, we must alos clone the managed
1951 * Brush.cs (Dispose): Set the nativeObject to IntPtr.Zero to catch
1952 errors in the future.
1954 Set the lock in the object before checkign disposed.
1956 * SolidBrush.cs (Clone): While cloning, it is not enough to let
1957 GDIPlus clone the underlying data, we must alos clone the managed
1960 (Dispose): Set the nativeObject to IntPtr.Zero to catch
1961 errors in the future.
1963 2004-10-28 Ravindra <rkumar@novell.com>
1965 * gdipFunctions.cs: Added checks for null stream in the
1966 StreamHelper internal class.
1967 * Icon.cs: Removed an ugly hack that used temp files in
1968 ToBitmap () method. We use MemoryStream instead.
1970 2004-10-27 Jordi Mas i Hernandez <jordi@ximian.com>
1972 * Font.cs: fixes bug 66533
1974 2004-10-22 Jordi Mas i Hernandez <jordi@ximian.com>
1976 * Bitmap.cs, Font.cs FontFamily.cs Graphics.cs Region.cs
1977 SolidBrush.cs StringFormat.cs TextureBrush.cs: removes the
1978 lock operations after conversation with Miguel. Do not really
1981 2004-10-22 Jordi Mas i Hernandez <jordi@ximian.com>
1983 * Bitmap.cs: Fixes MakeTransparent problem with 24bbps
1985 2004-10-19 Jordi Mas i Hernandez <jordi@ximian.com>
1987 * Bitmap.cs: Fixes MakeTransparent method
1989 2004-10-13 Ravindra <rkumar@novell.com>
1991 * Graphics.cs: Moved the initialization of 'use_x_drawable'
1992 member out of private constructor to class initialization.
1993 So that, we get it right even if Graphics is not instantiated.
1994 This fixes the problem we face (otherwise) when we make first
1995 call to Graphics.FromHwnd () method.
1997 2004-10-08 Ravindra <rkumar@novell.com>
1999 * Image.cs: Suppress finalization in Dispose () method.
2001 2004-10-04 Ravindra <rkumar@novell.com>
2003 * gdipFunctioncs.cs: Fix from Alois for bug #67383.
2005 2004-09-29 Jackson Harper <jackson@ximian.com>
2007 * Graphics.cs: Use FromHdcInternal to set the X display
2008 handle. Add a flag to check if we are on unix so we aren't calling
2009 Environment.OSVersion.Platform all the time. Mad props to Peter
2012 2004-09-17 Marek Safar <marek.safar@seznam.cz>
2014 * Font.cs (FromHfont, ToHfont): Fixed windows implementation.
2015 ToLogFont: Implemented.
2017 * gdipFunctions.cs: GdipCreateFromHDC changed int to IntPtr to
2019 GdipCreateFontFromLogfontA: A new extern call.
2021 2004-09-13 Ravindra <rkumar@novell.com>
2023 * Graphics.cs: MSDN says that using image width and height gives
2024 better performance, hence we are using image width and height to
2025 avoid autoscaling in DrawImageUnscaled.
2027 2004-09-10 Ravindra <rkumar@novell.com>
2029 * Graphics.cs: Implemented DrawIcon methods and fixed
2030 DrawImageUnscaled method implementation.
2032 2004-08-21 Jackson Harper <jackson@ximian.com>
2034 * ImageAnimator.cs: Run animator as a background thread so we do
2037 2004-08-21 Ravindra <rkumar@novell.com>
2039 * gdipFunctions.cs: Modified exception message to include the case
2040 of missing required libraries for different formats.
2042 2004-08-10 Jackson Harper <jackson@ximian.com>
2044 * SystemColors.cs: Make Highlight colour match colour from windows
2045 classic color scheme.
2047 2004-07-30 Ravindra <rkumar@novell.com>
2049 * Font.cs: Fixed Height property implementation and implemented
2050 GetHeight method and its overloads.
2052 2004-07-29 Sanjay Gupta <gsanjay@novell.com>
2054 * gdipFunctions.cs: Corrected signature of GdipGetPropertyItem
2055 P/Invoke function for Image.
2056 * Image.cs: Implemented GetPropertyItem() and SetPropertyItem() method.
2058 2004-07-29 Sanjay Gupta <gsanjay@novell.com>
2060 * gdipFunctions.cs: Corrected signatures of GdipGetPropertySize and
2061 GdipGetAllPropertyItems P/Invoke function for Image.
2062 * gdipStructs.cs: Corrected MarshalTo() method of GdipPropertyItem.
2063 * Image.cs: Corrected implementation of PropertyItems property.
2065 2004-07-29 Sanjay Gupta <gsanjay@novell.com>
2067 * gdipFunctions.cs: Corrected signature of GdipGetPropertyIdList
2068 P/Invoke function for Image.
2069 * Image.cs: Changed implementation of PropertyIdList property.
2071 2004-07-28 Sanjay Gupta <gsanjay@novell.com>
2073 * gdipStructs.cs: Implementing PropertyItem property in Image.cs.
2074 * Image.cs: Implemented PropertyItems and PropertyIdList properties.
2076 2004-07-21 Ravindra <rkumar@novell.com>
2078 * gdipFunctions.cs: Corrected signatures of GdipPathIterCopyData and
2079 GdipPathIterEnumerate P/Invoke functions for GraphicsPathIterator.
2081 2004-07-21 Jordi Mas i Hernandez <jordi@ximian.com>
2083 * Graphics.cs: fixes MeasureCharacterRanges function. It was completely wrong.
2084 * StringFormat.cs: MeasurableCharacterRanges should be passed to GDI+
2085 * gdipFunctions.cs: new GDI function calls
2087 2004-07-16 Ravindra <rkumar@novell.com>
2089 * gdipFunctions.cs: Added P/Invokes for GraphicsPathIterator.
2091 2004-07-15 Ravindra <rkumar@novell.com>
2093 * gdipFunctions.cs: Removed GdipGetPathData P/Invoke. It is redundant.
2095 2004-07-13 Ravindra <rkumar@novell.com>
2097 * gdipFunctions.cs: Removed GdipGetPathGradientRectI P/Invoke.
2098 This was redundant. It was kept in previous checkin to avoid
2101 2004-07-13 Ravindra <rkumar@novell.com>
2103 * gdipFunctions.cs: Added some P/Invokes for PathGradientBrush.
2105 2004-07-09 Peter Bartok <pbartok@novell.com>
2106 * Graphics.cs: Added support required for new managed SWF library
2107 * gdipFunctions.cs: Added XOpenDisplay definition/import
2109 2004-07-02 Jordi Mas i Hernandez <jordi@ximian.com>
2111 * gdipFunctions.cs: fixes bug 61050
2113 2004-06-24 Sanjay Gupta <gsanjay@novell.com>
2115 * ImageAnimator.cs: Rewrote complete implementation.
2117 2004-06-24 Sanjay Gupta <gsanjay@novell.com>
2119 * gdipFunctions.cs: Corrected issue in GdiPlusStreamHelper class.
2120 If read function was called after seek function call, the
2121 implementation was returning data from bytes already peeked and
2122 not from the new position in stream, which we have seeked.
2124 2004-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
2126 * Graphics.cs: added MeasureString wrappers
2128 2004-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
2130 * Graphics.cs, gdipFunctions.cs: define and use GdipSetVisibleClip_linux
2132 2004-06-20 Jordi Mas i Hernandez <jordi@ximian.com>
2134 * Graphics.cs, gdipFunctions.cs: added missing clip function wrappers
2136 2004-06-18 Ravindra <rkumar@novell.com>
2138 * FontConverter.cs: Implemented the missing functions.
2139 * Font.cs: Added some notes.
2141 2004-06-16 Sanjay Gupta <gsanjay@novell.com>
2143 * gdipFunctions.cs: Modified Function signature for
2144 GdipSaveImageToDelegate_linux() method for saving tiff images
2146 * image.cs: Modified function call GdipSaveImageToDelegate_linux()
2149 2004-06-15 Sanjay Gupta <gsanjay@novell.com>
2151 * gdipFunctions.cs: Added delegate and StreamHelper functions, Close
2152 and Size, required by TIFFCodec. Modifed Function signature for
2153 GdipLoadImageFromDelegate_linux() method.
2154 * image.cs: Modified function call GdipLoadImageFromDelegate_linux()
2157 2004-06-11 Ravindra <rkumar@novell.com>
2159 * gdipFunctions.cs: (GdipCreateSolidFill): Changed one argument
2160 from out int to out IntPtr.
2161 * SolidBrush.cs: Same.
2163 2004-06-10 Gert Driesen <drieseng@users.sourceforge.net>
2165 * Image.cs: API signature fixes, meaning DisposeResources is now
2166 private and marked InitFromStream internal
2168 2004-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
2170 * FontFamily.cs: simplifies object destruction and fixes
2172 2004-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
2174 * FontFamily.cs: added destructor
2175 * Graphics.cs: added destructor to stop leaking, remove debugging code
2178 2004-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
2180 * gdipFunctions.cs: added GdipSaveAddImage
2181 * Image.cs: added SaveAdd methods
2183 2004-06-02 Peter Bartok <pbartok@novell.com>
2184 * gdipFunctions.cs: Fixed reference to wrong DLLs for GetDC/ReleaseDC
2185 (This fixes bug #59479)
2187 2004-06-01 Gert Driesen <drieseng@users.sourceforge.net>
2189 * Font.cs: Added missing Browsable attribute on SizeInPoints.
2190 * Region.cs: Removed extra ComVisible attribute from Clone().
2192 2004-06-01 Ravindra <rkumar@novell.com>
2194 * Pen.cs: Added a note on Dispose method.
2195 * Brush.cs: Fixed Dispose method.
2196 * SolidBrush.cs: Fixed Dispose method.
2198 2004-05-28 Ravindra <rkumar@novell.com>
2200 * gdipFunctions.cs: Added some P/Invoke calls for Draw/Fill
2202 * Graphics.cs: Implemented Dispose method and changed Draw/Fill
2203 rectangles implementation (This is basically done to avoid lots
2204 of brush and pen setup happening in libgdiplus.)
2206 2004-05-27 Ravindra <rkumar@novell.com>
2208 * Color.cs: Changed Color.Green to what MS.NET has. Conforming to MS.
2210 2004-05-26 Sanjay Gupta <gsanjay@novell.com>
2212 * ImageFormatConverter.cs: Fixed issues discovered from nunit
2215 2004-05-26 Ravindra <rkumar@novell.com>
2217 * Color.cs: Corrected Color.Green property.
2219 2004-05-24 Jordi Mas i Hernandez <jordi@ximian.com>
2220 * gdipStructs.cs: remove unnecessary code, since bug 57706 is fixed
2222 2004-05-20 Sanjay Gupta <gsanjay@novell.com>
2224 * Icon.cs: Fixed issue with size property.
2226 2004-05-18 Ravindra <rkumar@novell.com>
2228 * Pen.cs: Added value checks in DashPattern and CompoundArray
2231 2004-05-16 Gert Driesen <drieseng@users.sourceforge.net>
2233 * Graphics.cs: fixed warning
2234 * ImageAnimator.cs: fixed warning
2235 * FontConverter.cs: fixed public API
2237 2004-05-14 Vladimir Vukicevic <vladimir@pobox.com>
2239 * gdipFunctions.cs: Fixed prototype for
2240 GdipGetEncoderParameterList
2242 * Image.cs: Reworked Save functions to handle EncoderParameters.
2243 Implemented GetEncoderParameterList
2244 Also removed unused setGDIPalette internal method.
2246 2004-05-14 Peter Bartok <pbartok@novell.com>
2247 * StringFormat.cs: Added CharacterRange handling
2248 * Graphics.cs: Implemented MeasureCharacterRanges method
2250 2004-05-14 Peter Bartok <pbartok@novell.com>
2251 * Graphics.cs: Added error check
2253 2004-05-14 Duncan Mak <duncan@ximian.com>
2254 * gdipFunctions.cs (GdipCreatePath2I, GdipAddPathPieI):
2255 (GdipFlattenPath, GdipWarpPath, GdipWidenPath):
2256 (GdipGetPathWorldBounds, GdipGetPathWorldBoundsI): Imported.
2258 2004-05-14 Sanjay Gupta <gsanjay@novell.com>
2259 * ImageFormatConverter.cs: Modified implementation of ConvertFrom() method.
2261 2004-05-13 Sanjay Gupta <gsanjay@novell.com>
2262 * ImageFormatConverter.cs: Implemented GetStandardValuesSupported () method.
2264 2004-05-13 Peter Bartok <pbartok@novell.com>
2265 * Bitmap.cs: Fixed bug #52868, Bitmap(Image, Size) did not
2268 2004-05-12 Peter Bartok <pbartok@novell.com>
2269 * Image.cs: Implemented GetThumbnailImage
2271 2004-05-13 Sanjay Gupta <gsanjay@novell.com>
2272 * Graphics.cs: Made method DrawRectangle (Pen , RectangleF) and
2273 FromXDrawable(IntPtr, IntPtr) internal.
2275 2004-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
2276 * Color.cs: work for API compatibilty: private date, todos
2277 * Font.cs: work for API compatibilty: private date, todos
2278 * FontFamily.cs: work for API compatibilty: private date, todos
2279 * Graphics.cs: work for API compatibilty: private date, todos
2280 * Icon.cs: work for API compatibilty: private date, todos
2281 * Image.cs: work for API compatibilty: private date, todos
2282 * ImageAnimator.cs: work for API compatibilty: private date, todos
2283 * Point.cs: work for API compatibilty: private date, todos
2284 * PointF.cs: work for API compatibilty: private date, todos
2285 * Rectangle.cs: work for API compatibilty: private date, todos
2286 * RectangleF.cs: work for API compatibilty: private date, todos
2287 * Region.cs: work for API compatibilty: private date, todos
2288 * Size.cs: work for API compatibilty: private date, todos
2289 * SizeF.cs: work for API compatibilty: private date, todos
2290 * SolidBrush.cs: work for API compatibilty: private date, todos
2291 * StringFormat.cs: work for API compatibilty: private date, todos
2292 * SystemPens.cs: work for API compatibilty: private date, todos
2293 * TextureBrush.cs: work for API compatibilty: private date, todos
2294 * gdipStructs.cs: work for API compatibilty: private date, todos
2296 2004-05-12 Ravindra <rkumar@novell.com>
2298 * Bitmap.cs, Font.cs, FontConverter.cs, Graphics.cs, Icon.cs, Image.cs
2299 ImageAnimator.cs, Point.cs, PointF.cs, Rectangle.cs, RectangleF.cs
2300 Region.cs, Size.cs, SizeF.cs, ToolboxBitmapAttribute.cs, gdipFunctions.cs:
2301 Added missing attributes and some coding style fixes.
2302 * Pen.cs: Implementing CustomStartCap and CustomEndCap properties and
2305 2004-05-11 Sanjay Gupta <gsanjay@novell.com>
2307 * ImageAnimator.cs: Implemented first version.
2309 2004-05-11 Ravindra <rkumar@novell.com>
2311 * gdipFunctions.cs: Implementing AdjustableArrowCap. Added P/Invokes
2314 2004-05-10 Ravindra <rkumar@novell.com>
2316 * gdipFunctions.cs: Implementing CustomLineCap. Added P/Invokes
2317 for the same. Added few related P/Invokes for Pen also.
2319 2004-05-06 Sanjay Gupta <gsanjay@novell.com>
2321 * ImageAnimator.cs: Corrected implementation of CanAnimate() method.
2323 2004-05-06 Ravindra <rkumar@novell.com>
2325 * RectangleConverter.cs: Implemented GetProperties () method.
2326 * SizeConverter.cs: Implemented GetProperties () method.
2327 * PointConverter.cs: Implemented GetProperties () method.
2328 * FontConverter.cs: Implemented some of the methods.
2330 2004-05-06 Ravindra <rkumar@novell.com>
2332 * Color.cs: Fixed Name property.
2333 * ColorTranslator.cs: Fixed the existing methods and implemented
2334 the missing methods.
2335 * ColorConverter.cs: Fixed the existing methods and implemented
2336 the missing methods. Also, fixed coding style.
2338 2004-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
2339 * Bitmap.cs: Let GDI+ calculate the strides, as it does in Win32.
2341 2004-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
2342 * Image.cs: raw_format should be handled by GDI+
2343 * Bitmap.cs: raw_format should be handled by GDI+
2345 2004-05-04 Ravindra <rkumar@novell.com>
2347 * Pen.cs: Modified exception message. Fixed Transform, DashPattern,
2348 and DashCap properties. Implementing CoumpoundArray, StartCap, EndCap
2349 properties and SetLineCap method. In constructors use IntPtr instead
2351 * SolidBrush.cs: Modified exception message.
2352 * TextureBrush.cs: Fixed Transform property.
2353 * gdipFunctions.cs: Fixed P/Invokes for Pen.cs, TextureBrush.cs and
2354 LinearGradientBrush.cs.
2356 2004-04-30 Sanjay Gupta <gsanjay@novell.com>
2358 * Image.cs: Implemented FrameDimensionsList property.
2360 2004-04-30 Ravindra <rkumar@novell.com>
2362 * gdipFunctions.cs: Added few more P/Invoke calls for
2363 lineargradient brush and added one case statement in
2366 2004-04-30 Jordi Mas i Hernandez <jordi@ximian.com>
2368 * Image.cs: takes into account MemoryBmp format when saving
2370 2004-04-30 Ravindra <rkumar@novell.com>
2372 * StringFormat.cs: Added checks for status.
2374 2004-04-30 Sanjay Gupta <gsanjay@novell.com>
2376 * Image.cs: Removed calls which passes byte[] for Guid parameter.
2377 * gdipFunctions.cs: Removed unwanted unix specific function calls.
2379 2004-04-30 Ravindra <rkumar@novell.com>
2381 * Graphics.cs: Added checks for status.
2382 * Image.cs: Added a check for status.
2383 * FontFamily.cs: Added checks for status.
2385 2004-04-29 Peter Bartok <pbartok@novell.com>
2387 * Brushes.cs: Fixed bug #52695. No longer creates a new
2388 brush for every request and behaves Microsoft compatible
2390 2004-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
2392 * Image.cs: fixes Save method. It now retrieves the proper encoder and uses
2393 its ClsID instead of the formatID (as GDI+ expects)
2395 2004-04-29 Ravindra <rkumar@novell.com>
2397 * Font.cs: Added checks for status.
2398 * Bitmap.cs: Added checks for status.
2399 * Pen.cs: Added checks for status.
2401 2004-04-28 Sanjay Gupta <gsanjay@novell.com>
2403 * ColorTranslator.cs, StringFormat.cs, SystemIcons.cs, ToolBoxBitmapAttributes.cs:
2404 Converted to unix format from dos format.
2406 2004-04-28 Sanjay Gupta <gsanjay@novell.com>
2408 * ImageConverter.cs: Implemented GetProperties() and GetPropertiesSupported () methods.
2410 2004-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
2412 * gdipStructs.cs: added GdipImageCodecInfo struct
2414 2004-04-28 Sanjay Gupta <gsanjay@novell.com>
2416 * ImageFormatConverter.cs: Corrected ConvertFrom method.
2418 2004-04-27 Sanjay Gupta <gsanjay@novell.com>
2420 * ImageConverter.cs: Added exception message.
2421 * IconConverter.cs: Added exception message.
2422 * ImageFormatConverter.cs: Implemented first version.
2424 2004-04-27 Sanjay Gupta <gsanjay@novell.com>
2426 * ImageConverter.cs: Implemented first version.
2428 2004-04-27 Sanjay Gupta <gsanjay@novell.com>
2430 * IconConverter.cs: Implemented first version.
2432 2004-04-26 Sanjay Gupta <gsanjay@novell.com>
2434 * Image.cs: Corrected implementation of Property RawFormat.
2435 * gdipFunctions.cs: Corrected declaration of GdipGetImageRawFormat.
2437 2004-04-25 Sanjay Gupta <gsanjay@novell.com>
2439 * Bitmap.cs: Resolved a compile time error.
2440 * Image.cs: Changed the implementation of few methods to progress
2441 with ImageAnimator class.
2442 * gdipFunctions.cs: Added few linux only function calls.
2443 * Icon.cs: Removed unused variable from code.
2445 2004-04-25 Vladimir Vukicevic <vladimir@pobox.com>
2447 * Graphics.cs, gdipFunctions.cs: Added CreateFromXDrawable_linux.
2449 2004-04-23 Vladimir Vukicevic <vladimir@pobox.com>
2451 * Commited patch from pcgod@gmx.net (Bnehamin Jemlich) for
2452 serialization for Bitmaps. (Bugzilla #52568)
2454 2004-04-23 Ravindra <rkumar@novell.com>
2456 * RectangleConverter.cs: Fixed ConvertTo () method.
2457 * SizeConverter.cs: Fixed ConvertTo () method.
2458 * PointConverter.cs: Fixed ConvertTo () method.
2460 2004-04-23 Sanjay Gupta <gsanjay@novell.com>
2461 * ImageAnimator.cs: Implemented CanAnimate() method.
2463 2004-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
2464 * Image.cs: added RotateFlip and RemovePropertyItem calls
2466 2004-04-22 Ravindra <rkumar@novell.com>
2468 * RectangleConverter.cs: Implemented. Also changed file format
2470 * Rectangle.cs: Fixed ToString method.
2471 * RectangleF.cs: Fixed ToString method.
2473 2004-04-22 Ravindra <rkumar@novell.com>
2475 * SizeConverter.cs: Implemented some of the functions.
2476 * PointConveter.cs: Implemented.
2477 * gdipFunctions.cs: Corrected one typo.
2478 * Brushes.cs: Added a comment.
2480 2004-04-22 Vladimir Vukicevic <vladimir@pobox.com>
2482 * gdipFunctions.cs: Fix StreamGetBytesImpl to handle
2483 returning portions of the peek buffer back. Fixes #57379.
2485 2004-04-21 Peter Bartok <pbartok@novell.com>
2486 * Font.cs: Implemented Font.FromHfont method
2487 * gdipStructs.cs: fixed sign for LOGFONTA lfHeight member
2488 * gdipFunctions.cs: Added imports for functions required to support
2489 Font.FromHfont method
2491 2004-04-21 Jordi Mas i Hernandez <jordi@ximian.com>
2492 * RectangleConverter.cs: stubbed out
2493 * Font.cs : added missing members
2495 2004-04-19 Sanjay Gupta <gsanjay@novell.com>
2496 * Icon.cs: Fixed problem in extracting bitmap from Icon.
2498 2004-04-16 Ravindra <rkumar@novell.com>
2500 * Pen.cs: GC should be allowed to collect any pen including
2502 * SolidBrush.cs: GC should be allowed to collect any SolidBrush
2503 including system brushes.
2504 * Brushes.cs: Coding style.
2505 * Pens.cs: Objects created by Pens are not modifiable on
2506 MS.NET, so we are now. Also, coding style fixes.
2507 * SystemPens.cs: Removed static constructor and changed file
2509 * SystemBrushes.cs: Some cosmetic changes.
2511 2004-04-15 Sanjay Gupta <gsanjay@novell.com>
2512 * Icon.cs: Implemented more missing bits and fixed the problem
2513 of icon not getting saved in proper format
2515 2004-04-14 Sanjay Gupta <gsanjay@novell.com>
2516 * Icon.cs: Implemented more missing bits
2518 2004-04-13 Sanjay Gupta <gsanjay@novell.com>
2519 * Icon.cs: Implemented few more missing bits
2521 2004-04-12 Sanjay Gupta <gsanjay@novell.com>
2522 * Icon.cs: Implemented first version
2524 2004-04-11 Peter Bartok <pbartok@novell.com>
2525 * Font.cs: Implemented Font.ToHfont method; used Jordi's suggestion of splitting
2526 the code and using our own private gdiplus function when on Unix and using Win32
2527 functions when running on Windows
2528 * gdipStructs.cs: Added LOGFONTA structure
2529 * gdipFunctions.cs: Added various DllImports required for Font.ToHfont
2531 2004-04-10 Vladimir Vukicevic <vladimir@pobox.com>
2533 * Image.cs: Save should use encoder.FormatID, not Clsid
2535 2004-04-06 Jordi Mas i Hernandez <jordi@ximian.com>
2536 * Region.cs: fixes GdipCombineRegionRect and GdipCombineRegionRectI signature
2537 * gdipFunctions.cs: fixes GdipCombineRegionRect and GdipCombineRegionRectI signature
2539 2004-04-06 Duncan Mak <duncan@ximian.com>
2541 * gdipFunctions.cs (GdipCreatePath2): Fixed signature.
2543 2004-04-06 Jordi Mas i Hernandez <jordi@ximian.com>
2544 * Region.cs: fixes GetRegionScans
2545 * gdipFunctions.cs: fixes GetRegionScans
2547 2004-04-06 Vladimir Vukicevic <vladimir@pobox.com>
2549 * gdipFunctions.cs: Added stream delegate helpers for
2550 stream loading/saving on linux
2552 * Image.cs, Bitmap.cs: Converted to call into GDIPlus for
2553 loading/saving image data.
2555 2004-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
2556 * Region.cs: implemented new methods
2557 * Graphics.cs: implemented new methods
2559 2004-04-02 Jordi Mas i Hernandez <jordi@ximian.com>
2560 * Region.cs: implemented
2562 2004-04-01 Duncan Mak <duncan@ximian.com>
2564 * Graphics.cs (DrawCurve): Call the correct GDI+ wrappers.
2566 * gdipFunctions.cs (GdipAddPathCurveI):
2567 (GdipAddPathCurve2, GdipAddPathCurve2I):
2568 (GdipAddPathCurve3, GdipAddPathCurve3I):
2569 (GdipAddPathClosedCurve, GdipAddPathClosedCurveI):
2570 (GdipAddPathClosedCurve2, GdipAddPathClosedCurve2I): Added new
2573 2004-03-30 Jordi Mas i Hernandez <jordi@ximian.com>
2574 * Image.cs: implemented a few GDI+ wrapper calls
2576 2004-03-30 Jordi Mas i Hernandez <jordi@ximian.com>
2577 * Bitmap.cs: remove redundant data already present at Image.cs
2578 * Image.cs: use GDI+ functions to get image details
2579 * StringFormat.cs: missing constructor and property
2581 2004-03-24 Jordi Mas i Hernandez <jordi@ximian.com>
2582 * FontFamily.cs: added missing members and style clean
2583 * Graphics.cs: fixed signature of DrawArc and DrawPie
2584 * Image.cs: added missing members, fixes
2585 * StringFormat.cs: missing constructor and property
2587 2004-03-24 Jordi Mas i Hernandez <jordi@ximian.com>
2588 * Graphics.cs: Added missing DrawImage GDI+ calls
2589 * gdipFunctions.cs: Added missing DrawImage GDI+ calls
2591 2004-03-23 Ravindra <rkumar@novell.com>
2592 * gdipFunctions.cs: Added few more P/Invoke calls for
2593 LinearGradientBrush.
2595 2004-03-22 Ravindra <rkumar@novell.com>
2596 * gdipFunctions.cs: Added P/Invoke calls for LinearGradientBrush
2597 and did few coding style fixes.
2599 2004-03-18 Ravindra <rkumar@novell.com>
2600 * Brush.cs: Fixed Dispose method.
2601 * SolidBrush.cs: Fixed clone method.
2602 * TextureBrush.cs: Fixed clone method.
2603 * gdipFunctions.cs: Fixed P/Invokes for PathGradientBrush.
2605 2004-03-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2607 * SizeConverter.cs: fixd typo in ConvertFrom that made height be wrong.
2609 2004-03-10 Ravindra <rkumar@novell.com>
2610 * Pen.cs: Implemented PenType property.
2611 * Brush.cs: Coding style.
2613 2004-03-06 Ravindra <rkumar@novell.com>
2614 * gdipFunctions.cs: Added few more GDI+ P/Invoke calls
2615 for PathGradientBrush.
2617 2004-03-06 Ravindra <rkumar@novell.com>
2618 * gdipFunctions.cs: Added GDI+ P/Invoke calls for
2621 2004-03-04 Duncan Mak <duncan@ximian.com>
2623 * Region.cs: Indentation.
2625 * RectangleF.cs: Changed the internal structure from a PointF,
2626 SizeF to floats in order to match the layout from the C API.
2628 2004-03-04 Jordi Mas i Hernandez <jordi@ximian.com>
2629 * StringFormat.cs: DigitSubstitution and TabStob methods, coding-style
2631 2004-03-03 Sanjay Gupta <gsanjay@novell.com>
2632 * gdipFunctions.cs: Added functions for ImageAttributes
2634 2004-03-03 Sanjay Gupta <gsanjay@novell.com>
2635 * Icon.cs: Missing function stubs added
2636 * Icon.cs: Missing function stubs added
2637 * IconConverter.cs: Missing function stubs added
2638 * ImageAnimator.cs: Missing function stubs added
2639 * ImageConverter.cs: Missing function stubs added
2640 * ImageFormatConverter.cs: Missing function stubs added
2642 2004-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
2643 * Font.cs: Allow multiple styles
2645 2004-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
2646 * StringFormat.cs: Clone method
2648 2004-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
2649 * font.cs: fixes, Clone, and ToString
2651 2004-02-21 Jordi Mas i Hernandez <jordi@ximian.com>
2652 * gdipFunctions.cs: MeasureString
2653 * Graphics.cs : MeasureString
2655 2004-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
2656 * Font.cs: destructor and unit conversion
2657 * Graphics.cs : system dpi support
2659 2004-02-13 Ravindra <rkumar@novell.com>
2660 * Pen.cs: Fixed some bugs.
2661 * TextureBrush.cs: Fixed some bugs.
2663 2004-02-13 Sanjay Gupta <gsanjay@novell.com>
2664 * gdipFunctions.cs: Added ImageCodecInfo functions
2665 * Image.cs: Added few methods
2667 2004-02-13 Jordi Mas i Hernandez <jordi@ximian.com>
2668 * FontFamily.cs: remove hardcoded font names, a few bug fixes
2670 2004-02-12 Sanjay Gupta <gsanjay@novell.com>
2671 * gdipFunctions.cs: Added Image class functions
2672 * Image.cs: Added few methods
2674 2004-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
2675 * graphics.cs: fixes parameters for DrawStrings functions
2677 2004-02-07 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2679 * SRDescriptionAttribute.cs: Added and implemented
2680 * ToolboxBitmapAttribute.cs: Implemented a few members
2681 * SystemIcons.cs: Stubbed
2682 * StringFormat.cs: Implemented method
2683 * Region.cs: Added Todo, fixed attribute
2684 * Size.cs: Added attribute
2685 * SizeF.cs: Added attribute
2686 * RectangleF.cs: Added attributes
2687 * Rectangle.cs: Added attributes
2688 * PointF.cs: Added attribute
2689 * Point.cs: Added attribute
2691 2004-02-06 Ravindra <rkumar@novell.com>
2693 * Brush.cs: Renamed GetException method to CheckStatus
2694 and moved it to gdipFunctions.cs.
2695 * gdipFunctions.cs: Added CheckStatus method.
2696 * SolidBrush.cs: Using CheckStatus method.
2697 * TextureBrush.cs: Using CheckStatus method.
2698 * gdipEnums.cs: Added a missing value.
2700 2004-02-05 Ravindra <rkumar@novell.com>
2702 * Brush.cs: Added a missing namespace.
2704 2004-02-05 Ravindra <rkumar@novell.com>
2706 * gdipFunctions.cs: Added methods for HatchBrush and
2708 * SolidBrush.cs: Added checks for status.
2709 * Brush.cs: Added support for HatchBrush and TextureBrush
2710 types in internal CreateBrush() method.
2712 2004-02-03 Jordi Mas <jordi@ximian.com>
2713 * Font.cs: Setup font properties
2715 2004-02-03 Ravindra <rkumar@novell.com>
2717 * TextureBrush.cs and Brush.cs: Moved GetException (Status)
2718 method from TextureBrush.cs to Brush.cs.
2719 * Brush.cs: Made GetException (Status) method internal.
2721 2004-02-03 Sanjay Gupta <gsanjay@novell.com>
2723 * gdipFunctions.cs: Added methods for Image class.
2725 2004-01-30 Ravindra <rkumar@novell.com>
2727 * TextureBrush.cs: Added more methods to complete it.
2728 * gdipFunctions.cs: Added methods for TextureBrush class.
2730 2004-01-30 Ravindra <rkumar@novell.com>
2732 * gdipFunctions.cs: Added methods for TextureBrush class.
2734 2004-01-30 Ravindra <rkumar@novell.com>
2736 * Pen.cs: Modified to handle TextureBrush also.
2737 * Bitmap.cs: Added one internal constructor.
2738 * TextureBrush.cs: Implemented.
2740 2004-01-29 Duncan Mak <duncan@ximian.com>
2743 * Graphics.cs: Indentation fixes, removed long dangling lines and
2746 * Graphics.cs (IsVisible): Renamed variable to not use hungarian
2749 2004-01-29 Sanjay Gupta <gsanjay@novell.com>
2751 * FontFamily.cs: Implemented few methods and a constructor
2753 2004-01-28 Sanjay Gupta <gsanjay@novell.com>
2755 * gdipFunctions.cs: Added FontFamily and FontCollection functions.
2756 * FontFamily.cs: Implemented missing functionalities.
2758 2004-01-24 Duncan Mak <duncan@ximian.com>
2760 * Graphics.cs (DrawPath): Implemented.
2762 2004-01-23 Ravindra <rkumar@novell.com>
2764 * Point.cs: ToString modified.
2765 * PointF.cs: ToString modified.
2766 * Size.cs: ToString modified.
2767 * SizeF.cs: ToString modified. ToPoint and ToSize methods
2770 2004-01-21 Jordi Mas i Hernà ndez
2771 * Bitmap.cs: Several new methods added.
2773 2004-01-21 Duncan Mak <duncan@ximian.com>
2775 * gdipFunctions.cs (GdipGetPathTypes, GdipGetPathPoints): Add
2776 OutAttribute to the array argument. This fixes the PathPoints
2777 property in System.Drawing.Drawing2D.GraphicsPath.
2779 2004-01-20 Ravindra <rkumar@novell.com>
2781 * Pen.cs: Fixed bug #52811 in Pen.Transform property. Setting
2782 this property was hanging and getting was throwing a NullRef
2783 Exception. Earlier we were passing Matrix object to and fro
2784 which was causing the problem. Now, we are using IntPtr.
2785 Thanks to Duncan for helping me.
2786 Also, .NET behavior is to maintain Pen.Color and Pen.Brush
2787 together. If color is set, a SolidBrush automatically gets
2788 set with the same color, Pen loses the old brush object.
2789 If a SolidBrush is set, Pen.Color gets the value same as that
2790 of brush color losing the old value. Pen shows this behavior
2792 * gdipFunctions.cs: Changed the signature of GdipGetPenTransform
2793 and GdipSetPenTransform methods to use IntPtr instead of Matrix.
2795 2004-01-19 Duncan Mak <duncan@ximian.com>
2797 * gdipFunctions.cs: Import functions for GraphicsPath.
2799 2004-01-14 Ravindra <rkumar@novell.com>
2801 * SolidBrush.cs: Made SolidBrush to initialize its color
2804 * gdipFunctions.cs: Added call to GdipGetSolidFillColor GDI+ API.
2806 2004-01-11 Duncan Mak <duncan@ximian.com>
2808 * Bitmap.cs (LockBits):
2809 * Graphics.cs (DrawString): Removed reference to GpRectF.
2811 2004-01-09 Duncan Mak <duncan@ximian.com>
2813 * gdipStructs.cs (GpRectF, GpRect, GpPointF, GpPoint):
2814 Removed. Didn't know that structs are laid out sequentially by
2815 default. We don't need these anymore.
2817 2004-01-12 Ben Maurer <bmaurer@users.sourceforge.net>
2819 * Color.cs: Keep KnownColors in an array so that we avoid ht lookup.
2821 2004-01-11 Daniel Morgan <danielmorgan@verizon.net>
2823 * Graphics.cs: fix compile error on Windows builds for out
2824 parameter state in call to GdipSaveGraphics
2826 2004-01-10 Ravindra <rkumar@novell.com>
2828 * All Enums: Made serializable.
2830 * Image.cs: Corrected signature of Dispose(bool) method.
2832 * Pen.cs, SolidBrush.cs, SystemPens.cs, SystemBrushes.cs:
2833 Corrected coding style mistakes of my previous commit.
2835 * PointConverter.cs, RectangleConverter.cs: Inherit TypeConverter.
2837 * PointF.cs, RectangleF.cs, SizeF.cs: Made serializable.
2839 * StringFormat.cs: Inherits MarshalByRefObject.
2841 * ToolboxBitmapAttribute.cs: Added missing attribute [AttributeUsage].
2843 2004-01-08 Ravindra <rkumar@novell.com>
2845 * Pen.cs: Added isModifiable (bool) variable. It is required to
2846 make Pens created by SystemPens.cs unmodifiable. All property
2847 setters are modified for this.
2849 * SolidBrush.cs: Added isModifiable variable (bool). It is
2850 required to make Brushes created by SystemBrushes.cs unmodifiable.
2851 All property setters are modified for this.
2853 * SystemBrushes.cs: Modified all the properties as per the .NET
2854 specs, so that Brushes are not created every time. Also, missing
2855 properties are added.
2857 * SystemPens.cs: Modified all the properties as per the .NET
2858 specs, so that Brushes are not created every time. Also, missing
2859 properties are added.
2861 2003-12-12 Miguel de Icaza <miguel@ximian.com>
2863 * Rectangle.cs: Patch from Bryan Bulten, fixes Inflate and makes
2866 2004-01-06 Duncan Mak <duncan@ximian.com>
2868 * gdipFunctions.cs: Import GraphicsPath functions from GDI+.
2870 2003-12-21 Duncan Mak <duncan@ximian.com>
2872 * Graphics.cs (DrawArc): Fixed the method signature and hooked it
2873 up to the GDI+ implementation.
2874 (RotateTransform): Uncommented.
2876 * gdipFunctions.cs (DrawArc, DrawArcI): Import from
2879 2003-12-13 Todd Berman <tberman@sevenl.net>
2881 * Font.cs: Implementing a couple things for porting purposes
2882 * SystemBrushes.cs: ^
2883 * StringFormat.cs: ^^
2885 2003-11-28 Duncan Mak <duncan@ximian.com>
2887 * Pen.cs (CompoundArray): Hide this for now.
2889 2003-11-28 Duncan Mak <duncan@ximian.com>
2891 * Brush.cs (CreateBrush): new internal factory method for creating
2892 specific brushes based on the internal (GDI+ C API) BrushType
2894 (Brush (IntPtr)): new internal constructor.
2896 * Pen.cs: Removed all the C# fields. We are using GDI+ completely
2898 (Pen (IntPtr)): new internal constructor.
2899 (Pen (Brush, float)): Use GdipCreateBrush2.
2900 (Clone): Implemented using GdipClonePen.
2901 (Alignment, Brush, Color, Width): Use GDI+ implementations
2903 (CompoundArray, DashCap, DashOffset, DashPattern, DashStyle):
2904 Implemented these properties.
2905 (CustomStartCap, CustomEndCap, StartCap, EndCap, SetLineCap): Stubbed.
2906 (MultiplyTransform, ResetTransform, RotateTransform):
2907 (ScaleTransform, TranslateTransform): Implemented these methods.
2909 * SolidBrush.cs (SolidBrush (IntPtr)): new internal constructor.
2911 * gdipEnums.cs (BrushType): Added new GDI+ enum.
2913 * gdipFunctions.cs: Imported new Brush and Pen functions.
2915 2003-11-22 Duncan Mak <duncan@ximian.com>
2918 (GdipResetWorldTransform, GdipSetWorldTransform):
2919 (GdipGetWorldTransform, GdipScaleWorldTransform): Imported.
2921 * Graphics.cs: Remove unnecessary TODO, and reformatted the code.
2922 (transform): Removed this field. Always use the
2923 matrix associated in the GpGraphics ptr.
2924 (DrawBeziers): Implemented.
2925 (DrawLine): Don't need to manually invoke the transform now.
2926 (MultiplyTransform, ResetTransform):
2927 (ScaleTransform, TranslateTransform): Use GDI+ implementation.
2928 (Transform): Instead of storing a Matrix in managed code, use
2929 equivalent GDI+ functions.
2931 2003-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2933 * SizeConverter.cs: fixed class signature and implemented some methods.
2935 2003-11-17 Duncan Mak <duncan@ximian.com>
2937 * gdipFunctions.cs (GdipGetMatrixElements): Fix signature.
2939 * Graphics.cs (MultiplyTransform): Commented out until my Matrix commit.
2941 2003-11-17 Duncan Mak <duncan@ximian.com>
2943 * Bitmap.cs (LockBits):
2944 * Graphics.cs (DrawString): Use GpRectF.
2946 * gdipFunctions.cs: Updated method signatures.
2948 * Graphics.cs (MultiplyTransform): Implemented using
2949 GdipMultiplyWorldTransform from GDI+.
2951 * gdipStructs.cs (GdipRectF, GdipRect): Renamed to GpRectF and
2952 GpRect, to be more consistent with the C naming.
2954 2003-11-16 Miguel de Icaza <miguel@ximian.com>
2956 * Graphics.cs: Implement the other DrawString overloads .
2958 2003-11-16 Miguel de Icaza <miguel@ximian.com>
2960 * gdipStructs.cs (GdipRectF): Added utility constructor
2962 2003-11-15 Duncan Mak <duncan@ximian.com>
2964 * gdipFunctions.cs: Imported matrix functions.
2966 2003-11-13 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2968 * Bitmap.cs: Added Attributes
2969 * ColorTranslator.cs: Added private constructor
2970 * Font.cs: Added Attributes
2971 * FontFamily.cs: sealed
2972 * Icon.cs: Added Attributes
2973 * IconConverter.cs: Fixed signature
2974 * Image.cs: Added attributes
2976 * ImageConverter.cs:
2977 * ImageFormatConverter.cs:
2984 * TextureBrush.cs: Fixed signature
2985 * Color.cs: Added attributes
2990 * SizeF.cs: Added attributes
2991 * ContentAlignment.cs: Added attribute
2993 2003-11-13 Duncan Mak <duncan@ximian.com>
2995 * Pen.cs (LineCap, LineJoin, MiterLimit, Transform): implemented.
2998 (GdipSetPenMiterLimit, GdipGetPenMiterLimit):
2999 (GdipSetPenLineJoin, GdipGetPenLineJoin):
3000 (GdipSetPenLineJoin, GdipGetPenTransform): imported.
3002 2003-11-12 Alexandre Pigolkine <pigolkine@gmx.de>
3004 * gdipFunctions.cs copy image in Bitmap constructor
3006 2003-11-06 Duncan Mak <duncan@ximian.com>
3007 * Graphics.cs (DrawPie): Use DrawPieI instead of DrawPie and fix
3008 angle parameters for the integer case.
3009 (DrawBezier): Hook it up with GdipDrawBezier.
3010 (DrawEllipse): Fix Width, Height ordering.
3012 2003-11-05 Duncan Mak <duncan@ximian.com>
3014 * Graphics.cs (DrawPie):
3015 * gdipFunctions.cs (GdipDrawPie): Add hooks to the implementation
3018 2003-10-28 Duncan Mak <duncan@ximian.com>
3020 * Graphics.cs (DrawEllipse, DrawLine, DrawPolygon):
3021 (FillEllipse, FillPolygon): implemented.
3022 (RenderingOrigin): implemented.
3024 * gdipFunctions.cs: Added new GDI+ equivalents.
3026 2003-10-25 Alexandre Pigolkine <pigolkine@gmx.de>
3028 * Image.cs small fixes
3030 2003-10-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3032 * Image.cs : renamed 'pallete' to 'colorPallete' for CLS compliance.
3034 2003-10-24 Miguel de Icaza <miguel@ximian.com>
3036 * SystemBrushes.cs: Some more brushe3s.
3038 * SystemPens.cs: More pens.
3040 * Pen.cs: Implement IDisposable, ICloneable.
3042 * Region.cs: Add some more stubs here.
3044 * StringFormat.cs: Add some more code here.
3046 2003-10-23 Miguel de Icaza <miguel@ximian.com>
3048 * Image.cs: Kill the InternalImageInfo, everything is now done in
3049 terms of Image and BitmapData.
3051 * Rectangle.cs: Make this one also sequential, change from using
3052 Point + Size to use x, y, width, height; So we can use GdiPlus.
3054 * gdipFunctions.cs (GdipBitmapLockBits): Remove the ref from the
3055 BitmapData class argument, and instead use the [In,Out]
3056 attributes, which will do struct marshalling on the fields. Now
3057 we can use C#'s BitmapData directly to talk to Gdiplus.
3059 * gdipStructs.cs: Every internal structure that has to talk to
3060 Gdi+ is properly prefixed, to minimize the confussion.
3062 * Bitmap.cs Bitmap (int width, int height, PixelFormat format):
3063 Compute the stride here where we have the BPP information,
3064 allocate a buffer of the proper size, and pass this to
3065 GdipCreateBitmapFromScan0
3067 * Image.cs: Implement Dispose pattern.
3069 2003-10-14 Alexandre Pigolkine <pigolkine@gmx.de>
3072 * gdipStructs.cs DrawString function added
3074 2003-10-12 Alexandre Pigolkine <pigolkine@gmx.de>
3077 * gdipStructs.cs added
3080 2003-10-12 Alexandre Pigolkine <pigolkine@gmx.de>
3089 implementation changed to gdi+
3091 2003-09-08 Duncan Mak <duncan@ximian.com>
3093 * Factories.cs (DefaultImplementationNamespace): Change it from
3094 "XrImpl" to "Cairo".
3096 2003-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3098 * Color.cs: fixed FromArgb to handle alpha value correctly. Closes
3101 2003-08-08 Duncan Mak <duncan@ximian.com>
3103 * Graphics.cs (DrawBezier): Fixed.
3105 2003-08-03 Alexandre Pigolkine <pigolkine@gmx.de>
3106 * Graphics.cs delegate Dispose to implementation
3108 2003-08-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3110 * FontConverter.cs: stub it out so that system.web compiles.
3112 2003-07-30 Alexandre Pigolkine <pigolkine@gmx.de>
3113 * Image.cs InternalImageInfo class improved
3115 2003-07-23 Miguel de Icaza <miguel@ximian.com>
3117 * Factories.cs: If the AppDomain key `Mono.Running.Windows.Forms'
3118 is set, default to Win32Impl
3120 2003-07-22 Alexandre Pigolkine <pigolkine@gmx.de>
3121 * Image.cs implementation added
3123 2003-07-21 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
3125 * Icon.cs: Stubed out (fix for System.Drawing.Design)
3127 2003-07-17 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
3129 * StringFormat.cs: Changes to become CLS-compliant
3131 2003-07-14 Miguel de Icaza <miguel@ximian.com>
3133 * Factories.cs: Remove debugging message.
3135 2003-07-01 Alexandre Pigolkine <pigolkine@gmx.de>
3136 * Color.cs code generation program modified
3138 2003-06-29 Alexandre Pigolkine
3139 * Graphics.cs image drawing
3141 2003-06-28 Alexandre Pigolkine <pigolkine@gmx.de>
3144 supply KnowColor enum value to save Enum.Parse at runtime
3146 2003-06-26 Alexandre Pigolkine <pigolkine@gmx.de>
3147 * Graphics.cs coordinate transformations
3148 * Image.cs small fix
3150 2003-06-22 Alexandre Pigolkine <pigolkine@gmx.de>
3152 * FontFamily.cs more implementation
3154 2003-06-20 Alexandre Pigolkine <pigolkine@gmx.de>
3156 * FontFamily.cs more implementation
3158 2003-06-18 Alexandre Pigolkine <pigolkine@gmx.de>
3159 * Graphics.cs few more calls to implementation
3161 2003-06-15 Alexandre Pigolkine <pigolkine@gmx.de>
3162 * Bitmap.cs BITMAP declaration removed
3163 * Graphics.cs few more calls to implementation
3164 * Image.cs InternalImageInfo structure, image read/write functions
3167 2003-05-26 Alexandre Pigolkine <pigolkine@gmx.de>
3168 * Factories.cs analyse environment variable and machine.config to select implementation
3169 * Image.cs PixelFormat property added
3171 2003-04-30 Nick Drochak <ndrochak@gol.com>
3173 * Factories.cs: Change weird characters that broke build on windows.
3175 2003-04-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3177 * ColorConverter.cs:
3178 (ConvertFrom): return a system or named color if there's one that fits
3179 teh values parsed with Color.FromArgb.
3181 2003-04-26 Alexandre Pigolkine <pigolkine@gmx.de>
3191 delegate function calls to implementation
3193 2003-04-26 Alexandre Pigolkine <pigolkine@gmx.de>
3197 * SystemBrushes.cs switch to Linux style line terminators
3199 2003-03-29 Alan Tam <Tam@SiuLung.com>
3200 * ToolboxBitmapAttribute
3201 stubbed more constructors and fixed base class
3203 2003-03-01 Alexandre Pigolkine <pigolkine@gmx.de>
3205 added stubs to compile SWF
3208 2003-02-21 Alexandre Pigolkine <pigolkine@gmx.de>
3213 small changes to be able to run SWF apps
3215 2003-02-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3217 * Graphics.cs: stubbed out all the methods.
3219 2003-02-08 Piers Haken <piersh@friskit.com>
3221 * fixed case of pens.cs and font.cs
3223 2003-02-07 Alexandre Pigolkine <pigolkine@gmx.de>
3230 2002-11-21 Dennis Hayes (dennish@raytek.com)
3231 * checkin for Matt Stump (mstump@swfo.arizona.edu)
3235 2002-10-19 Rachel Hestilow <hestilow@ximian.com>
3237 * ColorTranslator.cs (FromHtml): Implement.
3239 2002-10-14 Dennis Hayes (dennish@raytek.com)
3241 * changed using namespace from Drawing2d to Drawing2D
3243 2002-9-15 Asier Llano <asierllano@infonegocio.com>
3245 * Fixes the enum values in the following enums
3246 * ContentAlignment.cs:
3250 * RotateFlipType.cs:
3251 * StringAligment.cs:
3252 * StringDigitSubstitute.cs:
3253 * StringFormatFlags.cs:
3254 * StringTrimming.cs:
3256 * SolidBrush.cs: Easy implementation
3257 * Brushes.cs: Implementation based on SolidBrush and Color class.
3258 * Brush.cs: Fixes based on the status web).
3259 * CharacterRange.cs: Implemented the missing Lenth property.
3261 2002-9-14 Dennis Hayes (dennish@raytek.com)
3264 * removed personal template that should not have been checked in
3266 2002-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3268 * ColorConverter.cs: readded MonoTODOs and implemented a couple of
3271 2002-9-14 DennisHayes <dennish@raytek.com>
3279 * ImageFormatConverter.cs
3281 * RectangleConverter.cs
3290 * ToolboxBitmapAttribute.cs
3291 * Added null classes for most/all classes, Many stubs, and some implmentation
3293 2002-9-2 DennisHayes <dennish@raytek.com>
3300 * Added stubs, implmentation
3302 2002-9-2 DennisHayes <dennish@raytek.com>
3304 * Brushes.cs : stubbed, added colors. Not sure how to implement,
3305 but this should at least save someone some typing.
3306 * CharacterRange.cs :Implmented
3307 * Region.cs : stub needed for system.windows.forms
3309 2002-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3311 * ColorTranslator.cs: use Color.Name.
3313 2002-07-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3315 * Color.cs: implemented SystemColors and NamedColors properties that
3316 are used by ColorConverter, removed public constructor, use
3317 SystemColors, and misc. fixes to make it behave as MS (ToString,
3318 parsing names, FromKnownColor,...).
3320 * ColorConverter.cs: use NamedColors and SystemColors from Color when
3321 trying to get the color from its name.
3323 * SystemColors.cs: new file.
3325 2002-07-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3327 * Color.cs: changed static properties to use FromArgbNamed. Also
3328 modified the program included in comments that get the values for
3331 (FromArgbNamed): build named colors.
3332 (FromKnownColor): fixed.
3333 (FromName): use a hash to look up colors by name.
3334 (FillColorNames): create the hash of colors.
3335 (Equals): compare values and name.
3336 (ToString): improved.
3338 * ColorTranslator.cs: implemented ToHtml.
3340 2002-06-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3342 * Color.cs: added TypeConverter attribute.
3344 * ColorConverter.cs: added constructor.
3346 2002-06-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3348 * ColorConverter.cs: implemented minimal set of features needed by xsp.
3350 2002-05-03 Mike Kestner <mkestner@speakeasy.net>
3352 * Bitmap.cs : using System.IO
3353 * ColorTranslator.cs : Stubbed off build breakers.
3354 * Image.cs : Stub off IDisposable and ICloneable.
3356 2002-04-27 Christian Meyer <Christian.Meyer@cs.tum.edu>
3358 * Bitmap.cs: Ximian is the new copyright holder now.
3361 2002-04-05 Christian Meyer <Christian.Meyer@cs.tum.edu>
3363 * Uppercased several files.
3365 2002-04-05 Christian Meyer <Christian.Meyer@cs.tum.edu>
3367 * color.cs: Fixed a typo in GetSaturation ().
3369 2002-02-26 Christian Meyer <Christian.Meyer@cs.tum.edu>
3371 * Bitmap.cs: Added method headers.
3373 2002-02-25 Christian Meyer <Christian.Meyer@cs.tum.edu>
3375 * Bitmap.cs: Added, no implementation's done, yet.
3377 2001-12-15 Mike Kestner <mkestner@speakeasy.net>
3379 * Rectangle.cs : Add a doc comment.
3380 * RectangleF.cs : New struct implementation.
3382 2001-12-15 Mike Kestner <mkestner@speakeasy.net>
3384 * Rectangle.cs : New struct implementation.
3386 2001-08-17 Mike Kestner <mkestner@speakeasy.net>
3388 * PointF.cs, Size.cs, SizeF.cs : New struct implementations.
3390 2001-08-16 Mike Kestner <mkestner@speakeasy.net>
3392 * Point.cs : New. Implementation of System.Drawing.Point struct.