1 2007-09-26 Ivan N.Zlatev <contact@i-nz.net>
3 * ColorConverter.cs: During conversion to InstanceDescriptor check
4 both IsSystemColor to get a PropertyInfo from type SystemColors
5 and IsKnownColor to get PropertyInfo from type Color.
7 2007-08-09 Vladimir Krasnov <vladimirk@mainsoft.com>
9 * ColorTranslator.cs: optimized Html color formatting in ToHtml method
11 2007-08-13 Sebastien Pouliot <sebastien@ximian.com>
13 * gdipFunctions.cs: Change GdipMeasureString definition to use unsafe
15 * Graphics.cs: Rework MeasureString not to supply integers (characters
16 and lines) as they aren't required for most of it's overloads and
17 requires extra code/time to calculate inside libgdiplus. Also fix a
18 possible NRE in MultiplyTransform.
20 2007-08-01 Sebastien Pouliot <sebastien@ximian.com>
22 * gdipFunctions.cs: Added definition for GdipCloneFontFamily
24 2007-08-01 Vladimir Krasnov <vladimirk@mainsoft.com>
26 * Bitmap.jvm.cs: fixed InternalPixelFormat TYPE_BYTE_GRAY
28 2007-05-30 Sebastien Pouliot <sebastien@ximian.com>
30 * Graphics.cs: Refactor [Get|Release]Hdc to get ReleaseHdcInternal
31 working (as long as the HDC comes from GetHdc).
33 2007-05-21 Adar Wesley <adarw@mainsoft.com>
37 * Region.jvm.cs: Changed MemberwiseClone to clone.
39 2007-05-21 Adar Wesley <adarw@mainsoft.com>
41 * Font.jvm.cs: added implementation for Equals and GetHashCode.
43 * Graphics.jvm.cs: added missing DrawImage overloads,
44 DrawImageUnscaledAndClipped.
46 2007-05-18 Sebastien Pouliot <sebastien@ximian.com>
48 * Icon.cs: Always open icon files as read only. Fix #81669.
50 2007-05-15 Sebastien Pouliot <sebastien@ximian.com>
52 * Graphics.cs: Fix DrawImageUnscaled for empty (width or height <= 0)
53 Fix NRE in DrawImageUnscaledAndClipped. Remove lines with only tabs in
55 * RectangleF.cs: A rectangle with a negative width or height is also
58 2007-05-09 Igor Zelmanovich <igorz@mainsoft.com>
60 * FontConverter.cs: for TARGET_JVM destructor is not used.
62 2007-05-03 Igor Zelmanovich <igorz@mainsoft.com>
64 * ColorConverter.cs: fixed GetStandardValues() for TARGET_JVM
65 * Font.jvm.cs: fixed GetHeight()
67 2007-05-02 Sebastien Pouliot <sebastien@ximian.com>
69 * gdipEnums.cs: Add GetSysColorIndex
70 * gdipStructs.cs: Remove GetSysColorIndex (it's an enum)
71 * KnownColors.cs: Fix Windows desktop colors as GetSysColor returns
72 values in BGR (not RGB).
74 2007-05-01 Sebastien Pouliot <sebastien@ximian.com>
76 * KnownColors.cs: Force alpha values (opaque) on Win32's GetSysColor.
78 2007-04-30 Sebastien Pouliot <sebastien@ximian.com>
80 * Color.cs: Reflection didn't like the change from int to uint (thanks
81 to Gert for noticing again :-).
83 2007-04-29 Konstantin Triger <kostat@mainsoft.com>
85 * Color.cs: FromName - do not throw on unknown color.
87 2007-04-26 Sebastien Pouliot <sebastien@ximian.com>
89 * Color.cs: Try to avoid calling GetName in GetHashCode when the color
90 isn't named. Commented code (#81465) to remove the string name member
91 for the 2.0 profile (to avoid a reference in a struct).
92 * ColorConverter.cs: Use the new KnownColor static uint array.
93 * ColorTranslator.cs: Share code between From[Win32|Ole] (both BGR).
94 Reduce ToHtml switch size (when html name == known color name).
95 * KnownColors.cs: Remove the array of struct for every known colors.
96 Add an array of uint with color values and a method to return the name
97 of a known color. Big reduction of the static ctor code size.
99 2007-04-26 Sebastien Pouliot <sebastien@ximian.com>
101 * gdipFunctions.cs: Add p/invoke definitions for GdipRecordMetafile
102 FromDelegate[I]_linux.
104 2007-04-26 Sebastien Pouliot <sebastien@ximian.com>
106 * gdipFunctions.cs: Add p/invoke definitions for GdipRecordMetafile
107 [FileName|FromStream][I].
109 2007-04-16 Sebastien Pouliot <sebastien@ximian.com>
111 * Bitmap.cs: Add check in SetPixel for Format16bppGrayScale (but
112 without requiring a second unmanaged call on each SetPixel call).
114 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
116 * Brush.cs: Ensure we're zeroing the handle before calling
117 CheckStatus. Some clean up.
118 * Pen.cs: Ensure we're zeroing the handle before calling CheckStatus.
119 Use Locale.GetText for exceptions.
121 2007-04-11 Sebastien Pouliot <sebastien@ximian.com>
123 * Bitmap.cs: Move LockBits validations into unmanaged code.
124 * gdipFunctions.cs: Add mapping for Win32Error in CheckStatus. Add
125 globalization support for CheckStatus and add the GDI+ status code in
127 * SolidBrush.cs: Clean up and add comments about [un]named colors.
129 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
131 * Color.cs: Remove duplicate check in == and add better comments
133 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
135 * Color.cs: Remove hashtables and locks. All color properties are read
136 from KnownColors. Remove extra & 0xFF (typecast to byte is enough).
137 Keep track of the Name property once calculated. When possible (most
138 likely case) don't create the names (strings) in Equals, == and !=
139 * ColorTranslator.cs: Use the new KnownColors instead of the separate
140 NamedColors and SystemColors.
141 * ColorConverter.cs: Use the new KnownColors instead of the separate
142 NamedColors and SystemColors.
143 * gdipFunctions.cs: Moved GetSysColor p/invoke signature here as this
144 class is marked by [SuppressUnmanagedCodeSecurity].
145 * gdipStructs.cs: Moved Windows-specific GetSysColorIndex enum here.
146 * KnownColors.cs: New. Single source for all colors.
147 * SystemColors.cs: Vastly simplified. All color properties are read
150 2007-04-05 Sebastien Pouliot <sebastien@ximian.com>
152 * gdipFunctions.cs: Remove unused (and not part of GDI+) GdipGetHfont
155 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
157 * Pen.cs: Simplify. Caching the brush still involved too many
158 unmanaged calls and was hiding libgdiplus bugs (e.g. 81266). Color is
159 still cached (a little less ;-) but needs to stay that way so we keep
160 the color names available (it's the expected behavior).
162 2007-03-20 Sebastien Pouliot <sebastien@ximian.com>
164 * Graphics.cs: Replace TODO on all EnumerateMetafile overloads.
166 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
168 * Font.cs: Add a better exception for trying to create a font
169 where the requested style is not available. [Fixes #81194]
171 2007-03-15 Sebastien Pouliot <sebastien@ximian.com>
173 * ColorConverter.cs: Rewrite the hex color convertion to be more
174 compatible with MS implementation (fixing NotWorking unit tests) and
175 more endian friendly.
177 2007-02-28 Sebastien Pouliot <sebastien@ximian.com>
179 * Font.cs: Remove internal SysFontName setter property and add a new
181 * SystemFonts.cs: We can't cache font instance (because anyone can
182 dispose them) so we must return new instances each time.
184 2007-02-27 Sebastien Pouliot <sebastien@ximian.com>
186 * Bitmap.cs: Removed unrequired ctors.
187 * TextureBrush.cs: Change which GDI+ calls is used to create the
188 brush (to better match what you expect from libgdiplus source). Add
189 [MonoLimitation] to ctors accepting ImageAttributes (not supported
190 by libgdiplus). Split some long lines into two lines.
192 2007-02-26 Sebastien Pouliot <sebastien@ximian.com>
194 * gdipFunctions.cs: Add p/invoke signature for GDI DeleteObject.
195 * Region.cs: Under Windows use DeleteObject when calling ReleaseHrgn.
198 2007-02-21 Sebastien Pouliot <sebastien@ximian.com>
200 * Image.cs: Fix Metefile.ctor usage (to avoid creating, and leaking,
201 an unmanaged metafile object);
203 2007-02-16 Sebastien Pouliot <sebastien@ximian.com>
205 * gdipFunctions.cs: Fix some p/invoke definitions (int versus uint)
206 and add more for metafile functions.
207 * Image.cs: Fix usage of corrected p/invoke signatures.
209 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
211 * SystemColors.cs: Query Windows for the colors added to this class
212 for 2.0. (Windows-only path of course.)
214 2007-02-13 Sebastien Pouliot <sebastien@ximian.com>
216 * Icon.cs: Ignore Vista 256x256 icons, just like MS does.
218 2007-02-09 Sebastien Pouliot <sebastien@ximian.com>
220 * Icon.cs: Resurrected some old Icon to Bitmap code from SVN history
221 to handle convertion for Win32, where MS GDI+ ICO codec doesn't
222 support all the icon formats supported by the Icon class.
224 2007-02-08 Sebastien Pouliot <sebastien@ximian.com>
226 * Bitmap.cs: Adapt code wrt Image changes. Reuse the serialization
227 ctor from Image to avoid duplicate code.
228 * gdipEnums.cs: Added ImageType. Clean up extra stuff.
229 * gdipFunctions.cs: Added GdipGetImageType and some metafile
231 * Image.cs: Refactor code not to create a Bitmap for every images
232 (e.g. FromFile, FromStream) as the result can also be a Metafile.
234 2007-01-30 Sebastien Pouliot <sebastien@ximian.com>
236 * Image.cs: Fix serialization of Image/Bitmap that contains ICO. In
237 this case the image is serialized as a PNG bitmap (note: the ICO codec
238 is a decoder-only codec).
240 2007-01-19 Sebastien Pouliot <sebastien@ximian.com>
242 * Graphics.cs: Fix FromImage to check for indexed images inside
243 managed code (and not GDI+ which will report the wrong error code
244 for the exception we expect).
245 * Image.cs: Remove unused private method IsIndexedPixelFormat.
247 2007-01-19 Sebastien Pouliot <sebastien@ximian.com>
249 * Font.cs: Fix calls to GDIPlus.ReleaseDC (missing parameter). This
250 fix the GDI object leaks under Win32 (#80552).
251 * gdipFunctions.cs: Fix ReleaseDC signature (missing hWnd).
252 * Graphics.cs: Fix ReleaseDC signature (missing hWnd) in NET_2_0.
254 2007-01-19 Sebastien Pouliot <sebastien@ximian.com>
256 * Font.cs: Under Win32 cache the LOGFONT we use to create the HFONT
257 handle. This "hides" the fact that ToLogFont leaks (#80552).
259 2007-01-17 Sebastien Pouliot <sebastien@ximian.com>
261 * gdipFunctions.cs: Added Win32 CreateIconIndirect and DestoryIcon
262 imports. Both are required under Win32 to get HICON stuff working.
263 Added some GDI+ Metafile related definitions too.
264 * gdipStructs.cs: Update IconInfo structure so it can be used when
265 calling CreateIconIndirect on Win32.
266 * Icon.cs: Add support for handles under Win32.
268 2007-01-16 Sebastien Pouliot <sebastien@ximian.com>
270 * Icon.cs: Implement saving an icon from it's bitmap representation.
271 This allows roundtripped icons (Handle or HICON) to be saved.
273 2007-01-15 Sebastien Pouliot <sebastien@ximian.com>
275 * Icon.cs: Refactor Save code to allow saving a single icon size.
276 This allows ToBitmap to produce the right (sized) bitmap wrt the
277 selected icon size. Fix #80509 under UNIX.
279 2007-01-15 Sebastien Pouliot <sebastien@ximian.com>
281 * Bitmap.cs: Make sure we're not building bitmaps using stream that
282 can be disposed (as GDI+ may require access to them anytime);
283 * Icon.cs: Change icon selection to match either width *or* height.
284 * Image.cs: Track user versus internal streams in InitFromStream
286 2007-01-12 Sebastien Pouliot <sebastien@ximian.com>
288 * Graphics.cs: Change DrawIcon* methods to use the internal bitmap
289 we keep for the Icon. This is required to let HICON support work with
290 libgdiplus (and should be faster than creating a new bitmap each time)
291 * Icon.cs: Fix ctor exceptions. Select the correct icon when multiple
292 size are available (and do not match the requested size). Fix handle
293 support for work under UNIX (Win32 support still missing). Keep an
294 internal bitmap for the Icon to use for HICON support.
296 2007-01-11 Sebastien Pouliot <sebastien@ximian.com>
298 * Icon.cs: Fix .ctor(string) to load, when available, the 32x32 icon.
299 Remove TARGET_JVM from file (Mainsoft now use Icon2.jvm.cs). Use GDI+
300 to implement ToBitmap method (previous results were wrong).
302 2007-01-10 Sebastien Pouliot <sebastien@ximian.com>
304 * Image.cs: Fix Palette to call into GDI+ even for non-indexed images.
305 This case can occurs with the ICOn codec where the returned image is a
306 32bpp ARGB bitmap *with* a palette.
308 2007-01-09 Sebastien Pouliot <sebastien@ximian.com>
310 * Font.cs: Unify platform detection code.
311 * gdipFunctions.cs: Unify platform detection code.
312 * Graphics.cs: Unify platform detection code.
313 * Image.cs: Unify platform detection code.
314 * SystemColors.cs: Unify platform detection code.
316 2007-01-08 Sebastien Pouliot <sebastien@ximian.com>
318 * gdipStructs.cs: Add support for SignaturePatterns and
319 SiggnatureMasks values.
321 2006-12-30 Alexander Olk <alex.olk@googlemail.com>
323 * gdipFunctions.cs: Don't create "millions" of byte arrays in
324 GdiPlusStreamHelper. Just create a default size array and resize it
325 only when needed. (as an example: the FileDialog sample created more
326 than 1700 new byte arrays on my system before the patch, now only 74)
328 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
330 * Brush.cs: Fixed line endings.
331 * BufferedGraphicsContext.cs: Fixed line endings.
332 * CharacterRange.cs: Fixed line endings.
333 * Graphics.cs: Fixed line endings.
334 * IDeviceContext.cs: Fixed line endings.
335 * SizeFConverter.cs: Fixed line endings.
336 * SystemBrushes.cs: Fixed line endings.
337 * SystemFonts.cs: Fixed line endings.
338 * SystemPens.cs: Fixed line endings.
340 2006-12-22 Sebastien Pouliot <sebastien@ximian.com>
342 * Graphics.cs: Splitted CopyFromScreen into platform specific methods
343 and added MonoLimitations to all overloads. This should get better
346 2006-12-19 Sebastien Pouliot <sebastien@ximian.com>
348 * FontFamily.cs: More accurate Mono* attributes to avoid confusion.
349 * Icon.cs: Dummy implementation of ExtractAssociatedIcon to always
350 return SystemIcons.WinLogo (which is better than throwing an NIE).
351 Updated MonoTODO, to a MonoLimitation, to reflect the change.
353 2006-12-14 Sebastien Pouliot <sebastien@ximian.com>
355 * Image.cs: Rework Clone so it doesn't confuse MoMA to report a NIE.
356 Cloning works for bitmap. Metafiles aren't (actually) supported.
358 2006-12-07 Sebastien Pouliot <sebastien@ximian.com>
360 * Icon.cs: Revert a change from r68882. The type is also part of the
361 icon's name. Fix bug #80181.
363 2006-12-03 Sebastien Pouliot <sebastien@ximian.com>
365 * Icon.cs: Add a new ctor that returns undisposable Icon instances
366 (required when used from SystemIcons). Added a dispose check in
367 ToBitmap (many other are missing).
368 * SystemIcons.cs: Change icons to the one already in SVN.
370 2006-12-02 Sebastien Pouliot <sebastien@ximian.com>
372 * FontConverter.cs: Add a comment why the empty finalizer is required.
373 * gdipFunctions.cs: Remove warning from build (unused variable).
374 * Icon.cs: Fix .ctor accepting a type - the type is to find the
375 assembly, not the type of the ressource.
376 * SystemIcons.cs: Load some icons from the assembly (all the same Mono
379 2006-11-22 Sebastien Pouliot <sebastien@ximian.com>
381 * BufferedGraphicsContext.cs: Better MonoTODO.
382 * BufferedGraphics.cs: Better MonoTODO.
383 * Font.cs: Better MonoTODO.
384 * FontFamily.cs: Better MonoTODO.
385 * Graphics.cs: Better MonoTODO.
386 * Icon.cs: Better MonoTODO.
387 * Image.cs: Second chance while saving using the current RawFormat.
388 This allows icons to be saved as PNG (strange but look at unit tests).
389 * ImageFormatConverter.cs: Implement GetStandardValues (and remove
390 it's MonoTODO) and fix GetStandardValuesSupported (to return true).
391 * Region.cs: Implement ReleaseHrgn (2.0) - not really useful (as the
392 handle is never exposed) but it's easier than to document the TODO ;-)
393 * SystemIcons.cs: Better MonoTODO.
395 2006-11-06 Sebastien Pouliot <sebastien@ximian.com>
397 * RectangleF.cs: Fix operator !=. Patch by Manuel Alejandro Cerón
400 2006-11-04 Chris Toshok <toshok@ximian.com>
402 * SystemColors.cs: reassign the given color to the return value of
403 UpdateKnownColor. This makes sure that the color has the same
404 SystemColor name. So, SystemColors.Control.Name always equals
405 "Control", regardless of the values the theme has stuffed in it.
407 * Color.cs: UpdateKnownColor now returns the new color.
409 2006-10-11 Sebastien Pouliot <sebastien@ximian.com>
411 * Graphics.cs: In MeasureCharacterRanges throw an ArgumentException if
412 StringFormat is null and return an empty region array if no range exists
413 (avoid GDI+ error/exeception). In MeasureString (2 overloads) replace
414 999999 by Int32.MaxValue (now that the real bug is fixed).
415 * StringFormat.cs: Ensure we are clearing the handle before throwing
418 2006-09-21 Sebastien Pouliot <sebastien@ximian.com>
420 * gdipFunctions.cs: Throw an OverflowException for the ValueOverflow
423 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
425 * gdipFunctions.cs, Image.cs: 78315. Probably in the future we should
426 add the same checking for other resource release GDI API calls.
428 2006-09-19 Sebastien Pouliot <sebastien@ximian.com>
430 * StringFormat.cs: Add missing validations.
432 2006-09-18 Sebastien Pouliot <sebastien@ximian.com>
434 * Graphics.cs: Add missing validations to MeasureCharacterRanges.
436 2006-09-18 Sebastien Pouliot <sebastien@ximian.com>
438 * Graphics.cs: Reorder instructions in MeasureString methods to avoid
439 allocations before checking for quick exit case (null/String.Empty
440 text or throwing execptions).
442 2006-09-11 Sebastien Pouliot <sebastien@ximian.com>
444 * ImageConverter.cs: Fixed ConvertTo to deal with null values (#79331)
445 and not to "return new NotSupportedException", throwing them is better
447 2006-09-07 Kornél Pál <kornelpal@gmail.com>
449 * ComIStreamMarshaler.cs: ManagedToNativeWrapper: Dispose COM vtable
450 on shutdown. Dispose unmanaged resources when constructor fails.
452 2006-09-06 Kornél Pál <kornelpal@gmail.com>
454 * ComIStreamMarshaler.cs: ManagedToNativeWrapper should not have a
455 destructor because it is freed using Release. (Proper fix for bug
456 #78315.) Free COM vtable when unloading and all objects Released.
458 2006-09-06 Jonathan Chambers <joncham@gmail.com>
460 * ComIStreamMarshaler.cs: Only deallocate memory
461 for COM wrapper if not shutting down. #78315
463 2006-09-04 Jonathan Chambers <joncham@gmail.com>
465 * ComIStreamMarshaler.cs: Do not deallocate unmanaged memory
466 allocated for vtable. If this finalizer runs before all clients
467 are done with it (Image(s) in this case) we crash on windows. #78315
469 2006-09-01 Sebastien Pouliot <sebastien@ximian.com>
471 * Bitmap.cs: Fix exceptions for LockBits.
473 2006-08-28 Sebastien Pouliot <sebastien@ximian.com>
475 * ImageAnimator.cs: Remove catch/throw in WorkerThread (it hides the
476 original exception). Found with Gendarme.
477 * Color.cs: Remove the double-check lock. Found with Gendarme.
478 * ColorConverter.cs: Remove the double-check lock. Found with Gendarme
480 2006-08-28 Jonathan Chambers <joncham@gmail.com>
482 * ComIStreamMarshaler.cs: Do not free memory allocated for
483 Com Callable Wrapper for stream. When Image created from stream
484 is destroyed, it calls Release on CCW interface. Somehow we seem
485 to be destroying Stream CCW before Image is destroyed. Fixes
486 crash on exit on Windows. #78315
488 2006-08-28 Boris Kirzner <borisk@mainsoft.com>
490 * SystemColors.jvm.cs: fix array size for NET_2_0
492 2006-08-27 Sebastien Pouliot <sebastien@ximian.com>
494 * ColorConverter.cs: Catch the case where the integer part of the
495 color doesn't fit into a 32bit integer.
496 * ColorTranslator.cs: Fixed Gendarme's UseStringEmptyRule on ToHtml
497 method. Fixed string handling on FromHtml method. Fixed all parameter
500 2006-08-25 Sebastien Pouliot <sebastien@ximian.com>
502 * gdipFunctions.cs: Change ColorMatrix to IntPtr in method
503 GdipSetImageAttributesColorMatrix definition.
504 * FontConverter.cs: Fix compiler warnings.
506 2006-08-24 Sebastien Pouliot <sebastien@ximian.com>
508 * TextureBrush.cs: Remove private Image member as we cannot, without
509 cloning it (which removes the advantage of caching it), return it for
510 the Image property *and* we cannot dispose of it properly (Dispose
513 2006-08-22 Sebastien Pouliot <sebastien@ximian.com>
515 * gdipFunctions.cs: Fix GdipGetImageWidth to use an uint for it's
517 * Image.cs: Cast the uint into an int for the Width property.
519 2006-08-12 Duncan Mak <duncan@novell.com>
521 * gdipFunctions.cs (GdipLoadImageFromStream):
522 (GdipSaveImageToStream): Don't include these methods when
523 compiling the unit tests.
525 2006-08-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
527 * gdipFunctions.cs: return -1 when stream.Length throws.
529 2006-08-11 Sebastien Pouliot <sebastien@ximian.com>
531 * Font.cs: Remove the, now unrequired, FaceNameOffset field and
532 use the object size instead of the structure size when copying.
534 2006-08-11 Sebastien Pouliot <sebastien@ximian.com>
536 * Font.cs: Added more checks to ToLogFont and fixed it's behaviour
537 to match MS boundary between GDI+ and SD.
539 2006-08-07 Andrew Skiba <andrews@mainsoft.com>
541 * Graphics.jvm.cs, Pen.jvm.cs, Region.jvm.cs: TARGET_JVM fix
543 2006-08-05 Sebastien Pouliot <sebastien@ximian.com>
545 * Font.cs: Avoid double cast in Equals. Return lfCharSet as 1 in
546 ToLogFont even if GDI+ has that value to 0.
548 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
550 * Icon.cs: when converting to Bitmap, handle the 24 bits separately.
551 Read the XOR and AND masks in a single read.
553 2006-08-04 Sebastien Pouliot <sebastien@ximian.com>
555 * Pen.cs: Fix unit tests wrt libgdiplus return value change.
557 2006-08-03 Sebastien Pouliot <sebastien@ximian.com>
559 * FontFamily.cs: Fix unit tests wrt libgdiplus return value change.
560 * Region.cs: Fix unit tests wrt libgdiplus return value change.
562 2006-08-01 Jonathan Chambers <joncham@gmail.com>
564 * Font.cs: Fix marshalling of LOGFONT in ToHfont.
567 2006-07-20 Sebastien Pouliot <sebastien@ximian.com>
569 * Graphics: Added implementation for ReleaseHDC by Jonathan Pobst
572 2006-07-06 Sebastien Pouliot <sebastien@ximian.com>
574 * Image.cs: Ensure we're setting the nativeObject to NULL before
575 throwing any exception while disposing (and avoid possible double
576 freeing). Avoid multiple casts in Clone method.
577 * Pen.cs: Ensure the internal pen's brush is always disposed
578 correctly. Avoid making a reference to the internal brush.
579 * SolidBrush.cs: Avoid setting color when cloning the solid brush
580 as the .ctor(IntPtr) always does this job.
582 2006-07-04 Sebastien Pouliot <sebastien@ximian.com>
584 * Image.cs: Made GetThumbnailImage throw OutOfMemoryException when
585 image size is invalid (to match MS behaviour), also ensure that the
586 Graphics instance is disposed even if CheckStatus throws an exception.
588 2006-06-26 Sebastien Pouliot <sebastien@ximian.com>
590 * Pen.cs: Ensure we dispose of an existing brush before replacing it.
591 Avoid double-cast when dealing with SolidBrush.
593 2006-06-06 Sebastien Pouliot <sebastien@ximian.com>
595 * gdipFunctions.cs: Fix API signature (missing pen pointer) for
596 GdipIsOutlineVisiblePathPoint[I] methods.
597 * FontFamily.cs: Delay the call to refreshName until it is actually
600 2006-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
602 * Color.cs: when deserializing from an MS generated stream, the value
603 for known colors was 0. These changes make our Color handle that case.
604 We won't serialize the name for known colors either, but the value will
605 be there, so we only check for a 0 value on a known color once.
608 2006-05-30 Sebastien Pouliot <sebastien@ximian.com>
610 * Font.cs: Change default charset to 1. Ensure we always call the
611 CheckStatus method after calling GDI+. Added null checks to match MS
613 * FontFamily.cs: Avoid double-cast in Equals. Fixed Equals not compare
614 pointers but names. Simplify the Generic* static properties by reusing
615 the .ctor code. Fixed ToString to match MS output. Removed
616 GetStyleCheck as it failed when multiple styles were provided (flags).
617 * gdipFunctions.cs: Convert Status.FontFamilyNotFound to an
620 2006-05-29 Sebastien Pouliot <sebastien@ximian.com>
622 * ImageFormatConverter.cs: Changed ConvertFrom to work with both short
623 (e.g. Bmp) and long (e.g. guid) names.
625 2006-05-26 Sebastien Pouliot <sebastien@ximian.com>
627 * ImageFormatConverter.cs: Fixing unit tests for ImageFormat
628 introduced a regression in the converter (not catched by other unit
631 2006-05-25 Sebastien Pouliot <sebastien@ximian.com>
633 * gdipFunctions.cs: Added wrapper methods for GdipGetRegionHRgn and
634 GdipCreateRegionHrgn functions.
635 * Region.cs: Reimplement GetHrgn and FromHrgn methods using the GDI+
638 2006-05-24 Sebastien Pouliot <sebastien@ximian.com>
640 * PointConverter.cs: Fx 2.0 throws an ArgumentException in
641 CreateInstance if some values are missing from the dictionary, while
642 1.x throws an NullReferenceException.
643 * RectangleConverter.cs: Fx 2.0 throws an ArgumentException in
644 CreateInstance if some values are missing from the dictionary, while
645 1.x throws an NullReferenceException.
646 * SizeConverter.cs: Fx 2.0 throws an ArgumentException in
647 CreateInstance if some values are missing from the dictionary, while
648 1.x throws an NullReferenceException.
649 * SizeFConverter.cs: Fix CreateInstance to use float (not int).
651 2006-05-24 Sebastien Pouliot <sebastien@ximian.com>
653 * Font.cs: Added a Demand for UnmanagedCode on both ToLogFont methods.
654 * Graphics.cs: Added checks for null Rectangle[F] arrays in
655 FillRectangles methods and removed the check for 0-length (MS throws).
656 Let EndContainer mthod throws a NullReferenceException on 1.x profile.
657 * Pen.cs: Let Brush property throws a NullReferenceException on 1.x.
659 2006-05-24 Sebastien Pouliot <sebastien@ximian.com>
661 * Pen.cs: Clone the supplied brush in the .ctor (as the user may
662 dispose of it anytime). Make sure we're disposing our cached brush
663 when disposing the pen.
665 2006-05-21 Sebastien Pouliot <sebastien@ximian.com>
667 * ContentAlignment.cs: Removed [Serializable] from 2.0 profile.
668 * FontStyle.cs: Removed [Serializable] from 2.0 profile.
669 * GraphicsUnit.cs: Removed [Serializable] from 2.0 profile.
670 * KnownColor.cs: Removed [Serializable] from 2.0 profile.
671 * RotateFlipType.cs: Removed [Serializable] from 2.0 profile.
672 * StringAligment.cs: Removed [Serializable] from 2.0 profile.
673 * StringDigitSubstitute.cs: Removed [Serializable] from 2.0 profile.
674 * StringFormatFlags.cs: Removed [Serializable] from 2.0 profile.
675 * StringTrimming.cs: Removed [Serializable] from 2.0 profile.
676 * StringUnit.cs: Removed [Serializable] from 2.0 profile.
678 2006-05-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
680 * ImageAnimator.cs: get the FrameDelay from the image properties, if
681 available. Remove ^Ms.
683 2006-05-17 Sebastien Pouliot <sebastien@ximian.com>
685 * Pen.cs: Get the pen color from the solid brush (when applicable).
686 Added missing validations for most properties. Always return a clone
687 of the internal brush (so no one can dispose of it in our back).
689 2006-05-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
691 * Color.cs: make it serialization-compatible with MS. Fixes bug #78265.
693 2006-05-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
695 * Bitmap.cs: (Clone) use the 'format' argument instead of the
698 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
700 * Graphics.cs : (FillRectangles/FillRectanglesI): when argument
701 array is empty, don't invoke GDI+. Fixed bug #78408.
703 2006-05-12 Sebastien Pouliot <sebastien@ximian.com>
705 * gdipFunctions.c: Fix misnamed GdipAdd*Path*String[I] API (#78383)
707 2006-05-11 Peter Dennis Bartok <pbartok@novell.com>
709 * Icon.cs: Don't require width/height to be non-0 when creating from
710 serialized data, just require them to be square
712 2006-05-04 Sebastien Pouliot <sebastien@ximian.com>
714 * Graphics.cs: Chaned DrawIcon methods to dispose the temporary bitmap
717 2006-05-04 Sebastien Pouliot <sebastien@ximian.com>
719 * Graphics.cs: Added a MonoTODO to PixelOffsetMode property so it shows
720 (in the class status library) a note that this isn't supported with
723 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
725 * FontConverter.cs (ConvertFrom): Implemented it properly. Fixes #78269
727 2006-05-02 Sebastien Pouliot <sebastien@ximian.com>
729 * PointF.cs: Add operators + and - between PointF and SizeF in the
730 2.0 profile (CSC 8.x can compile that, but sadly it doesn't show in as
731 missing in corcompare results).
733 2006-05-02 Sebastien Pouliot <sebastien@ximian.com>
735 * gdipFunctions.cs: Fixed wrappers for Gdip[Begin|End]Container[2][I]
736 * Graphics.cs: Fixed usage of fixed API ;-) Added MonoTODO on
737 BeginContainer methods that use rectangles and on TextContrast property
738 (all aren't currently supported in libgdiplus).
740 2006-05-01 Sebastien Pouliot <sebastien@ximian.com>
742 * Graphics.cs: Removed MonoTODO on DrawCurve methods (it's fixed in
743 libgdiplus). Fixed minor extra/missing for corcompare.
745 2006-05-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
747 * SizeF.cs: serialization compatibility fixes. Closes bug #78236.
749 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
751 * Icon.cs: Icon AND masks are organized in strides, fixed to calculate
752 and set proper transparency. Also fixed broken calculation of AND
753 size when reading the icon. NDocGui now shows pretty buttons.
755 2006-04-28 Sebastien Pouliot <sebastien@ximian.com>
757 * Color.cs: corcompare fix. Remove ComVisible attribute from 2.0 build
758 * Region.cs: Remove old todo that were fixed in libgdiplus.
759 * Image.cs: corcompare fixes. Clone isn't virtual. Added DefaultValue
760 attribute to Tag property. FromStream(Stream,bool,bool) is available
761 in Fx 1.1 (probably since SP1).
763 2006-04-28 Sebastien Pouliot <sebastien@ximian.com>
765 * Graphics.cs: Added MonoTODO on some DrawCurve methods because
766 libgdiplus doesn't use the numberOfSegments argument.
768 2006-04-27 Sebastien Pouliot <sebastien@ximian.com>
770 * gdipFunctions.cs: Added wrappers for GdipAddPathLine2 and
771 GdipAddPathLine2I methods (to allow adding a single point).
773 2006-04-27 Sebastien Pouliot <sebastien@ximian.com>
775 * gdipFunctions.cs: Added CharSet=CharSet.Unicode to GdipAddString and
776 GdipAddStringI wrapper methods.
778 2006-04-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
780 * Bitmap.cs: throw when the target pixel format differs from the one
781 of the image and it's an indexed format. We were failing in UnlockBits
784 2006-04-25 Miguel de Icaza <miguel@novell.com>
786 * FontConverter.cs (FontUnitConverter): implement. CorCompare
787 for some reason does not dig into nested classes, match the
790 (FontNameConverter): Return the fonts available on the system.
792 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
794 * Icon.cs: We need to or, not and our alpha values into the
795 palette. Also, we need to actually store the altered palette
796 on the bitmap, since we are altering a copy.
798 2006-04-10 Sebastien Pouliot <sebastien@ximian.com>
800 * gdipFunctions.cs: Fixed wrappers for GdipCreateMatrix3[I].
802 2006-03-23 Peter Dennis Bartok <pbartok@novell.com>
805 - GdipGetFontCollectionFamilyList: No need for complicated
806 GlobalAlloc stuff, .Net marshals the IntPtr[] array just fine
807 - GdipDeletePrivateFontCollection: We need to pass a ref to the
808 structure. This was causing nasty crashes.
809 - GdipGetFamilyName: Switched to use StringBuilder instead of
811 * FontFamily.cs: Simplified the refreshName method, less error-prone now
813 2006-03-21 Sebastien Pouliot <sebastien@ximian.com>
815 * Brush.cs: Remove unused code.
816 * FontFamily.cs: Remove warnings from build.
817 * gdipFunctions.cs: Add missing p/invoke calls for GdipAddString[I].
819 2006-03-21 Sebastien Pouliot <sebastien@ximian.com>
821 * gdipFunctions.cs: Import XFree (from libX11) so we can free the
823 * Graphics.cs: Free the memory we get from XGetVisualInfo.
825 2006-03-20 Sebastien Pouliot <sebastien@ximian.com>
827 * Brush.cs: Allow Dispose to free the unmanaged memory for the brush
828 in every case. This has been known (in the past) to cause crashes
829 in Cairo. If still true then we need to find out why!
831 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
833 * gdipFunctions.cs: Removed XCloseDisplay call from Gdi+ shutdown,
834 it was causing crashes in the finalizers (bug #77464)
836 2006-03-06 Jonathan Gilbert <logic@deltaq.org>
838 * gdipFunctions.cs: Rewrote the StreamSeekImpl function to invalidate
839 the start_buf cached bytes whenever Seek() is actually called. If
840 Seek is not called (an invalid 'whence' value), then the buffer is
841 not invalidated. This fixes a bug with TIFF loading.
843 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
845 * Image.cs (ISerializable.GetObjectData): Save the image in it's
846 original format. (Fixes #77673)
848 2006-02-28 Jonathan Chambers <jonathan.chambers@ansys.com>,
849 Peter Dennis Bartok <pbartok@novell.com>
852 - ToLogFont: Reworked to allow running under MS runtime and to
853 support it being called with both boxed structs and formatted
854 classes (MS runtime PtrToStructure cannot marshal boxed value
855 types, but Marshal.AsAny can)
856 - Switched all usage of LOGFONTA to more generic CharSet-driven
858 - FromLogFont: Switched to use charset-agnostic GdipCreateFontFromLogfont
859 * gdipStructs.cs: Dropped LOGFONTA and LOGFONTW and switched to
860 CharSet-driven LOGFONT structure (needed because of ToLogFont fix)
861 * gdipFunctions.cs: Switched GdipGetLogFont, GdipCreateFontFromLogfont and
862 CreateFontIndirect to use LOGFONT structure, set to be CharSet=Auto
863 (needed because of ToLogFont fix)
865 2006-02-18 Duncan Mak <duncan@novell.com>
867 * Graphics.cs (DrawBeziers): Patch from Alexander Olk to fix
868 possible IndexOutOfRangeException.
870 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
872 * Image.cs, Bitmap.cs: Removed unneeded casts
873 * Icon.cs: Fixed code to be 64bit safe
875 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
877 * Font.cs: Fixes 77407
879 2006-01-27 Sebastien Pouliot <sebastien@ximian.com>
881 * Font.cs: Ensure unmanaged memory is free correctly in ToLogFont
882 even if GDIPlus.CheckStatus throws an exception;
883 * Image.cs: Ensure unmanaged memory is free correctly even if
884 GDIPlus.CheckStatus throws an exception. Note: the SetPropertyItem use
885 case is unclear to me (and unimplemented in libgdiplus);
886 * Region.cs: Ensure unmanaged memory is free correctly in
887 GetRegionScans even if GDIPlus.CheckStatus throws an exception;
889 2006-01-27 Jordi Mas i Hernandez <jordimash@gmail.com>
891 * gdipFunctions.cs: New gdiplus imports
892 * Font.cs: Use gdiplus calls to get font height and size
894 2006-01-26 Sebastien Pouliot <sebastien@ximian.com>
896 * FontFamily.cs: Free the memory allocated with Marshal.AllocHGlobal.
897 * Region.cs: Updated TODO to reflect current status.
899 2006-01-24 Konstantin Triger <kostat@mainsoft.com>
901 * Font.jvm.cs, FontFamily.jvm.cs: use static container.
903 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
905 * Icon.cs: The code wrongly assumed that the stride for the icon
906 would be the same as the stride for the bitmap. This was causing
909 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
911 * Icon.cs: Reworked ToBitmap() method to not use Bitmap(Stream)
912 which when calling down to MS GDI+ will create an image
913 where neither GetPixel or Save can be used on.
915 2006-01-18 Sebastien Pouliot <sebastien@ximian.com>
917 * gdipFunctions.cs: Added declaration for GdipCreateRegionRgnData.
918 * Region.cs: Implemented .ctor(RegionData)
920 2006-01-13 Miguel de Icaza <miguel@novell.com>
922 * Region.cs: Revert the Region.cs check in GetHrgn as it was used
923 by our Windows.Forms implementation.
925 2006-01-11 Sebastien Pouliot <sebastien@ximian.com>
927 * Graphics.cs: Avoid creating bitmaps two times if both X and Y
928 default DPI are required (i.e. init both value in both cases).
929 * Region.cs: Added null check to match MS behaviour (exception type)
930 and avoid NRE (before CheckStatus is called). Added security demands
931 for unmanaged code on both FromHrgn and ReleaseHrgn (2.0) methods.
933 2005-12-22 Jonathan Chambers <jonathan.chambers@ansys.com>
935 * gdipFunctions.cs: Do not call GdiplusShutdown for
936 now as it causes a crash on MS GDI+.
938 2005-12-20 Konstantin Triger <kostat@mainsoft.com>
940 * Font.jvm.cs: charset support.
942 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
944 * Graphics.cs (Flush): Make sure nativeObject is not null
946 2005-12-14 Konstantin Triger <kostat@mainsoft.com>
948 * StrokeFactory.jvm.cs: create AdvancedStroke when have penTransform.
950 2005-12-13 Konstantin Triger <kostat@mainsoft.com>
952 * Bitmap.jvm.cs: Fix MakeTransparent.
954 2005-12-07 Jordi Mas i Hernandez <jordimash@gmail.com>
956 * Graphics.cs: Add new deephs support to CopyFromScreen
958 2005-12-07 Jordi Mas i Hernandez <jordimash@gmail.com>
960 * BufferedGraphicsManager.cs: Fixes signature
962 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
965 - Implemented FromLogFont
966 - Implemented ToLogFont
969 - Added GdipGetLogFontW method
970 - Specified charset for GdipGetLogFontA method
971 * gdipStructs.cs: Added LOGFONTW structure
973 2005-12-05 Gert Driesen <drieseng@users.sourceforge.net>
975 * BufferedGraphics.cs: Removed duplicate class. Set eol-style to
977 * BufferedGraphicsManager.cs: Removed duplicate class. Set eol-style
980 2005-12-05 Jordi Mas i Hernandez <jordimash@gmail.com>
982 * gdipFunctions.cs: DllExports need it to implement
983 new Graphics.CopyFromScreen .Net 2.0 methods
984 * IDeviceContext.cs: New .Net 2.0 interface
985 * Color.cs: Fixes for new .Net 2.0 KnowColors
986 * PointF.cs: New .Net 2.0 Add/Subtract methods
987 * gdipStructs.cs: Structs need it for Graphics.CopyFromScreen
988 * SystemBrushes.cs: New standard SystemBrushes for .Net 2.0
989 * SizeF.cs: New .Net 2.0 Add/Subtract methods
990 * FontConverter.cs: New .Net 2.0 fixes
991 * SystemColors.cs: New standard SystemColors for .Net 2.0
992 * SizeFConverter.cs: New .Net 2.0 class (based on SizeConverter)
993 * CharacterRange.cs: : New .Net 2.0 methods
994 * Size.cs: New .Net 2.0 Add/Subtract methods
995 * SystemPens.cs: New standard SystemPens for .Net 2.0
996 * Bitmap.cs: New .Net 2.0 methods
997 * Region.cs: New .Net 2.0 methods
998 * Brush.cs: New .Net 2.0 constructor
999 * Icon.cs: New .Net 2.0 Constructors and methods
1000 * Point.cs: New .Net 2.0 Add/Subtract methods
1001 * BufferedGraphicsManager.cs: New .Net 2.0 class
1002 * Graphics.cs: New methods for .Net 2.0 and fixes
1003 * BufferedGraphics.cs: New .Net 2.0 class
1004 * Font.cs: New .Net 2.0 properties
1005 * Image.cs: New .Net 2.0 tag property
1006 * KnownColor.cs: New .Net 2.0 know colors
1007 * CopyPixelOperation.cs: New .Net 2.0 enum
1008 * SystemFonts.cs: New .Net 2.0 class
1009 * BufferedGraphicsContext.cs: New .Net 2.0 class
1011 2005-11-28 Konstantin Triger <kostat@mainsoft.com>
1013 * SystemIcons.jvm.cs: refactoring.
1015 2005-11-28 Konstantin Triger <kostat@mainsoft.com>
1017 * Icon.cs: TARGET_JVM changes.
1019 2005-11-17 Vladimir Krasnov <vladimirk@mainsoft.com>
1021 * Image.jvm.cs: fixed Save, flush output stream
1023 2005-11-17 Konstantin Triger <kostat@mainsoft.com>
1025 * StrokeFactory.jvm.cs, Pen.jvm.cs, Graphics.jvm.cs: performance - use BasicStroke when possible.
1027 2005-11-17 Vladimir Krasnov <vladimirk@mainsoft.com>
1029 * ColorConverter.cs: fixed ConvertFrom, to be able
1030 to convert from three digit notation color (#abc)
1032 2005-11-16 Konstantin Triger <kostat@mainsoft.com>
1034 * Bitmap.jvm.cs: open a correct stream.
1036 2005-11-16 Konstantin Triger <kostat@mainsoft.com>
1038 * FontFamily.jvm.cs, Font.jvm.cs: throw exception if invalid params.
1040 2005-11-16 Konstantin Triger <kostat@mainsoft.com>
1042 * FontFamily.jvm.cs: fix for custom font collection
1044 2005-11-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1046 * FontFamily.jvm.cs: fixed GetName
1048 2005-11-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1050 * Bitmap.jvm.cs: fixed InternalSave() error handling
1051 * Image.jvm.cs: fixed Save() error handling
1053 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1055 * FontFamily.jvm.cs: Refactoring.
1057 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1059 * Font.jvm.cs: Refactoring.
1061 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1063 * StringFormat.jvm.cs, Graphics.jvm.cs: DrawString,
1064 MeasureString support
1066 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1068 * FontFamily.jvm.cs: correctly initialize fontcollection
1070 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1072 * FontFamily.jvm.cs: DrawMargin, refactoring.
1074 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1076 * Graphics.jvm.cs, Pen.jvm.cs, AdvancedStroke.jvm.cs:
1077 Differentiate standard and AntiAlias stroking
1079 2005-11-10 Vladimir Krasnov <vladimirk@mainsoft.com>
1081 * Graphics.jvm.cs: added UnitConversion property
1082 * FontFamily.jvm.cs: refactoring
1083 * Font.jvm.cs: refactoring
1085 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
1088 - Implemented serialization constructor
1089 - Implemented GetObjectData()
1091 2005-11-01 Vladimir Krasnov <vladimirk@mainsoft.com>
1093 * StringFormat.jvm.cs: Refactoring
1095 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
1097 * Image.cs: Default format for MemoryBMP should be Png
1099 2005-10-27 Vladimir Krasnov <vladimirk@mainsoft.com>
1101 * Bitmap.jvm.cs: fixed InternalSave
1102 * Image.jvm.cs: fixed Save
1104 2005-10-27 Vladimir Krasnov <vladimirk@mainsoft.com>
1106 * Image.jvm.cs: fixed redolution properties
1108 2005-10-27 Vladimir Krasnov <vladimirk@mainsoft.com>
1110 * Bitmap.jvm.cs: fixed InternalSave, to remove alpha channel of saved jpeg
1111 fixed clone, Initialize
1113 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
1115 * Brush.cs: Don't delete the brush if the display handle is no longer
1116 valid, otherwise cairo will try to use the handle and crash and burn
1118 2005-10-23 Vladimir Krasnov <vladimirk@mainsoft.com>
1120 * Graphics.jvm.cs: DrawImage refactoring
1122 2005-10-23 Vladimir Krasnov <vladimirk@mainsoft.com>
1124 * Graphics.jvm.cs: Clipping refactoring
1125 fixed FillScaledShape, DrawShape, MeasureDraw, BeginContainer,
1126 ExcludeClip, IntersectClip, ResetClip, CombineClipArea, RestoreBaseClip,
1127 TranslateClip, VisibleClipBounds
1129 2005-10-21 Miguel de Icaza <miguel@novell.com>
1131 * Pen.cs: Add support for returning the Brush from Pens created
1132 with a color constructor.
1134 Plus: code style police, else does not go on its own line.
1136 * Graphics.cs: Add various ArgumentNull checks.
1138 2005-10-20 Konstantin Triger <kostat@mainsoft.com>
1140 * Image.jvm.cs: make Clone abstract
1142 2005-10-20 Konstantin Triger <kostat@mainsoft.com>
1144 * Font.jvm.cs: make fallbacks for GdiCharSet, GdiVerticalFont
1146 2005-10-19 Vladimir Krasnov <vladimirk@mainsoft.com>
1148 * Bitmap.jvm.cs: fixed InternalSave, ToBufferedImageFormat, Clone
1149 * PlainImage.jvm.cs: fixed Clone
1150 * Graphics.jvm.cs: fixed FillShape, Clear, FillScaledShape
1152 2005-10-19 Vladimir Krasnov <vladimirk@mainsoft.com>
1154 * Brush.jvm.cs: added InternalClone() method
1155 changed transformation methods access level
1156 * TextureBrush.jvm.cs: refactoring, fixed clone()
1158 2005-10-19 Vladimir Krasnov <vladimirk@mainsoft.com>
1160 * AdvancedStroke.jvm.cs: fixed createStrokedShape, check for transform
1161 matrix singularity added
1162 * Font.jvm.cs: implemetated ISerializable
1163 * Pen.jvm.cs: fixed DashPattern property,
1164 fixed GetNativeObject() dash pattern calculation
1166 2005-10-14 Jordi Mas i Hernandez <jordi@ximian.com>
1168 * SystemColors.cs: Fixes the Win32 light and lightlight colours
1170 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
1172 * SystemColors.cs: Fixes the Win32 system colors including the color
1173 name and the knownColor properties.
1175 2005-10-07 Peter Dennis Bartok <pbartok@novell.com>
1177 * FontFamily.cs: Use Marshal.PtrToStringUni to do the string
1178 conversion, it's less overhead than StringBuilder. (Part of the
1179 bugfix for #74871 and #75534)
1181 * gdipFunctions: Changed signature for GdipGetFamilyName to just
1182 have an IntPtr for the buffer
1184 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
1186 * Graphics.cs, FontFamily.cs: Calling GC.SuppressFinalize from Dispose,
1189 2005-09-29 Peter Dennis Bartok <pbartok@novell.com>
1191 * SystemColor.cs: Added code used to generate properties, updated with
1194 2005-09-29 Peter Dennis Bartok <pbartok@novell.com>
1196 * SystemColor.cs: Make internal names predictable to allow scripted
1197 generation of color table
1199 2005-09-28 Peter Dennis Bartok <pbartok@novell.com>
1201 * Color.cs(UpdateKnownColor): Ensure knownColors exists before trying
1204 2005-09-27 Peter Dennis Bartok <pbartok@novell.com>
1207 - Changed properties to return colors from fields. This allows
1208 updating the colors via reflection, for example from MWF themes.
1209 - Added code to retrieve system colors via Win32 GetSysColors if
1210 running on Win32, this makes us compatible with Microsoft instead
1211 of returning static colors on Win32. Unix platforms still will
1212 use the static colors
1213 * Color.cs: Added UpdateKnownColor() method to allow updating of
1214 the KnownColors array
1216 2005-09-26 Kornél Pál <kornelpal@hotmail.com>
1218 * Graphics.cs: DrawImage: imageAttr can be null. Fixed to pass IntPtr.Zero
1219 when imageAttr is null.
1221 2005-09-26 Vladimir Krasnov <vladimirk@mainsoft.com>
1223 * Brush.jvm.cs: fixed transform methods, createContext
1224 * TextureBrush.jvm.cs: implemetated transform, WrapMode, ctors
1226 2005-09-21 Vladimir Krasnov <vladimirk@mainsoft.com>
1228 * Bitmap.jvm.cs: fixed Clone, InternalSave, Initialize, ctor refactoring, remarks refactoring
1229 * Image.jvm.cs: fixed GetFrameCount, GetThumbnailImage, SelectActiveFrame, remarks refactoring
1230 * PlainImage.jvm.cs: added metadata props, fixed ctor
1231 * PlainImageCollection.jvm.cs: fixed class access
1233 2005-09-21 Jordi Mas i Hernandez <jordi@ximian.com>
1235 * Graphics.cs: Fixes exception type at FromImage method
1237 2005-09-20 Vladimir Krasnov <vladimirk@mainsoft.com>
1239 * Graphics.jvm.cs: bitmap resolution fix in DrawImage
1241 2005-09-20 Vladimir Krasnov <vladimirk@mainsoft.com>
1243 * Graphics.jvm.cs: fixed DrawImage
1245 2005-09-19 Miguel de Icaza <miguel@novell.com>
1247 * Graphics.cs: Removed restriction on the images that can be
1248 loaded. Indexed images *can* be loaded
1250 2005-09-18 Miguel de Icaza <miguel@novell.com>
1252 * Image.cs: introduce a workaround that catches errors on systems
1253 that lack GDI+ as this is being triggered too easily when we
1254 enumerate attributes on loaded classes.
1256 The real bug to fix is #76062.
1258 2005-09-17 Kornél Pál <kornelpal@hotmail.com>
1260 * Image.cs: Implemented FromHbitmap.
1262 2005-09-16 Sebastien Pouliot <sebastien@ximian.com>
1264 * gdipFunctions.cs: Add [SuppressUnmanagedCodeSecurity] attributes so
1265 the JIT won't add demands for UnmanagedCode.
1266 * carbonFunctions.cs: Add [SuppressUnmanagedCodeSecurity] attributes
1267 so the JIT won't add demands for UnmanagedCode on Mac OSX.
1268 * Bitmap.cs: Added LinkDemand for UnmanagedCode on GetHbitmap
1269 (+ overloads) and GetHicon methods.
1270 * Graphics.cs: Added LinkDemand for UnmanagedCode on FromHdcInternal,
1271 FromHwndInternal and ReleaseHdcInternal methods (which are all public
1272 despite their names).
1274 2005-09-15 Konstantin Triger <kostat@mainsoft.com>
1276 * Graphics.jvm.cs: text transform, headless session
1278 2005-09-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1280 * Bitmap.jvm.cs: native object refactoring
1281 * Image.jvm.cs: native object refactoring
1282 * Graphics.jvm.cs: fixed access to image native object
1283 * TextureBrush.jvm.cs: fixed access to image native object
1284 * Added PlainImage.jvm.cs, PlainImageCollection.jvm.cs
1286 2005-09-14 Geoff Norton <gnorton@customerdna.com>
1288 * carbonFunctions.cs: Add GetCGContextForNSView for Cocoa# integration
1289 * Graphics.cs: Check GDIPlus.UseCocoaDrawable for Cocoa# integration
1290 * gdipFunctions.cs: Set UseCocoaDrawable depending on the environment variable MONO_GDIP_USE_COCOA_BACKEND
1292 2005-09-14 Konstantin Triger <kostat@mainsoft.com>
1294 * Graphics.jvm.cs: transform, container, thin pen
1296 2005-09-12 Konstantin Triger <kostat@mainsoft.com>
1298 * AdvancedStroke.jvm.cs: constants for pen fitting calculations
1299 * Pen.jvm.cs: fixing transform, pen fitting
1301 2005-09-12 Konstantin Triger <kostat@mainsoft.com>
1303 * Region.jvm.cs: IsVisible is about intersection
1305 2005-09-12 Gert Driesen <drieseng@users.sourceforge.net>
1307 * ImageConverter.cs: Use default TypeDescriptor implementation of
1310 2005-09-11 Konstantin Triger <kostat@mainsoft.com>
1312 * Graphics.jvm.cs: fixing clipping with rotate transform
1314 2005-09-11 Konstantin Triger <kostat@mainsoft.com>
1316 * Region.jvm.cs: default region is infinite
1318 2005-09-10 Konstantin Triger <kostat@mainsoft.com>
1320 * Graphics.jvm.cs: fixing clipping stuff
1322 2005-09-07 Vladimir Krasnov <vladimirk@mainsoft.com>
1324 * Bitmap.jvm.cs: fixed bitamp accessors
1325 * Image.jvm.cs: fixed image accessors
1327 2005-09-07 Konstantin Triger <kostat@mainsoft.com>
1328 * AdvancedStroke.jvm.cs: fix matrix translate
1329 * Graphics.jvm.cs: fix matrix concatenation order
1331 2005-09-07 Vladimir Krasnov <vladimirk@mainsoft.com>
1333 * Brush.jvm.cs: added transform methods
1335 2005-09-06 Konstantin Triger <kostat@mainsoft.com>
1337 * StrokeFactory.jvm.cs, AdvancedStroke.jvm.cs, Pen.jvm.cs:
1338 implementing fitting, output transform
1339 * Graphics.jvm.cs: fixing DrawXXX, Fill, Clipping, Containers
1341 2005-09-06 Konstantin Triger <kostat@mainsoft.com>
1343 * ColorTranslator.cs: perform case insensitive check
1345 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
1347 * gdipFunctions.cs: define new functions
1348 * Bitmap.cs: fixes image loading and exceptions
1349 * Image.cs: fixes image loading and exceptions
1351 Thanks Kornél Pál for its help
1353 2005-08-30 Vladimir Krasnov <vladimirk@mainsoft.com>
1355 * Brush.jvm.cs: added brush transform field
1357 2005-08-28 Vladimir Krasnov <vladimirk@mainsoft.com>
1359 * Graphics.jvm.cs: fixed .ctor (InterpolationMode)
1361 2005-08-28 Konstantin Triger <kostat@mainsoft.com>
1363 * StrokeFactory.jvm.cs, AdvancedStroke.jvm.cs, Pen.jvm.cs
1364 Graphics.jvm.cs: adjust stroke before widening
1366 2005-08-28 Vladimir Krasnov <vladimirk@mainsoft.com>
1368 * Graphics.jvm.cs: Implemented BeginContainer, EndContainer,
1371 2005-08-26 Gert Driesen <drieseng@users.sourceforge.net>
1373 * PointConverter.cs: Use Int32Converter instead of Int32.Parse. First
1374 convert string to int before checking number of components.
1375 * RectangleConverter.cs: same.
1376 * SizeConverter.cs: same.
1378 2005-08-26 Gert Driesen <drieseng@users.sourceforge.net>
1380 * ColorConverter.cs: Use Int32Converter instead of Int32.Parse to
1381 convert individual components. Special case string containing hex
1382 prefix. Convert components before checking count.
1384 2005-08-25 Marek Safar <marek.safar@seznam.cz>
1386 * gdipFunctions.cs: GetIconInfo new user32 method.
1387 GdipGetDC uses IntPtr.
1389 * gdipStructs.cs: Defined IconInfo struct.
1391 * Graphics.cs: FromImage throws exception when image has an indexed format.
1394 * Icon.cs: Implemented FromHandle, Dispose.
1396 2005-05-24 Michael Hutchinson <m.j.hutchinson@gmail.com>
1398 * ToolboxBitmapAttribute.cs: Implemented retrieving the image
1400 2005-08-23 Vladimir Krasnov <vladimirk@mainsoft.com>
1402 * Graphics.jvm.cs: Fixed ResetTransform, TransfromPoints
1403 Fixed SmoothingMode property
1405 2005-08-23 Jordi Mas i Hernandez <jordi@ximian.com>
1407 * Brushes: Do not create the objects every time that they are requested
1408 as in Pens we create and cache them only once when need it. This also
1409 fixes the Equals method between two objects requested to Brushes
1411 2005-08-22 Jordi Mas i Hernandez <jordi@ximian.com>
1413 * SolidBrush.cs: Fixes Dispose to avoid non-disposing some objects
1414 * Brush.cs Fixes Dispose to avoid non-disposing some objects
1415 * Pen.cs: Fixes Dispose to avoid non-disposing some objects
1416 * Region.cs: Dipose always frees if the resource was allocated
1418 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
1420 * gdipFunctions.cs: Before calling GdiplusShutdown we make that all of handles
1421 from gdiplus have been released
1423 2005-08-18 Vladimir Krasnov <vladimirk@mainsoft.com>
1425 * Pen.jvm.cs: Fixed DashSpacing in createStrokedShape
1426 * Color.cs: Fixed java NativeObject property
1427 * Image.jvm.cs: Fixed Save method
1429 2005-08-16 Andrew Skiba <andrews@mainsoft.com>
1431 * Icon.jvm.cs: match Bitmap internal constructor change
1432 * Image.jvm.cs: use ImageCodecInfo.Clsid as primary format id, not ImageFormat
1433 * Bitmap.jvm.cs: started changes for supporting ImageCodecInfo
1435 2005-08-16 Gert Driesen <drieseng@users.sourceforge.net>
1437 * Color.cs: To match MS.NET, throw ArgumentException instead of
1438 ArgumentOutOfRangeException when color is not between 0 and 255.
1439 * RectangleConverter.cs: Take culture into account when converting
1440 to/from string. Use culture's ListSeparator as separator character.
1442 2005-08-16 Gert Driesen <drieseng@users.sourceforge.net>
1444 * Color.cs: Fixed line endings. Set eol-style to native.
1445 * ColorConverter.cs: Fixed line endings. Set eol-style to native.
1446 * Size.cs: Set eol-style to native.
1447 * SizeF.cs: Use current culture in ToString(), set eol-style to native.
1448 * SizeConverter.cs: Take culture into account when converting to/from
1449 string. Set eol-style to native.
1450 * Point.cs: Fixed line endings. Set eol-style to native.
1451 * PointF.cs: Use current culture in ToString(), set eol-style to native.
1452 * PointConverter.cs: Take culture into account when converting to/from
1453 string. Set eol-style to native.
1454 * ImageFormatConverter.cs: Fixed line endings. Set eol-style to
1456 * RectangleConverter.cs: Fixed line endings. Set eol-style to native.
1458 2005-08-16 Vladimir Krasnov <vladimirk@mainsoft.com>
1460 * Graphics.jvm.cs: Fixed InterpolationMode property
1462 2005-08-15 Vladimir Krasnov <vladimirk@mainsoft.com>
1464 * Graphics.jvm.cs: Fixed DrawImage
1466 2005-08-14 Gert Driesen <drieseng@users.sourceforge.net>
1468 * ColorConverter.cs: Use TextInfo.ListSeparator as separator, as this
1469 appears to be what MS.NET uses.
1471 2005-08-14 Gert Driesen <drieseng@users.sourceforge.net>
1473 * Point.cs: Use invariant culture for converting numbers to string.
1477 2005-08-14 Gert Driesen <drieseng@users.sourceforge.net>
1479 * Color.cs: Fixed ToString for uninitialized color.
1480 * ColorConverter.cs: Support conversion from whitespace-only string to
1481 Color.Empty. Fixed conversion from Color.Empty and known colors to
1484 2005-08-14 Konstantin Triger <kostat@mainsoft.com>
1486 * Graphics.jvm.cs: Initial properties implementation
1488 2005-08-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1490 * Graphics.jvm.cs: DrawImage refactoring
1492 2005-08-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1494 * Graphics.jvm.cs: Implemented PageUnit, PageScale.
1495 Added UpdateInternalTransform
1496 Fixed DrawImage, Transform, ConcatenateTransform
1498 2005-08-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1500 * Icon.jvm.cs: Internal constructor from bitmap
1501 * Added SystemIcons.jvm.cs with implementation of SystemIcons
1503 2005-08-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1505 * Region.jvm.cs: Fixed GetBounds, IsVisible, IsEmpty, IsInfinite, Equals
1506 (all methods that use Graphics object)
1508 2005-08-11 Konstantin Triger <kostat@mainsoft.com>
1510 * Graphics.jvm.cs: Refactoring
1512 2005-08-11 Konstantin Triger <kostat@mainsoft.com>
1514 * Graphics.jvm.cs: Fixed Clear, Refactoring
1516 2005-08-11 Konstantin Triger <kostat@mainsoft.com>
1518 * Graphics.jvm.cs: Fixed FillClosedCurve
1520 2005-08-10 Zoltan Varga <vargaz@freemail.hu>
1522 * Rectangle.cs (Intersect): Return a non-empty rectangle if the two
1523 rectangles touch each other.
1525 2005-08-09 Konstantin Triger <kostat@mainsoft.com>
1527 * Graphics.jvm.cs: Fixed DrawCurve.
1529 2005-08-09 Konstantin Triger <kostat@mainsoft.com>
1531 * StrokeFactory.jvm.cs: use correct stroke
1533 2005-08-09 Konstantin Triger <kostat@mainsoft.com>
1535 * Added AdvancedStoke.jvm.cs and StrokeFactory.jvm.cs
1538 2005-08-09 Andrew Skiba <andrews@mainsoft.com>
1540 * FontConverter.cs: exclude not implemented destructor from TARGET_JVM
1542 2005-08-09 Andrew Skiba <andrews@mainsoft.com>
1544 * ColorConverter.cs, ColorTranslator.cs: fixes to pass tests
1547 2005-08-08 Konstantin Triger <kostat@mainsoft.com>
1549 * Graphics.jvm.cs: Refactoring
1551 2005-08-08 Vladimir Krasnov <vladimirk@mainsoft.com>
1553 * Graphics.jvm.cs: Fixed DrawPolygon
1555 2005-08-08 Konstantin Triger <kostat@mainsoft.com>
1557 * Graphics.jvm.cs: Refactoring
1558 * Pen.jvm.cs: setting awt.Stroke as a base
1560 2005-08-07 Konstantin Triger <kostat@mainsoft.com>
1562 * Graphics.jvm.cs: Refactoring
1564 2005-08-07 Vladimir Krasnov <vladimirk@mainsoft.com>
1566 * Graphics.jvm.cs: Fixed DrawLines, DrawPolygon to use GraphicsPath
1568 2005-08-07 Andrew Skiba <andrews@mainsoft.com>
1570 * Rectangle.cs: Intersect fixed
1571 * RectandleF.cs: Intersect and Inflate fixed
1573 2005-08-07 Andrew Skiba <andrews@mainsoft.com>
1575 * Point.cs: Produce same ToString result as dotnet
1577 2005-08-07 Andrew Skiba <andrews@mainsoft.com>
1579 * Color.cs: GetHashCode is affected by Name, too
1581 2005-08-07 Vladimir Krasnov <vladimirk@mainsoft.com>
1583 * Pen.jvm.cs: Fixed ctor, LineCap, SetLineCap
1585 2005-08-07 Vladimir Krasnov <vladimirk@mainsoft.com>
1587 * Graphics.jvm.cs: Fixed DrawLines, DrawPolygon
1589 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1591 * SolidBrush.jvm.cs: fix a typo
1593 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1595 * Image.jvm.cs, StringFormat.jvm.cs, FontFamily.jvm.cs, Bitmap.jvm.cs,
1596 Pen.jvm.cs, Region.jvm.cs, Brush.jvm.cs, Graphics.jvm.cs, TextureBrush.jvm.cs,
1597 Font.jvm.cs: Added TARGET_JVM implementation
1599 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1601 * Rectangle.cs, RectangleF.cs: TARGET_JVM - Add NativeObect property
1603 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1605 * BasicShape.jvm.cs: Added TARGET_JVM specific class
1607 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1609 * Icon.jvm.cs, SystemColors.jvm.cs: Added TARGET_JVM implementations
1611 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1613 * ColorTranslator.cs: (GH merge) recognise HTML system colors
1615 2005-08-02 Andrew Skiba <andrews@mainsoft.com>
1617 * SolidBrush.jvm.cs: added TARGET_JVM implementation of this class
1619 2005-08-02 Andrew Skiba <andrews@mainsoft.com>
1621 * Color.cs: TARGET_JVM - NativeObject property
1623 2005-07-27 Andrew Skiba <andrews@mainsoft.com>
1625 * Color.cs: Fixes equality operators, change isXXXcolor booleans into flags enum.
1627 2005-07-27 Jordi Mas i Hernandez <jordi@ximian.com>
1629 * RectangleF.cs: Fixes IsEmpty logic
1631 2005-06-23 Jordi Mas i Hernandez <jordi@ximian.com>
1633 * Graphics.cs: implements FromHwndInternal
1636 2005-06-13 Peter Bartok <pbartok@novell.com>
1638 * Icon.cs(ToBitmap): If the icon is not 32bits, create the bitmap
1639 through an intermediary step, which turns it into a 32bit version.
1642 2005-06-13 Kornél Pál <kornelpal@hotmail.com>
1644 * ComIStreamMarshaler.cs: Dispose releases managed objects as well,
1645 removed some unnecessary code
1646 * ComIStreamWrapper.cs: Reworked Seek method to proper support of
1647 positions beyond the size of stream
1649 2005-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1651 * Font.cs: fix platform checks.
1653 2005-06-08 Jordi Mas i Hernandez <jordi@ximian.com>
1656 - Fixes is empty method IsEmpty logic
1657 - Fixes Contains method logic
1658 - Fixes IntersectsWith logic
1661 - Fixes is empty method IsEmpty logic
1662 - Fixes Contains method logic
1663 - Fixes IntersectsWith logic
1665 2005-05-28 Kornél Pál <kornelpal@hotmail.com>
1667 * ComIStreamMarshaler.cs: GC.SuppressFinalize(this) is not called in
1668 destructors. Some methods renamed. Removed unnecessary variables.
1670 2005-05-25 Jonathan Gilbert <logic@deltaq.org>
1672 * Image.cs: Added retrieveGDIPalette () and storeGDIPalette ()
1673 and modified the Palette property to call them. This non-
1674 persistent behaviour was discovered by trial and error with
1675 Microsoft's implementation. In fact, the Palette property
1676 does not behave like a property at all! It is the only way an
1677 instance of System.Drawing.Imaging.ColorPalette can be created,
1678 and it reflects a backing store that is only updated when the
1679 property 'set' method is called. Also updated Clone () since
1680 the palette is no longer cached at image load time.
1681 * Image.cs: Added IsIndexedPixelFormat () in the same vein as
1682 Image::IsAlphaPixelFormat and Image::IsCanonicalPixelFormat.
1683 As such a function is not listed in MSDN nor given in
1684 Microsoft's implementation, I have made it a private function
1685 within the class that uses it.
1687 2005-05-24 Kornél Pál <kornelpal@hotmail.com>
1689 * Graphics.cs: Revised DrawString methods
1691 2005-03-22 Peter Bartok <pbartok@novell.com>
1693 * Graphics.cs: Fixed bug #74762, DrawString was crashing on s.Length
1696 2005-05-20 Kornél Pál <kornelpal@hotmail.com>
1698 * Image.cs: Uses MemoryStream wrapping on all platforms if needed
1699 * gdipFunctions.cs: Modified conditional compilation syntax
1700 * ComIStreamWrapper.cs: Modified conditional compilation syntax
1701 * ComIStreamMarshaler.cs: Modified conditional compilation syntax
1703 2005-05-18 Marek Safar <marek.safar@seznam.cz>
1705 * Bitmap.cs: Add null check into ctor.
1707 2005-05-16 Jordi Mas i Hernandez <jordi@ximian.com> <kornelpal@hotmail.com>
1709 * gdipFunctions.cs: Kornél Pál's IStream bug fixing
1710 * ComIStreamWrapper.cs: Kornél Pál's IStream bug fixing
1711 * ComIStreamMarshaler.cs: Kornél Pál's IStream bug fixing
1713 2005-05-14 Jordi Mas i Hernandez <jordi@ximian.com> <kornelpal@hotmail.com>
1715 * Bitmap.cs: Kornél Pál's Bitmap class ctor and MakeTransparent leak fixes
1717 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
1719 * gdipFunctions.cs: add GdipLoadImageFromStream and GdipSaveImageToStream
1720 * ComIStreamWrapper.cs: Kornel Pal COM Stream for Win32
1721 * ComIStreamMarshaler.cs: Kornel Pal COM Stream for Win32
1722 * Image.cs: uses new Win32 Stream functions when need it
1724 2005-05-10 Juraj Skripsky <juraj@hotfeet.ch>
1726 * Color.cs: Fix GetSaturation() again and remove
1729 2005-05-10 Juraj Skripsky <juraj@hotfeet.ch>
1731 * Color.cs: New, correct implementations for GetHue(),
1732 GetBrightness() and GetSaturation().
1734 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
1736 * gdipFunctions.cs: Use PlatformID.Unix under NET_2_0.
1737 * Graphics.cs: Use PlatformID.Unix under NET_2_0.
1738 * Image.cs: Use PlatformID.Unix under NET_2_0.
1740 2005-05-05 Miguel de Icaza <miguel@novell.com>
1742 * Bitmap.cs, Icon.cs (constructor): Use
1743 GetManifestResourceStream(Type,string) in the constructor that
1746 2005-04-27 Lluis Sanchez Gual <lluis@novell.com>
1748 * PointF.cs: Make serialization compatible with MS.
1750 2005-04-10 Geoff Norton <gnorton@customerdna.com>
1754 Use CGContextSynchronize instead of CGContextFlush. This saves
1755 on average 20000 ticks per drawing operation.
1757 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
1759 * Color.cs: take into account the name color in == and != operators
1760 * Font.cs: Use Equals instead of == to compare the family name
1762 - Removes generic fontfamilies cache (done at libgdiplus level)
1763 - Fixes Equals method
1765 2005-03-30 Jordi Mas i Hernandez <jordi@ximian.com>
1767 * Pen.cs: remove locks. They are done at gdiplus level
1768 * Brush.cs: remove locks. They are done at gdiplus level
1769 * Image.cs: remove locks. They are done at gdiplus level
1771 2005-03-30 Rogério Pereira Araújo <rogerio.araujo@gmail.com>
1773 * Icon.cs: Finished Icon(Type, String) ctor
1775 2005-03-23 Jordi Mas i Hernandez <jordi@ximian.com>
1777 * gdipFunctions.cs: fixes GdipGetImagePalette signature
1778 * Image.cs: Implements Palette property using gdiplus
1780 2005-03-17 Peter Bartok <pbartok@novell.com>
1783 - Changed P/Invoke signature for GdipLoadImageFromDelegate_linux()
1784 method, now includes a get header delegate
1785 - Added StreamGetHeaderImpl method, to allow libgdiplus to determine
1786 the image type even on non-seekable streams
1787 - Fixed StreamGetBytesImpl to consider the bytes already retrieved
1788 via StreamGetHeaderImpl
1789 * Image.cs: Fixed call to GdipLoadImageFromDelegate_linux() to include
1790 the new StreamGetHeader delegate
1792 2005-03-15 Jordi Mas i Hernandez <jordi@ximian.com>
1794 * Pen.cs: Fixes dispose method to allow to be called multiple times
1795 * Graphics.cs: matrix are saved and restored at gdiplus level
1797 2005-02-24 Geoff Norton <gnorton@customerdna.com>
1799 * gdipFunctions.cs: Cache the delegates in the GdiPlusStreamHelper
1800 so they dont get garbage collected before use.
1802 2005-02-11 Peter Bartok <pbartok@novell.com>
1804 * gdipFunctions.cs: Fixed prototype to match previous checkin
1806 2005-02-11 Peter Bartok <pbartok@novell.com>
1808 * Graphics.cs (FromImage): Fixed type of graphics to be IntPtr (since
1809 it really is a pointer)
1811 2005-02-10 Geoff Norton <gnorton@customerdna.com>
1813 * Icon.cs: Implement GetObjectData ()
1814 * Image.cs: Implement GetObjectData ()
1816 2005-02-09 Geoff Norton <gnorton@customerdna.com>
1818 * Icon.cs: Implement deserializer
1819 * Bitmap.cs: Implement deserializer
1821 2005-02-06 Ben Maurer <bmaurer@ximian.com>
1823 * Brushes.cs: Kill the static ctor here, it has tons of code bloat.
1825 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
1827 * Region.cs: revert Jackson's patch and fix this at libgdiplus level
1829 2005-02-02 Jackson Harper <jackson@ximian.com>
1831 * Region.cs: The default region constructor creates and infinite
1832 region, not an empty one.
1834 2005-01-27 Peter Bartok <pbartok@novell.com>
1836 * Color.cs (GetBrightness, GetSaturation, GetHue): Fixed calculations
1837 of HSV numbers. Previous implementation returned wrong numbers and NaN
1838 on achromatic colors
1840 2005-01-27 Lluis Sanchez Gual <lluis@novell.com>
1842 * PointConverter.cs, ImageFormatConverter.cs, RectangleConverter.cs,
1843 SizeConverter.cs, ColorConverter.cs, FontConverter.cs
1844 : Implemented support for InstanceDescriptor.
1846 2005-01-26 Peter Bartok <pbartok@novell.com>
1848 * Icon.cs (ToBitmap): Now sets transparency in according to
1851 2004-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
1853 * gdipFunctions.cs: Fixes GdipGet* function signatures
1854 * FontFamily.cs: Fixes GdipGet* function calls
1855 * Font.cs: Fixes ToString method
1857 2004-01-17 Jordi Mas i Hernandez <jordi@ximian.com>
1859 * Graphics.cs: calls XCloseDisplay on X11 when need it
1860 * gdipFunctions.cs: calls XCloseDisplay on X11 when need it
1862 2004-12-27 Zoltan Varga <vargaz@freemail.hu>
1864 * gdipFunctions.cs Image.cs: Fix marshalling of arrays on amd64.
1866 2004-12-16 Peter Bartok <pbartok@novell.com>
1868 * Graphics.cs (GetHdc): Removed Wine assumptions, the handle is now
1869 equivalent to the gdi+ native object
1871 * Font.cs (GetHfont): Removed Wine assumptions, the handle is now
1872 equivalent to the gdi+ native object
1874 2004-12-09 Geoff Norton <gnorton@customerdna.com>
1876 * carbonFunctions.cs: New carbon functions/structures
1877 * Graphics.cs: Update FromHwnd to work without being in the carbon eventing loop
1879 2004-12-08 Geoff Norton <gnorton@customerdna.com>
1881 * Graphics.cs: Drop FromHwndWithSize; we can't change the public API
1882 Add Quartz support to FromHwnd marshalling a struct back with the ptr/width/height.
1884 2004-12-07 Geoff Norton <gnorton@customerdna.com>
1886 * Graphics.cs: Add FromHwndWithSize for the MWF/Quartz backend
1887 * gdipFunctions.cs: Add the quartz dllimport into libgdiplus
1889 2004-12-06 Miguel de Icaza <miguel@ximian.com>
1891 * FontFamily.cs: This one is static.
1893 2004-11-25 Ravindra <rkumar@novell.com>
1895 * gdipFunctions.cs (GdipCreateFontFromLogfontA): Changed return
1896 type from int to Status type.
1898 2004-11-25 Marek Safar <marek.safar@seznam.cz>
1900 * Image.cs: Add CheckStatus to SaveAdd.
1902 2004-11-22 Ravindra <rkumar@novell.com>
1904 * Graphics.cs: Fixed null values handling in all overloads of
1905 MeasureString method.
1907 2004-11-18 Ravindra <rkumar@novell.com>
1909 * gdipFunctions.cs: Removed the .so extension from a DllImport
1912 2004-10-27 Jordi Mas i Hernandez <jordi@ximian.com>
1914 * gdipFunctions.cs: calls GdiplusShutdown to propery signal GDI+
1917 2004-11-03 Miguel de Icaza <miguel@ximian.com>
1919 * TextureBrush.cs (Clone): While cloning, it is not enough to let
1920 GDIPlus clone the underlying data, we must alos clone the managed
1923 * Pen.cs (Dispose): Set the nativeObject to IntPtr.Zero to catch
1924 errors in the future, set the lock on the object before doing any
1925 other tests, not after.
1927 (Clone): While cloning, it is not enough to let
1928 GDIPlus clone the underlying data, we must alos clone the managed
1931 * Brush.cs (Dispose): Set the nativeObject to IntPtr.Zero to catch
1932 errors in the future.
1934 Set the lock in the object before checkign disposed.
1936 * SolidBrush.cs (Clone): While cloning, it is not enough to let
1937 GDIPlus clone the underlying data, we must alos clone the managed
1940 (Dispose): Set the nativeObject to IntPtr.Zero to catch
1941 errors in the future.
1943 2004-10-28 Ravindra <rkumar@novell.com>
1945 * gdipFunctions.cs: Added checks for null stream in the
1946 StreamHelper internal class.
1947 * Icon.cs: Removed an ugly hack that used temp files in
1948 ToBitmap () method. We use MemoryStream instead.
1950 2004-10-27 Jordi Mas i Hernandez <jordi@ximian.com>
1952 * Font.cs: fixes bug 66533
1954 2004-10-22 Jordi Mas i Hernandez <jordi@ximian.com>
1956 * Bitmap.cs, Font.cs FontFamily.cs Graphics.cs Region.cs
1957 SolidBrush.cs StringFormat.cs TextureBrush.cs: removes the
1958 lock operations after conversation with Miguel. Do not really
1961 2004-10-22 Jordi Mas i Hernandez <jordi@ximian.com>
1963 * Bitmap.cs: Fixes MakeTransparent problem with 24bbps
1965 2004-10-19 Jordi Mas i Hernandez <jordi@ximian.com>
1967 * Bitmap.cs: Fixes MakeTransparent method
1969 2004-10-13 Ravindra <rkumar@novell.com>
1971 * Graphics.cs: Moved the initialization of 'use_x_drawable'
1972 member out of private constructor to class initialization.
1973 So that, we get it right even if Graphics is not instantiated.
1974 This fixes the problem we face (otherwise) when we make first
1975 call to Graphics.FromHwnd () method.
1977 2004-10-08 Ravindra <rkumar@novell.com>
1979 * Image.cs: Suppress finalization in Dispose () method.
1981 2004-10-04 Ravindra <rkumar@novell.com>
1983 * gdipFunctioncs.cs: Fix from Alois for bug #67383.
1985 2004-09-29 Jackson Harper <jackson@ximian.com>
1987 * Graphics.cs: Use FromHdcInternal to set the X display
1988 handle. Add a flag to check if we are on unix so we aren't calling
1989 Environment.OSVersion.Platform all the time. Mad props to Peter
1992 2004-09-17 Marek Safar <marek.safar@seznam.cz>
1994 * Font.cs (FromHfont, ToHfont): Fixed windows implementation.
1995 ToLogFont: Implemented.
1997 * gdipFunctions.cs: GdipCreateFromHDC changed int to IntPtr to
1999 GdipCreateFontFromLogfontA: A new extern call.
2001 2004-09-13 Ravindra <rkumar@novell.com>
2003 * Graphics.cs: MSDN says that using image width and height gives
2004 better performance, hence we are using image width and height to
2005 avoid autoscaling in DrawImageUnscaled.
2007 2004-09-10 Ravindra <rkumar@novell.com>
2009 * Graphics.cs: Implemented DrawIcon methods and fixed
2010 DrawImageUnscaled method implementation.
2012 2004-08-21 Jackson Harper <jackson@ximian.com>
2014 * ImageAnimator.cs: Run animator as a background thread so we do
2017 2004-08-21 Ravindra <rkumar@novell.com>
2019 * gdipFunctions.cs: Modified exception message to include the case
2020 of missing required libraries for different formats.
2022 2004-08-10 Jackson Harper <jackson@ximian.com>
2024 * SystemColors.cs: Make Highlight colour match colour from windows
2025 classic color scheme.
2027 2004-07-30 Ravindra <rkumar@novell.com>
2029 * Font.cs: Fixed Height property implementation and implemented
2030 GetHeight method and its overloads.
2032 2004-07-29 Sanjay Gupta <gsanjay@novell.com>
2034 * gdipFunctions.cs: Corrected signature of GdipGetPropertyItem
2035 P/Invoke function for Image.
2036 * Image.cs: Implemented GetPropertyItem() and SetPropertyItem() method.
2038 2004-07-29 Sanjay Gupta <gsanjay@novell.com>
2040 * gdipFunctions.cs: Corrected signatures of GdipGetPropertySize and
2041 GdipGetAllPropertyItems P/Invoke function for Image.
2042 * gdipStructs.cs: Corrected MarshalTo() method of GdipPropertyItem.
2043 * Image.cs: Corrected implementation of PropertyItems property.
2045 2004-07-29 Sanjay Gupta <gsanjay@novell.com>
2047 * gdipFunctions.cs: Corrected signature of GdipGetPropertyIdList
2048 P/Invoke function for Image.
2049 * Image.cs: Changed implementation of PropertyIdList property.
2051 2004-07-28 Sanjay Gupta <gsanjay@novell.com>
2053 * gdipStructs.cs: Implementing PropertyItem property in Image.cs.
2054 * Image.cs: Implemented PropertyItems and PropertyIdList properties.
2056 2004-07-21 Ravindra <rkumar@novell.com>
2058 * gdipFunctions.cs: Corrected signatures of GdipPathIterCopyData and
2059 GdipPathIterEnumerate P/Invoke functions for GraphicsPathIterator.
2061 2004-07-21 Jordi Mas i Hernandez <jordi@ximian.com>
2063 * Graphics.cs: fixes MeasureCharacterRanges function. It was completely wrong.
2064 * StringFormat.cs: MeasurableCharacterRanges should be passed to GDI+
2065 * gdipFunctions.cs: new GDI function calls
2067 2004-07-16 Ravindra <rkumar@novell.com>
2069 * gdipFunctions.cs: Added P/Invokes for GraphicsPathIterator.
2071 2004-07-15 Ravindra <rkumar@novell.com>
2073 * gdipFunctions.cs: Removed GdipGetPathData P/Invoke. It is redundant.
2075 2004-07-13 Ravindra <rkumar@novell.com>
2077 * gdipFunctions.cs: Removed GdipGetPathGradientRectI P/Invoke.
2078 This was redundant. It was kept in previous checkin to avoid
2081 2004-07-13 Ravindra <rkumar@novell.com>
2083 * gdipFunctions.cs: Added some P/Invokes for PathGradientBrush.
2085 2004-07-09 Peter Bartok <pbartok@novell.com>
2086 * Graphics.cs: Added support required for new managed SWF library
2087 * gdipFunctions.cs: Added XOpenDisplay definition/import
2089 2004-07-02 Jordi Mas i Hernandez <jordi@ximian.com>
2091 * gdipFunctions.cs: fixes bug 61050
2093 2004-06-24 Sanjay Gupta <gsanjay@novell.com>
2095 * ImageAnimator.cs: Rewrote complete implementation.
2097 2004-06-24 Sanjay Gupta <gsanjay@novell.com>
2099 * gdipFunctions.cs: Corrected issue in GdiPlusStreamHelper class.
2100 If read function was called after seek function call, the
2101 implementation was returning data from bytes already peeked and
2102 not from the new position in stream, which we have seeked.
2104 2004-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
2106 * Graphics.cs: added MeasureString wrappers
2108 2004-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
2110 * Graphics.cs, gdipFunctions.cs: define and use GdipSetVisibleClip_linux
2112 2004-06-20 Jordi Mas i Hernandez <jordi@ximian.com>
2114 * Graphics.cs, gdipFunctions.cs: added missing clip function wrappers
2116 2004-06-18 Ravindra <rkumar@novell.com>
2118 * FontConverter.cs: Implemented the missing functions.
2119 * Font.cs: Added some notes.
2121 2004-06-16 Sanjay Gupta <gsanjay@novell.com>
2123 * gdipFunctions.cs: Modified Function signature for
2124 GdipSaveImageToDelegate_linux() method for saving tiff images
2126 * image.cs: Modified function call GdipSaveImageToDelegate_linux()
2129 2004-06-15 Sanjay Gupta <gsanjay@novell.com>
2131 * gdipFunctions.cs: Added delegate and StreamHelper functions, Close
2132 and Size, required by TIFFCodec. Modifed Function signature for
2133 GdipLoadImageFromDelegate_linux() method.
2134 * image.cs: Modified function call GdipLoadImageFromDelegate_linux()
2137 2004-06-11 Ravindra <rkumar@novell.com>
2139 * gdipFunctions.cs: (GdipCreateSolidFill): Changed one argument
2140 from out int to out IntPtr.
2141 * SolidBrush.cs: Same.
2143 2004-06-10 Gert Driesen <drieseng@users.sourceforge.net>
2145 * Image.cs: API signature fixes, meaning DisposeResources is now
2146 private and marked InitFromStream internal
2148 2004-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
2150 * FontFamily.cs: simplifies object destruction and fixes
2152 2004-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
2154 * FontFamily.cs: added destructor
2155 * Graphics.cs: added destructor to stop leaking, remove debugging code
2158 2004-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
2160 * gdipFunctions.cs: added GdipSaveAddImage
2161 * Image.cs: added SaveAdd methods
2163 2004-06-02 Peter Bartok <pbartok@novell.com>
2164 * gdipFunctions.cs: Fixed reference to wrong DLLs for GetDC/ReleaseDC
2165 (This fixes bug #59479)
2167 2004-06-01 Gert Driesen <drieseng@users.sourceforge.net>
2169 * Font.cs: Added missing Browsable attribute on SizeInPoints.
2170 * Region.cs: Removed extra ComVisible attribute from Clone().
2172 2004-06-01 Ravindra <rkumar@novell.com>
2174 * Pen.cs: Added a note on Dispose method.
2175 * Brush.cs: Fixed Dispose method.
2176 * SolidBrush.cs: Fixed Dispose method.
2178 2004-05-28 Ravindra <rkumar@novell.com>
2180 * gdipFunctions.cs: Added some P/Invoke calls for Draw/Fill
2182 * Graphics.cs: Implemented Dispose method and changed Draw/Fill
2183 rectangles implementation (This is basically done to avoid lots
2184 of brush and pen setup happening in libgdiplus.)
2186 2004-05-27 Ravindra <rkumar@novell.com>
2188 * Color.cs: Changed Color.Green to what MS.NET has. Conforming to MS.
2190 2004-05-26 Sanjay Gupta <gsanjay@novell.com>
2192 * ImageFormatConverter.cs: Fixed issues discovered from nunit
2195 2004-05-26 Ravindra <rkumar@novell.com>
2197 * Color.cs: Corrected Color.Green property.
2199 2004-05-24 Jordi Mas i Hernandez <jordi@ximian.com>
2200 * gdipStructs.cs: remove unnecessary code, since bug 57706 is fixed
2202 2004-05-20 Sanjay Gupta <gsanjay@novell.com>
2204 * Icon.cs: Fixed issue with size property.
2206 2004-05-18 Ravindra <rkumar@novell.com>
2208 * Pen.cs: Added value checks in DashPattern and CompoundArray
2211 2004-05-16 Gert Driesen <drieseng@users.sourceforge.net>
2213 * Graphics.cs: fixed warning
2214 * ImageAnimator.cs: fixed warning
2215 * FontConverter.cs: fixed public API
2217 2004-05-14 Vladimir Vukicevic <vladimir@pobox.com>
2219 * gdipFunctions.cs: Fixed prototype for
2220 GdipGetEncoderParameterList
2222 * Image.cs: Reworked Save functions to handle EncoderParameters.
2223 Implemented GetEncoderParameterList
2224 Also removed unused setGDIPalette internal method.
2226 2004-05-14 Peter Bartok <pbartok@novell.com>
2227 * StringFormat.cs: Added CharacterRange handling
2228 * Graphics.cs: Implemented MeasureCharacterRanges method
2230 2004-05-14 Peter Bartok <pbartok@novell.com>
2231 * Graphics.cs: Added error check
2233 2004-05-14 Duncan Mak <duncan@ximian.com>
2234 * gdipFunctions.cs (GdipCreatePath2I, GdipAddPathPieI):
2235 (GdipFlattenPath, GdipWarpPath, GdipWidenPath):
2236 (GdipGetPathWorldBounds, GdipGetPathWorldBoundsI): Imported.
2238 2004-05-14 Sanjay Gupta <gsanjay@novell.com>
2239 * ImageFormatConverter.cs: Modified implementation of ConvertFrom() method.
2241 2004-05-13 Sanjay Gupta <gsanjay@novell.com>
2242 * ImageFormatConverter.cs: Implemented GetStandardValuesSupported () method.
2244 2004-05-13 Peter Bartok <pbartok@novell.com>
2245 * Bitmap.cs: Fixed bug #52868, Bitmap(Image, Size) did not
2248 2004-05-12 Peter Bartok <pbartok@novell.com>
2249 * Image.cs: Implemented GetThumbnailImage
2251 2004-05-13 Sanjay Gupta <gsanjay@novell.com>
2252 * Graphics.cs: Made method DrawRectangle (Pen , RectangleF) and
2253 FromXDrawable(IntPtr, IntPtr) internal.
2255 2004-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
2256 * Color.cs: work for API compatibilty: private date, todos
2257 * Font.cs: work for API compatibilty: private date, todos
2258 * FontFamily.cs: work for API compatibilty: private date, todos
2259 * Graphics.cs: work for API compatibilty: private date, todos
2260 * Icon.cs: work for API compatibilty: private date, todos
2261 * Image.cs: work for API compatibilty: private date, todos
2262 * ImageAnimator.cs: work for API compatibilty: private date, todos
2263 * Point.cs: work for API compatibilty: private date, todos
2264 * PointF.cs: work for API compatibilty: private date, todos
2265 * Rectangle.cs: work for API compatibilty: private date, todos
2266 * RectangleF.cs: work for API compatibilty: private date, todos
2267 * Region.cs: work for API compatibilty: private date, todos
2268 * Size.cs: work for API compatibilty: private date, todos
2269 * SizeF.cs: work for API compatibilty: private date, todos
2270 * SolidBrush.cs: work for API compatibilty: private date, todos
2271 * StringFormat.cs: work for API compatibilty: private date, todos
2272 * SystemPens.cs: work for API compatibilty: private date, todos
2273 * TextureBrush.cs: work for API compatibilty: private date, todos
2274 * gdipStructs.cs: work for API compatibilty: private date, todos
2276 2004-05-12 Ravindra <rkumar@novell.com>
2278 * Bitmap.cs, Font.cs, FontConverter.cs, Graphics.cs, Icon.cs, Image.cs
2279 ImageAnimator.cs, Point.cs, PointF.cs, Rectangle.cs, RectangleF.cs
2280 Region.cs, Size.cs, SizeF.cs, ToolboxBitmapAttribute.cs, gdipFunctions.cs:
2281 Added missing attributes and some coding style fixes.
2282 * Pen.cs: Implementing CustomStartCap and CustomEndCap properties and
2285 2004-05-11 Sanjay Gupta <gsanjay@novell.com>
2287 * ImageAnimator.cs: Implemented first version.
2289 2004-05-11 Ravindra <rkumar@novell.com>
2291 * gdipFunctions.cs: Implementing AdjustableArrowCap. Added P/Invokes
2294 2004-05-10 Ravindra <rkumar@novell.com>
2296 * gdipFunctions.cs: Implementing CustomLineCap. Added P/Invokes
2297 for the same. Added few related P/Invokes for Pen also.
2299 2004-05-06 Sanjay Gupta <gsanjay@novell.com>
2301 * ImageAnimator.cs: Corrected implementation of CanAnimate() method.
2303 2004-05-06 Ravindra <rkumar@novell.com>
2305 * RectangleConverter.cs: Implemented GetProperties () method.
2306 * SizeConverter.cs: Implemented GetProperties () method.
2307 * PointConverter.cs: Implemented GetProperties () method.
2308 * FontConverter.cs: Implemented some of the methods.
2310 2004-05-06 Ravindra <rkumar@novell.com>
2312 * Color.cs: Fixed Name property.
2313 * ColorTranslator.cs: Fixed the existing methods and implemented
2314 the missing methods.
2315 * ColorConverter.cs: Fixed the existing methods and implemented
2316 the missing methods. Also, fixed coding style.
2318 2004-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
2319 * Bitmap.cs: Let GDI+ calculate the strides, as it does in Win32.
2321 2004-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
2322 * Image.cs: raw_format should be handled by GDI+
2323 * Bitmap.cs: raw_format should be handled by GDI+
2325 2004-05-04 Ravindra <rkumar@novell.com>
2327 * Pen.cs: Modified exception message. Fixed Transform, DashPattern,
2328 and DashCap properties. Implementing CoumpoundArray, StartCap, EndCap
2329 properties and SetLineCap method. In constructors use IntPtr instead
2331 * SolidBrush.cs: Modified exception message.
2332 * TextureBrush.cs: Fixed Transform property.
2333 * gdipFunctions.cs: Fixed P/Invokes for Pen.cs, TextureBrush.cs and
2334 LinearGradientBrush.cs.
2336 2004-04-30 Sanjay Gupta <gsanjay@novell.com>
2338 * Image.cs: Implemented FrameDimensionsList property.
2340 2004-04-30 Ravindra <rkumar@novell.com>
2342 * gdipFunctions.cs: Added few more P/Invoke calls for
2343 lineargradient brush and added one case statement in
2346 2004-04-30 Jordi Mas i Hernandez <jordi@ximian.com>
2348 * Image.cs: takes into account MemoryBmp format when saving
2350 2004-04-30 Ravindra <rkumar@novell.com>
2352 * StringFormat.cs: Added checks for status.
2354 2004-04-30 Sanjay Gupta <gsanjay@novell.com>
2356 * Image.cs: Removed calls which passes byte[] for Guid parameter.
2357 * gdipFunctions.cs: Removed unwanted unix specific function calls.
2359 2004-04-30 Ravindra <rkumar@novell.com>
2361 * Graphics.cs: Added checks for status.
2362 * Image.cs: Added a check for status.
2363 * FontFamily.cs: Added checks for status.
2365 2004-04-29 Peter Bartok <pbartok@novell.com>
2367 * Brushes.cs: Fixed bug #52695. No longer creates a new
2368 brush for every request and behaves Microsoft compatible
2370 2004-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
2372 * Image.cs: fixes Save method. It now retrieves the proper encoder and uses
2373 its ClsID instead of the formatID (as GDI+ expects)
2375 2004-04-29 Ravindra <rkumar@novell.com>
2377 * Font.cs: Added checks for status.
2378 * Bitmap.cs: Added checks for status.
2379 * Pen.cs: Added checks for status.
2381 2004-04-28 Sanjay Gupta <gsanjay@novell.com>
2383 * ColorTranslator.cs, StringFormat.cs, SystemIcons.cs, ToolBoxBitmapAttributes.cs:
2384 Converted to unix format from dos format.
2386 2004-04-28 Sanjay Gupta <gsanjay@novell.com>
2388 * ImageConverter.cs: Implemented GetProperties() and GetPropertiesSupported () methods.
2390 2004-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
2392 * gdipStructs.cs: added GdipImageCodecInfo struct
2394 2004-04-28 Sanjay Gupta <gsanjay@novell.com>
2396 * ImageFormatConverter.cs: Corrected ConvertFrom method.
2398 2004-04-27 Sanjay Gupta <gsanjay@novell.com>
2400 * ImageConverter.cs: Added exception message.
2401 * IconConverter.cs: Added exception message.
2402 * ImageFormatConverter.cs: Implemented first version.
2404 2004-04-27 Sanjay Gupta <gsanjay@novell.com>
2406 * ImageConverter.cs: Implemented first version.
2408 2004-04-27 Sanjay Gupta <gsanjay@novell.com>
2410 * IconConverter.cs: Implemented first version.
2412 2004-04-26 Sanjay Gupta <gsanjay@novell.com>
2414 * Image.cs: Corrected implementation of Property RawFormat.
2415 * gdipFunctions.cs: Corrected declaration of GdipGetImageRawFormat.
2417 2004-04-25 Sanjay Gupta <gsanjay@novell.com>
2419 * Bitmap.cs: Resolved a compile time error.
2420 * Image.cs: Changed the implementation of few methods to progress
2421 with ImageAnimator class.
2422 * gdipFunctions.cs: Added few linux only function calls.
2423 * Icon.cs: Removed unused variable from code.
2425 2004-04-25 Vladimir Vukicevic <vladimir@pobox.com>
2427 * Graphics.cs, gdipFunctions.cs: Added CreateFromXDrawable_linux.
2429 2004-04-23 Vladimir Vukicevic <vladimir@pobox.com>
2431 * Commited patch from pcgod@gmx.net (Bnehamin Jemlich) for
2432 serialization for Bitmaps. (Bugzilla #52568)
2434 2004-04-23 Ravindra <rkumar@novell.com>
2436 * RectangleConverter.cs: Fixed ConvertTo () method.
2437 * SizeConverter.cs: Fixed ConvertTo () method.
2438 * PointConverter.cs: Fixed ConvertTo () method.
2440 2004-04-23 Sanjay Gupta <gsanjay@novell.com>
2441 * ImageAnimator.cs: Implemented CanAnimate() method.
2443 2004-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
2444 * Image.cs: added RotateFlip and RemovePropertyItem calls
2446 2004-04-22 Ravindra <rkumar@novell.com>
2448 * RectangleConverter.cs: Implemented. Also changed file format
2450 * Rectangle.cs: Fixed ToString method.
2451 * RectangleF.cs: Fixed ToString method.
2453 2004-04-22 Ravindra <rkumar@novell.com>
2455 * SizeConverter.cs: Implemented some of the functions.
2456 * PointConveter.cs: Implemented.
2457 * gdipFunctions.cs: Corrected one typo.
2458 * Brushes.cs: Added a comment.
2460 2004-04-22 Vladimir Vukicevic <vladimir@pobox.com>
2462 * gdipFunctions.cs: Fix StreamGetBytesImpl to handle
2463 returning portions of the peek buffer back. Fixes #57379.
2465 2004-04-21 Peter Bartok <pbartok@novell.com>
2466 * Font.cs: Implemented Font.FromHfont method
2467 * gdipStructs.cs: fixed sign for LOGFONTA lfHeight member
2468 * gdipFunctions.cs: Added imports for functions required to support
2469 Font.FromHfont method
2471 2004-04-21 Jordi Mas i Hernandez <jordi@ximian.com>
2472 * RectangleConverter.cs: stubbed out
2473 * Font.cs : added missing members
2475 2004-04-19 Sanjay Gupta <gsanjay@novell.com>
2476 * Icon.cs: Fixed problem in extracting bitmap from Icon.
2478 2004-04-16 Ravindra <rkumar@novell.com>
2480 * Pen.cs: GC should be allowed to collect any pen including
2482 * SolidBrush.cs: GC should be allowed to collect any SolidBrush
2483 including system brushes.
2484 * Brushes.cs: Coding style.
2485 * Pens.cs: Objects created by Pens are not modifiable on
2486 MS.NET, so we are now. Also, coding style fixes.
2487 * SystemPens.cs: Removed static constructor and changed file
2489 * SystemBrushes.cs: Some cosmetic changes.
2491 2004-04-15 Sanjay Gupta <gsanjay@novell.com>
2492 * Icon.cs: Implemented more missing bits and fixed the problem
2493 of icon not getting saved in proper format
2495 2004-04-14 Sanjay Gupta <gsanjay@novell.com>
2496 * Icon.cs: Implemented more missing bits
2498 2004-04-13 Sanjay Gupta <gsanjay@novell.com>
2499 * Icon.cs: Implemented few more missing bits
2501 2004-04-12 Sanjay Gupta <gsanjay@novell.com>
2502 * Icon.cs: Implemented first version
2504 2004-04-11 Peter Bartok <pbartok@novell.com>
2505 * Font.cs: Implemented Font.ToHfont method; used Jordi's suggestion of splitting
2506 the code and using our own private gdiplus function when on Unix and using Win32
2507 functions when running on Windows
2508 * gdipStructs.cs: Added LOGFONTA structure
2509 * gdipFunctions.cs: Added various DllImports required for Font.ToHfont
2511 2004-04-10 Vladimir Vukicevic <vladimir@pobox.com>
2513 * Image.cs: Save should use encoder.FormatID, not Clsid
2515 2004-04-06 Jordi Mas i Hernandez <jordi@ximian.com>
2516 * Region.cs: fixes GdipCombineRegionRect and GdipCombineRegionRectI signature
2517 * gdipFunctions.cs: fixes GdipCombineRegionRect and GdipCombineRegionRectI signature
2519 2004-04-06 Duncan Mak <duncan@ximian.com>
2521 * gdipFunctions.cs (GdipCreatePath2): Fixed signature.
2523 2004-04-06 Jordi Mas i Hernandez <jordi@ximian.com>
2524 * Region.cs: fixes GetRegionScans
2525 * gdipFunctions.cs: fixes GetRegionScans
2527 2004-04-06 Vladimir Vukicevic <vladimir@pobox.com>
2529 * gdipFunctions.cs: Added stream delegate helpers for
2530 stream loading/saving on linux
2532 * Image.cs, Bitmap.cs: Converted to call into GDIPlus for
2533 loading/saving image data.
2535 2004-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
2536 * Region.cs: implemented new methods
2537 * Graphics.cs: implemented new methods
2539 2004-04-02 Jordi Mas i Hernandez <jordi@ximian.com>
2540 * Region.cs: implemented
2542 2004-04-01 Duncan Mak <duncan@ximian.com>
2544 * Graphics.cs (DrawCurve): Call the correct GDI+ wrappers.
2546 * gdipFunctions.cs (GdipAddPathCurveI):
2547 (GdipAddPathCurve2, GdipAddPathCurve2I):
2548 (GdipAddPathCurve3, GdipAddPathCurve3I):
2549 (GdipAddPathClosedCurve, GdipAddPathClosedCurveI):
2550 (GdipAddPathClosedCurve2, GdipAddPathClosedCurve2I): Added new
2553 2004-03-30 Jordi Mas i Hernandez <jordi@ximian.com>
2554 * Image.cs: implemented a few GDI+ wrapper calls
2556 2004-03-30 Jordi Mas i Hernandez <jordi@ximian.com>
2557 * Bitmap.cs: remove redundant data already present at Image.cs
2558 * Image.cs: use GDI+ functions to get image details
2559 * StringFormat.cs: missing constructor and property
2561 2004-03-24 Jordi Mas i Hernandez <jordi@ximian.com>
2562 * FontFamily.cs: added missing members and style clean
2563 * Graphics.cs: fixed signature of DrawArc and DrawPie
2564 * Image.cs: added missing members, fixes
2565 * StringFormat.cs: missing constructor and property
2567 2004-03-24 Jordi Mas i Hernandez <jordi@ximian.com>
2568 * Graphics.cs: Added missing DrawImage GDI+ calls
2569 * gdipFunctions.cs: Added missing DrawImage GDI+ calls
2571 2004-03-23 Ravindra <rkumar@novell.com>
2572 * gdipFunctions.cs: Added few more P/Invoke calls for
2573 LinearGradientBrush.
2575 2004-03-22 Ravindra <rkumar@novell.com>
2576 * gdipFunctions.cs: Added P/Invoke calls for LinearGradientBrush
2577 and did few coding style fixes.
2579 2004-03-18 Ravindra <rkumar@novell.com>
2580 * Brush.cs: Fixed Dispose method.
2581 * SolidBrush.cs: Fixed clone method.
2582 * TextureBrush.cs: Fixed clone method.
2583 * gdipFunctions.cs: Fixed P/Invokes for PathGradientBrush.
2585 2004-03-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2587 * SizeConverter.cs: fixd typo in ConvertFrom that made height be wrong.
2589 2004-03-10 Ravindra <rkumar@novell.com>
2590 * Pen.cs: Implemented PenType property.
2591 * Brush.cs: Coding style.
2593 2004-03-06 Ravindra <rkumar@novell.com>
2594 * gdipFunctions.cs: Added few more GDI+ P/Invoke calls
2595 for PathGradientBrush.
2597 2004-03-06 Ravindra <rkumar@novell.com>
2598 * gdipFunctions.cs: Added GDI+ P/Invoke calls for
2601 2004-03-04 Duncan Mak <duncan@ximian.com>
2603 * Region.cs: Indentation.
2605 * RectangleF.cs: Changed the internal structure from a PointF,
2606 SizeF to floats in order to match the layout from the C API.
2608 2004-03-04 Jordi Mas i Hernandez <jordi@ximian.com>
2609 * StringFormat.cs: DigitSubstitution and TabStob methods, coding-style
2611 2004-03-03 Sanjay Gupta <gsanjay@novell.com>
2612 * gdipFunctions.cs: Added functions for ImageAttributes
2614 2004-03-03 Sanjay Gupta <gsanjay@novell.com>
2615 * Icon.cs: Missing function stubs added
2616 * Icon.cs: Missing function stubs added
2617 * IconConverter.cs: Missing function stubs added
2618 * ImageAnimator.cs: Missing function stubs added
2619 * ImageConverter.cs: Missing function stubs added
2620 * ImageFormatConverter.cs: Missing function stubs added
2622 2004-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
2623 * Font.cs: Allow multiple styles
2625 2004-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
2626 * StringFormat.cs: Clone method
2628 2004-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
2629 * font.cs: fixes, Clone, and ToString
2631 2004-02-21 Jordi Mas i Hernandez <jordi@ximian.com>
2632 * gdipFunctions.cs: MeasureString
2633 * Graphics.cs : MeasureString
2635 2004-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
2636 * Font.cs: destructor and unit conversion
2637 * Graphics.cs : system dpi support
2639 2004-02-13 Ravindra <rkumar@novell.com>
2640 * Pen.cs: Fixed some bugs.
2641 * TextureBrush.cs: Fixed some bugs.
2643 2004-02-13 Sanjay Gupta <gsanjay@novell.com>
2644 * gdipFunctions.cs: Added ImageCodecInfo functions
2645 * Image.cs: Added few methods
2647 2004-02-13 Jordi Mas i Hernandez <jordi@ximian.com>
2648 * FontFamily.cs: remove hardcoded font names, a few bug fixes
2650 2004-02-12 Sanjay Gupta <gsanjay@novell.com>
2651 * gdipFunctions.cs: Added Image class functions
2652 * Image.cs: Added few methods
2654 2004-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
2655 * graphics.cs: fixes parameters for DrawStrings functions
2657 2004-02-07 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2659 * SRDescriptionAttribute.cs: Added and implemented
2660 * ToolboxBitmapAttribute.cs: Implemented a few members
2661 * SystemIcons.cs: Stubbed
2662 * StringFormat.cs: Implemented method
2663 * Region.cs: Added Todo, fixed attribute
2664 * Size.cs: Added attribute
2665 * SizeF.cs: Added attribute
2666 * RectangleF.cs: Added attributes
2667 * Rectangle.cs: Added attributes
2668 * PointF.cs: Added attribute
2669 * Point.cs: Added attribute
2671 2004-02-06 Ravindra <rkumar@novell.com>
2673 * Brush.cs: Renamed GetException method to CheckStatus
2674 and moved it to gdipFunctions.cs.
2675 * gdipFunctions.cs: Added CheckStatus method.
2676 * SolidBrush.cs: Using CheckStatus method.
2677 * TextureBrush.cs: Using CheckStatus method.
2678 * gdipEnums.cs: Added a missing value.
2680 2004-02-05 Ravindra <rkumar@novell.com>
2682 * Brush.cs: Added a missing namespace.
2684 2004-02-05 Ravindra <rkumar@novell.com>
2686 * gdipFunctions.cs: Added methods for HatchBrush and
2688 * SolidBrush.cs: Added checks for status.
2689 * Brush.cs: Added support for HatchBrush and TextureBrush
2690 types in internal CreateBrush() method.
2692 2004-02-03 Jordi Mas <jordi@ximian.com>
2693 * Font.cs: Setup font properties
2695 2004-02-03 Ravindra <rkumar@novell.com>
2697 * TextureBrush.cs and Brush.cs: Moved GetException (Status)
2698 method from TextureBrush.cs to Brush.cs.
2699 * Brush.cs: Made GetException (Status) method internal.
2701 2004-02-03 Sanjay Gupta <gsanjay@novell.com>
2703 * gdipFunctions.cs: Added methods for Image class.
2705 2004-01-30 Ravindra <rkumar@novell.com>
2707 * TextureBrush.cs: Added more methods to complete it.
2708 * gdipFunctions.cs: Added methods for TextureBrush class.
2710 2004-01-30 Ravindra <rkumar@novell.com>
2712 * gdipFunctions.cs: Added methods for TextureBrush class.
2714 2004-01-30 Ravindra <rkumar@novell.com>
2716 * Pen.cs: Modified to handle TextureBrush also.
2717 * Bitmap.cs: Added one internal constructor.
2718 * TextureBrush.cs: Implemented.
2720 2004-01-29 Duncan Mak <duncan@ximian.com>
2723 * Graphics.cs: Indentation fixes, removed long dangling lines and
2726 * Graphics.cs (IsVisible): Renamed variable to not use hungarian
2729 2004-01-29 Sanjay Gupta <gsanjay@novell.com>
2731 * FontFamily.cs: Implemented few methods and a constructor
2733 2004-01-28 Sanjay Gupta <gsanjay@novell.com>
2735 * gdipFunctions.cs: Added FontFamily and FontCollection functions.
2736 * FontFamily.cs: Implemented missing functionalities.
2738 2004-01-24 Duncan Mak <duncan@ximian.com>
2740 * Graphics.cs (DrawPath): Implemented.
2742 2004-01-23 Ravindra <rkumar@novell.com>
2744 * Point.cs: ToString modified.
2745 * PointF.cs: ToString modified.
2746 * Size.cs: ToString modified.
2747 * SizeF.cs: ToString modified. ToPoint and ToSize methods
2750 2004-01-21 Jordi Mas i Hernà ndez
2751 * Bitmap.cs: Several new methods added.
2753 2004-01-21 Duncan Mak <duncan@ximian.com>
2755 * gdipFunctions.cs (GdipGetPathTypes, GdipGetPathPoints): Add
2756 OutAttribute to the array argument. This fixes the PathPoints
2757 property in System.Drawing.Drawing2D.GraphicsPath.
2759 2004-01-20 Ravindra <rkumar@novell.com>
2761 * Pen.cs: Fixed bug #52811 in Pen.Transform property. Setting
2762 this property was hanging and getting was throwing a NullRef
2763 Exception. Earlier we were passing Matrix object to and fro
2764 which was causing the problem. Now, we are using IntPtr.
2765 Thanks to Duncan for helping me.
2766 Also, .NET behavior is to maintain Pen.Color and Pen.Brush
2767 together. If color is set, a SolidBrush automatically gets
2768 set with the same color, Pen loses the old brush object.
2769 If a SolidBrush is set, Pen.Color gets the value same as that
2770 of brush color losing the old value. Pen shows this behavior
2772 * gdipFunctions.cs: Changed the signature of GdipGetPenTransform
2773 and GdipSetPenTransform methods to use IntPtr instead of Matrix.
2775 2004-01-19 Duncan Mak <duncan@ximian.com>
2777 * gdipFunctions.cs: Import functions for GraphicsPath.
2779 2004-01-14 Ravindra <rkumar@novell.com>
2781 * SolidBrush.cs: Made SolidBrush to initialize its color
2784 * gdipFunctions.cs: Added call to GdipGetSolidFillColor GDI+ API.
2786 2004-01-11 Duncan Mak <duncan@ximian.com>
2788 * Bitmap.cs (LockBits):
2789 * Graphics.cs (DrawString): Removed reference to GpRectF.
2791 2004-01-09 Duncan Mak <duncan@ximian.com>
2793 * gdipStructs.cs (GpRectF, GpRect, GpPointF, GpPoint):
2794 Removed. Didn't know that structs are laid out sequentially by
2795 default. We don't need these anymore.
2797 2004-01-12 Ben Maurer <bmaurer@users.sourceforge.net>
2799 * Color.cs: Keep KnownColors in an array so that we avoid ht lookup.
2801 2004-01-11 Daniel Morgan <danielmorgan@verizon.net>
2803 * Graphics.cs: fix compile error on Windows builds for out
2804 parameter state in call to GdipSaveGraphics
2806 2004-01-10 Ravindra <rkumar@novell.com>
2808 * All Enums: Made serializable.
2810 * Image.cs: Corrected signature of Dispose(bool) method.
2812 * Pen.cs, SolidBrush.cs, SystemPens.cs, SystemBrushes.cs:
2813 Corrected coding style mistakes of my previous commit.
2815 * PointConverter.cs, RectangleConverter.cs: Inherit TypeConverter.
2817 * PointF.cs, RectangleF.cs, SizeF.cs: Made serializable.
2819 * StringFormat.cs: Inherits MarshalByRefObject.
2821 * ToolboxBitmapAttribute.cs: Added missing attribute [AttributeUsage].
2823 2004-01-08 Ravindra <rkumar@novell.com>
2825 * Pen.cs: Added isModifiable (bool) variable. It is required to
2826 make Pens created by SystemPens.cs unmodifiable. All property
2827 setters are modified for this.
2829 * SolidBrush.cs: Added isModifiable variable (bool). It is
2830 required to make Brushes created by SystemBrushes.cs unmodifiable.
2831 All property setters are modified for this.
2833 * SystemBrushes.cs: Modified all the properties as per the .NET
2834 specs, so that Brushes are not created every time. Also, missing
2835 properties are added.
2837 * SystemPens.cs: Modified all the properties as per the .NET
2838 specs, so that Brushes are not created every time. Also, missing
2839 properties are added.
2841 2003-12-12 Miguel de Icaza <miguel@ximian.com>
2843 * Rectangle.cs: Patch from Bryan Bulten, fixes Inflate and makes
2846 2004-01-06 Duncan Mak <duncan@ximian.com>
2848 * gdipFunctions.cs: Import GraphicsPath functions from GDI+.
2850 2003-12-21 Duncan Mak <duncan@ximian.com>
2852 * Graphics.cs (DrawArc): Fixed the method signature and hooked it
2853 up to the GDI+ implementation.
2854 (RotateTransform): Uncommented.
2856 * gdipFunctions.cs (DrawArc, DrawArcI): Import from
2859 2003-12-13 Todd Berman <tberman@sevenl.net>
2861 * Font.cs: Implementing a couple things for porting purposes
2862 * SystemBrushes.cs: ^
2863 * StringFormat.cs: ^^
2865 2003-11-28 Duncan Mak <duncan@ximian.com>
2867 * Pen.cs (CompoundArray): Hide this for now.
2869 2003-11-28 Duncan Mak <duncan@ximian.com>
2871 * Brush.cs (CreateBrush): new internal factory method for creating
2872 specific brushes based on the internal (GDI+ C API) BrushType
2874 (Brush (IntPtr)): new internal constructor.
2876 * Pen.cs: Removed all the C# fields. We are using GDI+ completely
2878 (Pen (IntPtr)): new internal constructor.
2879 (Pen (Brush, float)): Use GdipCreateBrush2.
2880 (Clone): Implemented using GdipClonePen.
2881 (Alignment, Brush, Color, Width): Use GDI+ implementations
2883 (CompoundArray, DashCap, DashOffset, DashPattern, DashStyle):
2884 Implemented these properties.
2885 (CustomStartCap, CustomEndCap, StartCap, EndCap, SetLineCap): Stubbed.
2886 (MultiplyTransform, ResetTransform, RotateTransform):
2887 (ScaleTransform, TranslateTransform): Implemented these methods.
2889 * SolidBrush.cs (SolidBrush (IntPtr)): new internal constructor.
2891 * gdipEnums.cs (BrushType): Added new GDI+ enum.
2893 * gdipFunctions.cs: Imported new Brush and Pen functions.
2895 2003-11-22 Duncan Mak <duncan@ximian.com>
2898 (GdipResetWorldTransform, GdipSetWorldTransform):
2899 (GdipGetWorldTransform, GdipScaleWorldTransform): Imported.
2901 * Graphics.cs: Remove unnecessary TODO, and reformatted the code.
2902 (transform): Removed this field. Always use the
2903 matrix associated in the GpGraphics ptr.
2904 (DrawBeziers): Implemented.
2905 (DrawLine): Don't need to manually invoke the transform now.
2906 (MultiplyTransform, ResetTransform):
2907 (ScaleTransform, TranslateTransform): Use GDI+ implementation.
2908 (Transform): Instead of storing a Matrix in managed code, use
2909 equivalent GDI+ functions.
2911 2003-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2913 * SizeConverter.cs: fixed class signature and implemented some methods.
2915 2003-11-17 Duncan Mak <duncan@ximian.com>
2917 * gdipFunctions.cs (GdipGetMatrixElements): Fix signature.
2919 * Graphics.cs (MultiplyTransform): Commented out until my Matrix commit.
2921 2003-11-17 Duncan Mak <duncan@ximian.com>
2923 * Bitmap.cs (LockBits):
2924 * Graphics.cs (DrawString): Use GpRectF.
2926 * gdipFunctions.cs: Updated method signatures.
2928 * Graphics.cs (MultiplyTransform): Implemented using
2929 GdipMultiplyWorldTransform from GDI+.
2931 * gdipStructs.cs (GdipRectF, GdipRect): Renamed to GpRectF and
2932 GpRect, to be more consistent with the C naming.
2934 2003-11-16 Miguel de Icaza <miguel@ximian.com>
2936 * Graphics.cs: Implement the other DrawString overloads .
2938 2003-11-16 Miguel de Icaza <miguel@ximian.com>
2940 * gdipStructs.cs (GdipRectF): Added utility constructor
2942 2003-11-15 Duncan Mak <duncan@ximian.com>
2944 * gdipFunctions.cs: Imported matrix functions.
2946 2003-11-13 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2948 * Bitmap.cs: Added Attributes
2949 * ColorTranslator.cs: Added private constructor
2950 * Font.cs: Added Attributes
2951 * FontFamily.cs: sealed
2952 * Icon.cs: Added Attributes
2953 * IconConverter.cs: Fixed signature
2954 * Image.cs: Added attributes
2956 * ImageConverter.cs:
2957 * ImageFormatConverter.cs:
2964 * TextureBrush.cs: Fixed signature
2965 * Color.cs: Added attributes
2970 * SizeF.cs: Added attributes
2971 * ContentAlignment.cs: Added attribute
2973 2003-11-13 Duncan Mak <duncan@ximian.com>
2975 * Pen.cs (LineCap, LineJoin, MiterLimit, Transform): implemented.
2978 (GdipSetPenMiterLimit, GdipGetPenMiterLimit):
2979 (GdipSetPenLineJoin, GdipGetPenLineJoin):
2980 (GdipSetPenLineJoin, GdipGetPenTransform): imported.
2982 2003-11-12 Alexandre Pigolkine <pigolkine@gmx.de>
2984 * gdipFunctions.cs copy image in Bitmap constructor
2986 2003-11-06 Duncan Mak <duncan@ximian.com>
2987 * Graphics.cs (DrawPie): Use DrawPieI instead of DrawPie and fix
2988 angle parameters for the integer case.
2989 (DrawBezier): Hook it up with GdipDrawBezier.
2990 (DrawEllipse): Fix Width, Height ordering.
2992 2003-11-05 Duncan Mak <duncan@ximian.com>
2994 * Graphics.cs (DrawPie):
2995 * gdipFunctions.cs (GdipDrawPie): Add hooks to the implementation
2998 2003-10-28 Duncan Mak <duncan@ximian.com>
3000 * Graphics.cs (DrawEllipse, DrawLine, DrawPolygon):
3001 (FillEllipse, FillPolygon): implemented.
3002 (RenderingOrigin): implemented.
3004 * gdipFunctions.cs: Added new GDI+ equivalents.
3006 2003-10-25 Alexandre Pigolkine <pigolkine@gmx.de>
3008 * Image.cs small fixes
3010 2003-10-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3012 * Image.cs : renamed 'pallete' to 'colorPallete' for CLS compliance.
3014 2003-10-24 Miguel de Icaza <miguel@ximian.com>
3016 * SystemBrushes.cs: Some more brushe3s.
3018 * SystemPens.cs: More pens.
3020 * Pen.cs: Implement IDisposable, ICloneable.
3022 * Region.cs: Add some more stubs here.
3024 * StringFormat.cs: Add some more code here.
3026 2003-10-23 Miguel de Icaza <miguel@ximian.com>
3028 * Image.cs: Kill the InternalImageInfo, everything is now done in
3029 terms of Image and BitmapData.
3031 * Rectangle.cs: Make this one also sequential, change from using
3032 Point + Size to use x, y, width, height; So we can use GdiPlus.
3034 * gdipFunctions.cs (GdipBitmapLockBits): Remove the ref from the
3035 BitmapData class argument, and instead use the [In,Out]
3036 attributes, which will do struct marshalling on the fields. Now
3037 we can use C#'s BitmapData directly to talk to Gdiplus.
3039 * gdipStructs.cs: Every internal structure that has to talk to
3040 Gdi+ is properly prefixed, to minimize the confussion.
3042 * Bitmap.cs Bitmap (int width, int height, PixelFormat format):
3043 Compute the stride here where we have the BPP information,
3044 allocate a buffer of the proper size, and pass this to
3045 GdipCreateBitmapFromScan0
3047 * Image.cs: Implement Dispose pattern.
3049 2003-10-14 Alexandre Pigolkine <pigolkine@gmx.de>
3052 * gdipStructs.cs DrawString function added
3054 2003-10-12 Alexandre Pigolkine <pigolkine@gmx.de>
3057 * gdipStructs.cs added
3060 2003-10-12 Alexandre Pigolkine <pigolkine@gmx.de>
3069 implementation changed to gdi+
3071 2003-09-08 Duncan Mak <duncan@ximian.com>
3073 * Factories.cs (DefaultImplementationNamespace): Change it from
3074 "XrImpl" to "Cairo".
3076 2003-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3078 * Color.cs: fixed FromArgb to handle alpha value correctly. Closes
3081 2003-08-08 Duncan Mak <duncan@ximian.com>
3083 * Graphics.cs (DrawBezier): Fixed.
3085 2003-08-03 Alexandre Pigolkine <pigolkine@gmx.de>
3086 * Graphics.cs delegate Dispose to implementation
3088 2003-08-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3090 * FontConverter.cs: stub it out so that system.web compiles.
3092 2003-07-30 Alexandre Pigolkine <pigolkine@gmx.de>
3093 * Image.cs InternalImageInfo class improved
3095 2003-07-23 Miguel de Icaza <miguel@ximian.com>
3097 * Factories.cs: If the AppDomain key `Mono.Running.Windows.Forms'
3098 is set, default to Win32Impl
3100 2003-07-22 Alexandre Pigolkine <pigolkine@gmx.de>
3101 * Image.cs implementation added
3103 2003-07-21 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
3105 * Icon.cs: Stubed out (fix for System.Drawing.Design)
3107 2003-07-17 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
3109 * StringFormat.cs: Changes to become CLS-compliant
3111 2003-07-14 Miguel de Icaza <miguel@ximian.com>
3113 * Factories.cs: Remove debugging message.
3115 2003-07-01 Alexandre Pigolkine <pigolkine@gmx.de>
3116 * Color.cs code generation program modified
3118 2003-06-29 Alexandre Pigolkine
3119 * Graphics.cs image drawing
3121 2003-06-28 Alexandre Pigolkine <pigolkine@gmx.de>
3124 supply KnowColor enum value to save Enum.Parse at runtime
3126 2003-06-26 Alexandre Pigolkine <pigolkine@gmx.de>
3127 * Graphics.cs coordinate transformations
3128 * Image.cs small fix
3130 2003-06-22 Alexandre Pigolkine <pigolkine@gmx.de>
3132 * FontFamily.cs more implementation
3134 2003-06-20 Alexandre Pigolkine <pigolkine@gmx.de>
3136 * FontFamily.cs more implementation
3138 2003-06-18 Alexandre Pigolkine <pigolkine@gmx.de>
3139 * Graphics.cs few more calls to implementation
3141 2003-06-15 Alexandre Pigolkine <pigolkine@gmx.de>
3142 * Bitmap.cs BITMAP declaration removed
3143 * Graphics.cs few more calls to implementation
3144 * Image.cs InternalImageInfo structure, image read/write functions
3147 2003-05-26 Alexandre Pigolkine <pigolkine@gmx.de>
3148 * Factories.cs analyse environment variable and machine.config to select implementation
3149 * Image.cs PixelFormat property added
3151 2003-04-30 Nick Drochak <ndrochak@gol.com>
3153 * Factories.cs: Change weird characters that broke build on windows.
3155 2003-04-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3157 * ColorConverter.cs:
3158 (ConvertFrom): return a system or named color if there's one that fits
3159 teh values parsed with Color.FromArgb.
3161 2003-04-26 Alexandre Pigolkine <pigolkine@gmx.de>
3171 delegate function calls to implementation
3173 2003-04-26 Alexandre Pigolkine <pigolkine@gmx.de>
3177 * SystemBrushes.cs switch to Linux style line terminators
3179 2003-03-29 Alan Tam <Tam@SiuLung.com>
3180 * ToolboxBitmapAttribute
3181 stubbed more constructors and fixed base class
3183 2003-03-01 Alexandre Pigolkine <pigolkine@gmx.de>
3185 added stubs to compile SWF
3188 2003-02-21 Alexandre Pigolkine <pigolkine@gmx.de>
3193 small changes to be able to run SWF apps
3195 2003-02-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3197 * Graphics.cs: stubbed out all the methods.
3199 2003-02-08 Piers Haken <piersh@friskit.com>
3201 * fixed case of pens.cs and font.cs
3203 2003-02-07 Alexandre Pigolkine <pigolkine@gmx.de>
3210 2002-11-21 Dennis Hayes (dennish@raytek.com)
3211 * checkin for Matt Stump (mstump@swfo.arizona.edu)
3215 2002-10-19 Rachel Hestilow <hestilow@ximian.com>
3217 * ColorTranslator.cs (FromHtml): Implement.
3219 2002-10-14 Dennis Hayes (dennish@raytek.com)
3221 * changed using namespace from Drawing2d to Drawing2D
3223 2002-9-15 Asier Llano <asierllano@infonegocio.com>
3225 * Fixes the enum values in the following enums
3226 * ContentAlignment.cs:
3230 * RotateFlipType.cs:
3231 * StringAligment.cs:
3232 * StringDigitSubstitute.cs:
3233 * StringFormatFlags.cs:
3234 * StringTrimming.cs:
3236 * SolidBrush.cs: Easy implementation
3237 * Brushes.cs: Implementation based on SolidBrush and Color class.
3238 * Brush.cs: Fixes based on the status web).
3239 * CharacterRange.cs: Implemented the missing Lenth property.
3241 2002-9-14 Dennis Hayes (dennish@raytek.com)
3244 * removed personal template that should not have been checked in
3246 2002-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3248 * ColorConverter.cs: readded MonoTODOs and implemented a couple of
3251 2002-9-14 DennisHayes <dennish@raytek.com>
3259 * ImageFormatConverter.cs
3261 * RectangleConverter.cs
3270 * ToolboxBitmapAttribute.cs
3271 * Added null classes for most/all classes, Many stubs, and some implmentation
3273 2002-9-2 DennisHayes <dennish@raytek.com>
3280 * Added stubs, implmentation
3282 2002-9-2 DennisHayes <dennish@raytek.com>
3284 * Brushes.cs : stubbed, added colors. Not sure how to implement,
3285 but this should at least save someone some typing.
3286 * CharacterRange.cs :Implmented
3287 * Region.cs : stub needed for system.windows.forms
3289 2002-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3291 * ColorTranslator.cs: use Color.Name.
3293 2002-07-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3295 * Color.cs: implemented SystemColors and NamedColors properties that
3296 are used by ColorConverter, removed public constructor, use
3297 SystemColors, and misc. fixes to make it behave as MS (ToString,
3298 parsing names, FromKnownColor,...).
3300 * ColorConverter.cs: use NamedColors and SystemColors from Color when
3301 trying to get the color from its name.
3303 * SystemColors.cs: new file.
3305 2002-07-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3307 * Color.cs: changed static properties to use FromArgbNamed. Also
3308 modified the program included in comments that get the values for
3311 (FromArgbNamed): build named colors.
3312 (FromKnownColor): fixed.
3313 (FromName): use a hash to look up colors by name.
3314 (FillColorNames): create the hash of colors.
3315 (Equals): compare values and name.
3316 (ToString): improved.
3318 * ColorTranslator.cs: implemented ToHtml.
3320 2002-06-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3322 * Color.cs: added TypeConverter attribute.
3324 * ColorConverter.cs: added constructor.
3326 2002-06-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3328 * ColorConverter.cs: implemented minimal set of features needed by xsp.
3330 2002-05-03 Mike Kestner <mkestner@speakeasy.net>
3332 * Bitmap.cs : using System.IO
3333 * ColorTranslator.cs : Stubbed off build breakers.
3334 * Image.cs : Stub off IDisposable and ICloneable.
3336 2002-04-27 Christian Meyer <Christian.Meyer@cs.tum.edu>
3338 * Bitmap.cs: Ximian is the new copyright holder now.
3341 2002-04-05 Christian Meyer <Christian.Meyer@cs.tum.edu>
3343 * Uppercased several files.
3345 2002-04-05 Christian Meyer <Christian.Meyer@cs.tum.edu>
3347 * color.cs: Fixed a typo in GetSaturation ().
3349 2002-02-26 Christian Meyer <Christian.Meyer@cs.tum.edu>
3351 * Bitmap.cs: Added method headers.
3353 2002-02-25 Christian Meyer <Christian.Meyer@cs.tum.edu>
3355 * Bitmap.cs: Added, no implementation's done, yet.
3357 2001-12-15 Mike Kestner <mkestner@speakeasy.net>
3359 * Rectangle.cs : Add a doc comment.
3360 * RectangleF.cs : New struct implementation.
3362 2001-12-15 Mike Kestner <mkestner@speakeasy.net>
3364 * Rectangle.cs : New struct implementation.
3366 2001-08-17 Mike Kestner <mkestner@speakeasy.net>
3368 * PointF.cs, Size.cs, SizeF.cs : New struct implementations.
3370 2001-08-16 Mike Kestner <mkestner@speakeasy.net>
3372 * Point.cs : New. Implementation of System.Drawing.Point struct.