1 2007-08-13 Sebastien Pouliot <sebastien@ximian.com>
3 * gdipFunctions.cs: Change GdipMeasureString definition to use unsafe
5 * Graphics.cs: Rework MeasureString not to supply integers (characters
6 and lines) as they aren't required for most of it's overloads and
7 requires extra code/time to calculate inside libgdiplus. Also fix a
8 possible NRE in MultiplyTransform.
10 2007-08-01 Sebastien Pouliot <sebastien@ximian.com>
12 * gdipFunctions.cs: Added definition for GdipCloneFontFamily
14 2007-08-01 Vladimir Krasnov <vladimirk@mainsoft.com>
16 * Bitmap.jvm.cs: fixed InternalPixelFormat TYPE_BYTE_GRAY
18 2007-05-30 Sebastien Pouliot <sebastien@ximian.com>
20 * Graphics.cs: Refactor [Get|Release]Hdc to get ReleaseHdcInternal
21 working (as long as the HDC comes from GetHdc).
23 2007-05-21 Adar Wesley <adarw@mainsoft.com>
27 * Region.jvm.cs: Changed MemberwiseClone to clone.
29 2007-05-21 Adar Wesley <adarw@mainsoft.com>
31 * Font.jvm.cs: added implementation for Equals and GetHashCode.
33 * Graphics.jvm.cs: added missing DrawImage overloads,
34 DrawImageUnscaledAndClipped.
36 2007-05-18 Sebastien Pouliot <sebastien@ximian.com>
38 * Icon.cs: Always open icon files as read only. Fix #81669.
40 2007-05-15 Sebastien Pouliot <sebastien@ximian.com>
42 * Graphics.cs: Fix DrawImageUnscaled for empty (width or height <= 0)
43 Fix NRE in DrawImageUnscaledAndClipped. Remove lines with only tabs in
45 * RectangleF.cs: A rectangle with a negative width or height is also
48 2007-05-09 Igor Zelmanovich <igorz@mainsoft.com>
50 * FontConverter.cs: for TARGET_JVM destructor is not used.
52 2007-05-03 Igor Zelmanovich <igorz@mainsoft.com>
54 * ColorConverter.cs: fixed GetStandardValues() for TARGET_JVM
55 * Font.jvm.cs: fixed GetHeight()
57 2007-05-02 Sebastien Pouliot <sebastien@ximian.com>
59 * gdipEnums.cs: Add GetSysColorIndex
60 * gdipStructs.cs: Remove GetSysColorIndex (it's an enum)
61 * KnownColors.cs: Fix Windows desktop colors as GetSysColor returns
62 values in BGR (not RGB).
64 2007-05-01 Sebastien Pouliot <sebastien@ximian.com>
66 * KnownColors.cs: Force alpha values (opaque) on Win32's GetSysColor.
68 2007-04-30 Sebastien Pouliot <sebastien@ximian.com>
70 * Color.cs: Reflection didn't like the change from int to uint (thanks
71 to Gert for noticing again :-).
73 2007-04-29 Konstantin Triger <kostat@mainsoft.com>
75 * Color.cs: FromName - do not throw on unknown color.
77 2007-04-26 Sebastien Pouliot <sebastien@ximian.com>
79 * Color.cs: Try to avoid calling GetName in GetHashCode when the color
80 isn't named. Commented code (#81465) to remove the string name member
81 for the 2.0 profile (to avoid a reference in a struct).
82 * ColorConverter.cs: Use the new KnownColor static uint array.
83 * ColorTranslator.cs: Share code between From[Win32|Ole] (both BGR).
84 Reduce ToHtml switch size (when html name == known color name).
85 * KnownColors.cs: Remove the array of struct for every known colors.
86 Add an array of uint with color values and a method to return the name
87 of a known color. Big reduction of the static ctor code size.
89 2007-04-26 Sebastien Pouliot <sebastien@ximian.com>
91 * gdipFunctions.cs: Add p/invoke definitions for GdipRecordMetafile
92 FromDelegate[I]_linux.
94 2007-04-26 Sebastien Pouliot <sebastien@ximian.com>
96 * gdipFunctions.cs: Add p/invoke definitions for GdipRecordMetafile
97 [FileName|FromStream][I].
99 2007-04-16 Sebastien Pouliot <sebastien@ximian.com>
101 * Bitmap.cs: Add check in SetPixel for Format16bppGrayScale (but
102 without requiring a second unmanaged call on each SetPixel call).
104 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
106 * Brush.cs: Ensure we're zeroing the handle before calling
107 CheckStatus. Some clean up.
108 * Pen.cs: Ensure we're zeroing the handle before calling CheckStatus.
109 Use Locale.GetText for exceptions.
111 2007-04-11 Sebastien Pouliot <sebastien@ximian.com>
113 * Bitmap.cs: Move LockBits validations into unmanaged code.
114 * gdipFunctions.cs: Add mapping for Win32Error in CheckStatus. Add
115 globalization support for CheckStatus and add the GDI+ status code in
117 * SolidBrush.cs: Clean up and add comments about [un]named colors.
119 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
121 * Color.cs: Remove duplicate check in == and add better comments
123 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
125 * Color.cs: Remove hashtables and locks. All color properties are read
126 from KnownColors. Remove extra & 0xFF (typecast to byte is enough).
127 Keep track of the Name property once calculated. When possible (most
128 likely case) don't create the names (strings) in Equals, == and !=
129 * ColorTranslator.cs: Use the new KnownColors instead of the separate
130 NamedColors and SystemColors.
131 * ColorConverter.cs: Use the new KnownColors instead of the separate
132 NamedColors and SystemColors.
133 * gdipFunctions.cs: Moved GetSysColor p/invoke signature here as this
134 class is marked by [SuppressUnmanagedCodeSecurity].
135 * gdipStructs.cs: Moved Windows-specific GetSysColorIndex enum here.
136 * KnownColors.cs: New. Single source for all colors.
137 * SystemColors.cs: Vastly simplified. All color properties are read
140 2007-04-05 Sebastien Pouliot <sebastien@ximian.com>
142 * gdipFunctions.cs: Remove unused (and not part of GDI+) GdipGetHfont
145 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
147 * Pen.cs: Simplify. Caching the brush still involved too many
148 unmanaged calls and was hiding libgdiplus bugs (e.g. 81266). Color is
149 still cached (a little less ;-) but needs to stay that way so we keep
150 the color names available (it's the expected behavior).
152 2007-03-20 Sebastien Pouliot <sebastien@ximian.com>
154 * Graphics.cs: Replace TODO on all EnumerateMetafile overloads.
156 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
158 * Font.cs: Add a better exception for trying to create a font
159 where the requested style is not available. [Fixes #81194]
161 2007-03-15 Sebastien Pouliot <sebastien@ximian.com>
163 * ColorConverter.cs: Rewrite the hex color convertion to be more
164 compatible with MS implementation (fixing NotWorking unit tests) and
165 more endian friendly.
167 2007-02-28 Sebastien Pouliot <sebastien@ximian.com>
169 * Font.cs: Remove internal SysFontName setter property and add a new
171 * SystemFonts.cs: We can't cache font instance (because anyone can
172 dispose them) so we must return new instances each time.
174 2007-02-27 Sebastien Pouliot <sebastien@ximian.com>
176 * Bitmap.cs: Removed unrequired ctors.
177 * TextureBrush.cs: Change which GDI+ calls is used to create the
178 brush (to better match what you expect from libgdiplus source). Add
179 [MonoLimitation] to ctors accepting ImageAttributes (not supported
180 by libgdiplus). Split some long lines into two lines.
182 2007-02-26 Sebastien Pouliot <sebastien@ximian.com>
184 * gdipFunctions.cs: Add p/invoke signature for GDI DeleteObject.
185 * Region.cs: Under Windows use DeleteObject when calling ReleaseHrgn.
188 2007-02-21 Sebastien Pouliot <sebastien@ximian.com>
190 * Image.cs: Fix Metefile.ctor usage (to avoid creating, and leaking,
191 an unmanaged metafile object);
193 2007-02-16 Sebastien Pouliot <sebastien@ximian.com>
195 * gdipFunctions.cs: Fix some p/invoke definitions (int versus uint)
196 and add more for metafile functions.
197 * Image.cs: Fix usage of corrected p/invoke signatures.
199 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
201 * SystemColors.cs: Query Windows for the colors added to this class
202 for 2.0. (Windows-only path of course.)
204 2007-02-13 Sebastien Pouliot <sebastien@ximian.com>
206 * Icon.cs: Ignore Vista 256x256 icons, just like MS does.
208 2007-02-09 Sebastien Pouliot <sebastien@ximian.com>
210 * Icon.cs: Resurrected some old Icon to Bitmap code from SVN history
211 to handle convertion for Win32, where MS GDI+ ICO codec doesn't
212 support all the icon formats supported by the Icon class.
214 2007-02-08 Sebastien Pouliot <sebastien@ximian.com>
216 * Bitmap.cs: Adapt code wrt Image changes. Reuse the serialization
217 ctor from Image to avoid duplicate code.
218 * gdipEnums.cs: Added ImageType. Clean up extra stuff.
219 * gdipFunctions.cs: Added GdipGetImageType and some metafile
221 * Image.cs: Refactor code not to create a Bitmap for every images
222 (e.g. FromFile, FromStream) as the result can also be a Metafile.
224 2007-01-30 Sebastien Pouliot <sebastien@ximian.com>
226 * Image.cs: Fix serialization of Image/Bitmap that contains ICO. In
227 this case the image is serialized as a PNG bitmap (note: the ICO codec
228 is a decoder-only codec).
230 2007-01-19 Sebastien Pouliot <sebastien@ximian.com>
232 * Graphics.cs: Fix FromImage to check for indexed images inside
233 managed code (and not GDI+ which will report the wrong error code
234 for the exception we expect).
235 * Image.cs: Remove unused private method IsIndexedPixelFormat.
237 2007-01-19 Sebastien Pouliot <sebastien@ximian.com>
239 * Font.cs: Fix calls to GDIPlus.ReleaseDC (missing parameter). This
240 fix the GDI object leaks under Win32 (#80552).
241 * gdipFunctions.cs: Fix ReleaseDC signature (missing hWnd).
242 * Graphics.cs: Fix ReleaseDC signature (missing hWnd) in NET_2_0.
244 2007-01-19 Sebastien Pouliot <sebastien@ximian.com>
246 * Font.cs: Under Win32 cache the LOGFONT we use to create the HFONT
247 handle. This "hides" the fact that ToLogFont leaks (#80552).
249 2007-01-17 Sebastien Pouliot <sebastien@ximian.com>
251 * gdipFunctions.cs: Added Win32 CreateIconIndirect and DestoryIcon
252 imports. Both are required under Win32 to get HICON stuff working.
253 Added some GDI+ Metafile related definitions too.
254 * gdipStructs.cs: Update IconInfo structure so it can be used when
255 calling CreateIconIndirect on Win32.
256 * Icon.cs: Add support for handles under Win32.
258 2007-01-16 Sebastien Pouliot <sebastien@ximian.com>
260 * Icon.cs: Implement saving an icon from it's bitmap representation.
261 This allows roundtripped icons (Handle or HICON) to be saved.
263 2007-01-15 Sebastien Pouliot <sebastien@ximian.com>
265 * Icon.cs: Refactor Save code to allow saving a single icon size.
266 This allows ToBitmap to produce the right (sized) bitmap wrt the
267 selected icon size. Fix #80509 under UNIX.
269 2007-01-15 Sebastien Pouliot <sebastien@ximian.com>
271 * Bitmap.cs: Make sure we're not building bitmaps using stream that
272 can be disposed (as GDI+ may require access to them anytime);
273 * Icon.cs: Change icon selection to match either width *or* height.
274 * Image.cs: Track user versus internal streams in InitFromStream
276 2007-01-12 Sebastien Pouliot <sebastien@ximian.com>
278 * Graphics.cs: Change DrawIcon* methods to use the internal bitmap
279 we keep for the Icon. This is required to let HICON support work with
280 libgdiplus (and should be faster than creating a new bitmap each time)
281 * Icon.cs: Fix ctor exceptions. Select the correct icon when multiple
282 size are available (and do not match the requested size). Fix handle
283 support for work under UNIX (Win32 support still missing). Keep an
284 internal bitmap for the Icon to use for HICON support.
286 2007-01-11 Sebastien Pouliot <sebastien@ximian.com>
288 * Icon.cs: Fix .ctor(string) to load, when available, the 32x32 icon.
289 Remove TARGET_JVM from file (Mainsoft now use Icon2.jvm.cs). Use GDI+
290 to implement ToBitmap method (previous results were wrong).
292 2007-01-10 Sebastien Pouliot <sebastien@ximian.com>
294 * Image.cs: Fix Palette to call into GDI+ even for non-indexed images.
295 This case can occurs with the ICOn codec where the returned image is a
296 32bpp ARGB bitmap *with* a palette.
298 2007-01-09 Sebastien Pouliot <sebastien@ximian.com>
300 * Font.cs: Unify platform detection code.
301 * gdipFunctions.cs: Unify platform detection code.
302 * Graphics.cs: Unify platform detection code.
303 * Image.cs: Unify platform detection code.
304 * SystemColors.cs: Unify platform detection code.
306 2007-01-08 Sebastien Pouliot <sebastien@ximian.com>
308 * gdipStructs.cs: Add support for SignaturePatterns and
309 SiggnatureMasks values.
311 2006-12-30 Alexander Olk <alex.olk@googlemail.com>
313 * gdipFunctions.cs: Don't create "millions" of byte arrays in
314 GdiPlusStreamHelper. Just create a default size array and resize it
315 only when needed. (as an example: the FileDialog sample created more
316 than 1700 new byte arrays on my system before the patch, now only 74)
318 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
320 * Brush.cs: Fixed line endings.
321 * BufferedGraphicsContext.cs: Fixed line endings.
322 * CharacterRange.cs: Fixed line endings.
323 * Graphics.cs: Fixed line endings.
324 * IDeviceContext.cs: Fixed line endings.
325 * SizeFConverter.cs: Fixed line endings.
326 * SystemBrushes.cs: Fixed line endings.
327 * SystemFonts.cs: Fixed line endings.
328 * SystemPens.cs: Fixed line endings.
330 2006-12-22 Sebastien Pouliot <sebastien@ximian.com>
332 * Graphics.cs: Splitted CopyFromScreen into platform specific methods
333 and added MonoLimitations to all overloads. This should get better
336 2006-12-19 Sebastien Pouliot <sebastien@ximian.com>
338 * FontFamily.cs: More accurate Mono* attributes to avoid confusion.
339 * Icon.cs: Dummy implementation of ExtractAssociatedIcon to always
340 return SystemIcons.WinLogo (which is better than throwing an NIE).
341 Updated MonoTODO, to a MonoLimitation, to reflect the change.
343 2006-12-14 Sebastien Pouliot <sebastien@ximian.com>
345 * Image.cs: Rework Clone so it doesn't confuse MoMA to report a NIE.
346 Cloning works for bitmap. Metafiles aren't (actually) supported.
348 2006-12-07 Sebastien Pouliot <sebastien@ximian.com>
350 * Icon.cs: Revert a change from r68882. The type is also part of the
351 icon's name. Fix bug #80181.
353 2006-12-03 Sebastien Pouliot <sebastien@ximian.com>
355 * Icon.cs: Add a new ctor that returns undisposable Icon instances
356 (required when used from SystemIcons). Added a dispose check in
357 ToBitmap (many other are missing).
358 * SystemIcons.cs: Change icons to the one already in SVN.
360 2006-12-02 Sebastien Pouliot <sebastien@ximian.com>
362 * FontConverter.cs: Add a comment why the empty finalizer is required.
363 * gdipFunctions.cs: Remove warning from build (unused variable).
364 * Icon.cs: Fix .ctor accepting a type - the type is to find the
365 assembly, not the type of the ressource.
366 * SystemIcons.cs: Load some icons from the assembly (all the same Mono
369 2006-11-22 Sebastien Pouliot <sebastien@ximian.com>
371 * BufferedGraphicsContext.cs: Better MonoTODO.
372 * BufferedGraphics.cs: Better MonoTODO.
373 * Font.cs: Better MonoTODO.
374 * FontFamily.cs: Better MonoTODO.
375 * Graphics.cs: Better MonoTODO.
376 * Icon.cs: Better MonoTODO.
377 * Image.cs: Second chance while saving using the current RawFormat.
378 This allows icons to be saved as PNG (strange but look at unit tests).
379 * ImageFormatConverter.cs: Implement GetStandardValues (and remove
380 it's MonoTODO) and fix GetStandardValuesSupported (to return true).
381 * Region.cs: Implement ReleaseHrgn (2.0) - not really useful (as the
382 handle is never exposed) but it's easier than to document the TODO ;-)
383 * SystemIcons.cs: Better MonoTODO.
385 2006-11-06 Sebastien Pouliot <sebastien@ximian.com>
387 * RectangleF.cs: Fix operator !=. Patch by Manuel Alejandro Cerón
390 2006-11-04 Chris Toshok <toshok@ximian.com>
392 * SystemColors.cs: reassign the given color to the return value of
393 UpdateKnownColor. This makes sure that the color has the same
394 SystemColor name. So, SystemColors.Control.Name always equals
395 "Control", regardless of the values the theme has stuffed in it.
397 * Color.cs: UpdateKnownColor now returns the new color.
399 2006-10-11 Sebastien Pouliot <sebastien@ximian.com>
401 * Graphics.cs: In MeasureCharacterRanges throw an ArgumentException if
402 StringFormat is null and return an empty region array if no range exists
403 (avoid GDI+ error/exeception). In MeasureString (2 overloads) replace
404 999999 by Int32.MaxValue (now that the real bug is fixed).
405 * StringFormat.cs: Ensure we are clearing the handle before throwing
408 2006-09-21 Sebastien Pouliot <sebastien@ximian.com>
410 * gdipFunctions.cs: Throw an OverflowException for the ValueOverflow
413 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
415 * gdipFunctions.cs, Image.cs: 78315. Probably in the future we should
416 add the same checking for other resource release GDI API calls.
418 2006-09-19 Sebastien Pouliot <sebastien@ximian.com>
420 * StringFormat.cs: Add missing validations.
422 2006-09-18 Sebastien Pouliot <sebastien@ximian.com>
424 * Graphics.cs: Add missing validations to MeasureCharacterRanges.
426 2006-09-18 Sebastien Pouliot <sebastien@ximian.com>
428 * Graphics.cs: Reorder instructions in MeasureString methods to avoid
429 allocations before checking for quick exit case (null/String.Empty
430 text or throwing execptions).
432 2006-09-11 Sebastien Pouliot <sebastien@ximian.com>
434 * ImageConverter.cs: Fixed ConvertTo to deal with null values (#79331)
435 and not to "return new NotSupportedException", throwing them is better
437 2006-09-07 Kornél Pál <kornelpal@gmail.com>
439 * ComIStreamMarshaler.cs: ManagedToNativeWrapper: Dispose COM vtable
440 on shutdown. Dispose unmanaged resources when constructor fails.
442 2006-09-06 Kornél Pál <kornelpal@gmail.com>
444 * ComIStreamMarshaler.cs: ManagedToNativeWrapper should not have a
445 destructor because it is freed using Release. (Proper fix for bug
446 #78315.) Free COM vtable when unloading and all objects Released.
448 2006-09-06 Jonathan Chambers <joncham@gmail.com>
450 * ComIStreamMarshaler.cs: Only deallocate memory
451 for COM wrapper if not shutting down. #78315
453 2006-09-04 Jonathan Chambers <joncham@gmail.com>
455 * ComIStreamMarshaler.cs: Do not deallocate unmanaged memory
456 allocated for vtable. If this finalizer runs before all clients
457 are done with it (Image(s) in this case) we crash on windows. #78315
459 2006-09-01 Sebastien Pouliot <sebastien@ximian.com>
461 * Bitmap.cs: Fix exceptions for LockBits.
463 2006-08-28 Sebastien Pouliot <sebastien@ximian.com>
465 * ImageAnimator.cs: Remove catch/throw in WorkerThread (it hides the
466 original exception). Found with Gendarme.
467 * Color.cs: Remove the double-check lock. Found with Gendarme.
468 * ColorConverter.cs: Remove the double-check lock. Found with Gendarme
470 2006-08-28 Jonathan Chambers <joncham@gmail.com>
472 * ComIStreamMarshaler.cs: Do not free memory allocated for
473 Com Callable Wrapper for stream. When Image created from stream
474 is destroyed, it calls Release on CCW interface. Somehow we seem
475 to be destroying Stream CCW before Image is destroyed. Fixes
476 crash on exit on Windows. #78315
478 2006-08-28 Boris Kirzner <borisk@mainsoft.com>
480 * SystemColors.jvm.cs: fix array size for NET_2_0
482 2006-08-27 Sebastien Pouliot <sebastien@ximian.com>
484 * ColorConverter.cs: Catch the case where the integer part of the
485 color doesn't fit into a 32bit integer.
486 * ColorTranslator.cs: Fixed Gendarme's UseStringEmptyRule on ToHtml
487 method. Fixed string handling on FromHtml method. Fixed all parameter
490 2006-08-25 Sebastien Pouliot <sebastien@ximian.com>
492 * gdipFunctions.cs: Change ColorMatrix to IntPtr in method
493 GdipSetImageAttributesColorMatrix definition.
494 * FontConverter.cs: Fix compiler warnings.
496 2006-08-24 Sebastien Pouliot <sebastien@ximian.com>
498 * TextureBrush.cs: Remove private Image member as we cannot, without
499 cloning it (which removes the advantage of caching it), return it for
500 the Image property *and* we cannot dispose of it properly (Dispose
503 2006-08-22 Sebastien Pouliot <sebastien@ximian.com>
505 * gdipFunctions.cs: Fix GdipGetImageWidth to use an uint for it's
507 * Image.cs: Cast the uint into an int for the Width property.
509 2006-08-12 Duncan Mak <duncan@novell.com>
511 * gdipFunctions.cs (GdipLoadImageFromStream):
512 (GdipSaveImageToStream): Don't include these methods when
513 compiling the unit tests.
515 2006-08-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
517 * gdipFunctions.cs: return -1 when stream.Length throws.
519 2006-08-11 Sebastien Pouliot <sebastien@ximian.com>
521 * Font.cs: Remove the, now unrequired, FaceNameOffset field and
522 use the object size instead of the structure size when copying.
524 2006-08-11 Sebastien Pouliot <sebastien@ximian.com>
526 * Font.cs: Added more checks to ToLogFont and fixed it's behaviour
527 to match MS boundary between GDI+ and SD.
529 2006-08-07 Andrew Skiba <andrews@mainsoft.com>
531 * Graphics.jvm.cs, Pen.jvm.cs, Region.jvm.cs: TARGET_JVM fix
533 2006-08-05 Sebastien Pouliot <sebastien@ximian.com>
535 * Font.cs: Avoid double cast in Equals. Return lfCharSet as 1 in
536 ToLogFont even if GDI+ has that value to 0.
538 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
540 * Icon.cs: when converting to Bitmap, handle the 24 bits separately.
541 Read the XOR and AND masks in a single read.
543 2006-08-04 Sebastien Pouliot <sebastien@ximian.com>
545 * Pen.cs: Fix unit tests wrt libgdiplus return value change.
547 2006-08-03 Sebastien Pouliot <sebastien@ximian.com>
549 * FontFamily.cs: Fix unit tests wrt libgdiplus return value change.
550 * Region.cs: Fix unit tests wrt libgdiplus return value change.
552 2006-08-01 Jonathan Chambers <joncham@gmail.com>
554 * Font.cs: Fix marshalling of LOGFONT in ToHfont.
557 2006-07-20 Sebastien Pouliot <sebastien@ximian.com>
559 * Graphics: Added implementation for ReleaseHDC by Jonathan Pobst
562 2006-07-06 Sebastien Pouliot <sebastien@ximian.com>
564 * Image.cs: Ensure we're setting the nativeObject to NULL before
565 throwing any exception while disposing (and avoid possible double
566 freeing). Avoid multiple casts in Clone method.
567 * Pen.cs: Ensure the internal pen's brush is always disposed
568 correctly. Avoid making a reference to the internal brush.
569 * SolidBrush.cs: Avoid setting color when cloning the solid brush
570 as the .ctor(IntPtr) always does this job.
572 2006-07-04 Sebastien Pouliot <sebastien@ximian.com>
574 * Image.cs: Made GetThumbnailImage throw OutOfMemoryException when
575 image size is invalid (to match MS behaviour), also ensure that the
576 Graphics instance is disposed even if CheckStatus throws an exception.
578 2006-06-26 Sebastien Pouliot <sebastien@ximian.com>
580 * Pen.cs: Ensure we dispose of an existing brush before replacing it.
581 Avoid double-cast when dealing with SolidBrush.
583 2006-06-06 Sebastien Pouliot <sebastien@ximian.com>
585 * gdipFunctions.cs: Fix API signature (missing pen pointer) for
586 GdipIsOutlineVisiblePathPoint[I] methods.
587 * FontFamily.cs: Delay the call to refreshName until it is actually
590 2006-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
592 * Color.cs: when deserializing from an MS generated stream, the value
593 for known colors was 0. These changes make our Color handle that case.
594 We won't serialize the name for known colors either, but the value will
595 be there, so we only check for a 0 value on a known color once.
598 2006-05-30 Sebastien Pouliot <sebastien@ximian.com>
600 * Font.cs: Change default charset to 1. Ensure we always call the
601 CheckStatus method after calling GDI+. Added null checks to match MS
603 * FontFamily.cs: Avoid double-cast in Equals. Fixed Equals not compare
604 pointers but names. Simplify the Generic* static properties by reusing
605 the .ctor code. Fixed ToString to match MS output. Removed
606 GetStyleCheck as it failed when multiple styles were provided (flags).
607 * gdipFunctions.cs: Convert Status.FontFamilyNotFound to an
610 2006-05-29 Sebastien Pouliot <sebastien@ximian.com>
612 * ImageFormatConverter.cs: Changed ConvertFrom to work with both short
613 (e.g. Bmp) and long (e.g. guid) names.
615 2006-05-26 Sebastien Pouliot <sebastien@ximian.com>
617 * ImageFormatConverter.cs: Fixing unit tests for ImageFormat
618 introduced a regression in the converter (not catched by other unit
621 2006-05-25 Sebastien Pouliot <sebastien@ximian.com>
623 * gdipFunctions.cs: Added wrapper methods for GdipGetRegionHRgn and
624 GdipCreateRegionHrgn functions.
625 * Region.cs: Reimplement GetHrgn and FromHrgn methods using the GDI+
628 2006-05-24 Sebastien Pouliot <sebastien@ximian.com>
630 * PointConverter.cs: Fx 2.0 throws an ArgumentException in
631 CreateInstance if some values are missing from the dictionary, while
632 1.x throws an NullReferenceException.
633 * RectangleConverter.cs: Fx 2.0 throws an ArgumentException in
634 CreateInstance if some values are missing from the dictionary, while
635 1.x throws an NullReferenceException.
636 * SizeConverter.cs: Fx 2.0 throws an ArgumentException in
637 CreateInstance if some values are missing from the dictionary, while
638 1.x throws an NullReferenceException.
639 * SizeFConverter.cs: Fix CreateInstance to use float (not int).
641 2006-05-24 Sebastien Pouliot <sebastien@ximian.com>
643 * Font.cs: Added a Demand for UnmanagedCode on both ToLogFont methods.
644 * Graphics.cs: Added checks for null Rectangle[F] arrays in
645 FillRectangles methods and removed the check for 0-length (MS throws).
646 Let EndContainer mthod throws a NullReferenceException on 1.x profile.
647 * Pen.cs: Let Brush property throws a NullReferenceException on 1.x.
649 2006-05-24 Sebastien Pouliot <sebastien@ximian.com>
651 * Pen.cs: Clone the supplied brush in the .ctor (as the user may
652 dispose of it anytime). Make sure we're disposing our cached brush
653 when disposing the pen.
655 2006-05-21 Sebastien Pouliot <sebastien@ximian.com>
657 * ContentAlignment.cs: Removed [Serializable] from 2.0 profile.
658 * FontStyle.cs: Removed [Serializable] from 2.0 profile.
659 * GraphicsUnit.cs: Removed [Serializable] from 2.0 profile.
660 * KnownColor.cs: Removed [Serializable] from 2.0 profile.
661 * RotateFlipType.cs: Removed [Serializable] from 2.0 profile.
662 * StringAligment.cs: Removed [Serializable] from 2.0 profile.
663 * StringDigitSubstitute.cs: Removed [Serializable] from 2.0 profile.
664 * StringFormatFlags.cs: Removed [Serializable] from 2.0 profile.
665 * StringTrimming.cs: Removed [Serializable] from 2.0 profile.
666 * StringUnit.cs: Removed [Serializable] from 2.0 profile.
668 2006-05-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
670 * ImageAnimator.cs: get the FrameDelay from the image properties, if
671 available. Remove ^Ms.
673 2006-05-17 Sebastien Pouliot <sebastien@ximian.com>
675 * Pen.cs: Get the pen color from the solid brush (when applicable).
676 Added missing validations for most properties. Always return a clone
677 of the internal brush (so no one can dispose of it in our back).
679 2006-05-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
681 * Color.cs: make it serialization-compatible with MS. Fixes bug #78265.
683 2006-05-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
685 * Bitmap.cs: (Clone) use the 'format' argument instead of the
688 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
690 * Graphics.cs : (FillRectangles/FillRectanglesI): when argument
691 array is empty, don't invoke GDI+. Fixed bug #78408.
693 2006-05-12 Sebastien Pouliot <sebastien@ximian.com>
695 * gdipFunctions.c: Fix misnamed GdipAdd*Path*String[I] API (#78383)
697 2006-05-11 Peter Dennis Bartok <pbartok@novell.com>
699 * Icon.cs: Don't require width/height to be non-0 when creating from
700 serialized data, just require them to be square
702 2006-05-04 Sebastien Pouliot <sebastien@ximian.com>
704 * Graphics.cs: Chaned DrawIcon methods to dispose the temporary bitmap
707 2006-05-04 Sebastien Pouliot <sebastien@ximian.com>
709 * Graphics.cs: Added a MonoTODO to PixelOffsetMode property so it shows
710 (in the class status library) a note that this isn't supported with
713 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
715 * FontConverter.cs (ConvertFrom): Implemented it properly. Fixes #78269
717 2006-05-02 Sebastien Pouliot <sebastien@ximian.com>
719 * PointF.cs: Add operators + and - between PointF and SizeF in the
720 2.0 profile (CSC 8.x can compile that, but sadly it doesn't show in as
721 missing in corcompare results).
723 2006-05-02 Sebastien Pouliot <sebastien@ximian.com>
725 * gdipFunctions.cs: Fixed wrappers for Gdip[Begin|End]Container[2][I]
726 * Graphics.cs: Fixed usage of fixed API ;-) Added MonoTODO on
727 BeginContainer methods that use rectangles and on TextContrast property
728 (all aren't currently supported in libgdiplus).
730 2006-05-01 Sebastien Pouliot <sebastien@ximian.com>
732 * Graphics.cs: Removed MonoTODO on DrawCurve methods (it's fixed in
733 libgdiplus). Fixed minor extra/missing for corcompare.
735 2006-05-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
737 * SizeF.cs: serialization compatibility fixes. Closes bug #78236.
739 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
741 * Icon.cs: Icon AND masks are organized in strides, fixed to calculate
742 and set proper transparency. Also fixed broken calculation of AND
743 size when reading the icon. NDocGui now shows pretty buttons.
745 2006-04-28 Sebastien Pouliot <sebastien@ximian.com>
747 * Color.cs: corcompare fix. Remove ComVisible attribute from 2.0 build
748 * Region.cs: Remove old todo that were fixed in libgdiplus.
749 * Image.cs: corcompare fixes. Clone isn't virtual. Added DefaultValue
750 attribute to Tag property. FromStream(Stream,bool,bool) is available
751 in Fx 1.1 (probably since SP1).
753 2006-04-28 Sebastien Pouliot <sebastien@ximian.com>
755 * Graphics.cs: Added MonoTODO on some DrawCurve methods because
756 libgdiplus doesn't use the numberOfSegments argument.
758 2006-04-27 Sebastien Pouliot <sebastien@ximian.com>
760 * gdipFunctions.cs: Added wrappers for GdipAddPathLine2 and
761 GdipAddPathLine2I methods (to allow adding a single point).
763 2006-04-27 Sebastien Pouliot <sebastien@ximian.com>
765 * gdipFunctions.cs: Added CharSet=CharSet.Unicode to GdipAddString and
766 GdipAddStringI wrapper methods.
768 2006-04-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
770 * Bitmap.cs: throw when the target pixel format differs from the one
771 of the image and it's an indexed format. We were failing in UnlockBits
774 2006-04-25 Miguel de Icaza <miguel@novell.com>
776 * FontConverter.cs (FontUnitConverter): implement. CorCompare
777 for some reason does not dig into nested classes, match the
780 (FontNameConverter): Return the fonts available on the system.
782 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
784 * Icon.cs: We need to or, not and our alpha values into the
785 palette. Also, we need to actually store the altered palette
786 on the bitmap, since we are altering a copy.
788 2006-04-10 Sebastien Pouliot <sebastien@ximian.com>
790 * gdipFunctions.cs: Fixed wrappers for GdipCreateMatrix3[I].
792 2006-03-23 Peter Dennis Bartok <pbartok@novell.com>
795 - GdipGetFontCollectionFamilyList: No need for complicated
796 GlobalAlloc stuff, .Net marshals the IntPtr[] array just fine
797 - GdipDeletePrivateFontCollection: We need to pass a ref to the
798 structure. This was causing nasty crashes.
799 - GdipGetFamilyName: Switched to use StringBuilder instead of
801 * FontFamily.cs: Simplified the refreshName method, less error-prone now
803 2006-03-21 Sebastien Pouliot <sebastien@ximian.com>
805 * Brush.cs: Remove unused code.
806 * FontFamily.cs: Remove warnings from build.
807 * gdipFunctions.cs: Add missing p/invoke calls for GdipAddString[I].
809 2006-03-21 Sebastien Pouliot <sebastien@ximian.com>
811 * gdipFunctions.cs: Import XFree (from libX11) so we can free the
813 * Graphics.cs: Free the memory we get from XGetVisualInfo.
815 2006-03-20 Sebastien Pouliot <sebastien@ximian.com>
817 * Brush.cs: Allow Dispose to free the unmanaged memory for the brush
818 in every case. This has been known (in the past) to cause crashes
819 in Cairo. If still true then we need to find out why!
821 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
823 * gdipFunctions.cs: Removed XCloseDisplay call from Gdi+ shutdown,
824 it was causing crashes in the finalizers (bug #77464)
826 2006-03-06 Jonathan Gilbert <logic@deltaq.org>
828 * gdipFunctions.cs: Rewrote the StreamSeekImpl function to invalidate
829 the start_buf cached bytes whenever Seek() is actually called. If
830 Seek is not called (an invalid 'whence' value), then the buffer is
831 not invalidated. This fixes a bug with TIFF loading.
833 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
835 * Image.cs (ISerializable.GetObjectData): Save the image in it's
836 original format. (Fixes #77673)
838 2006-02-28 Jonathan Chambers <jonathan.chambers@ansys.com>,
839 Peter Dennis Bartok <pbartok@novell.com>
842 - ToLogFont: Reworked to allow running under MS runtime and to
843 support it being called with both boxed structs and formatted
844 classes (MS runtime PtrToStructure cannot marshal boxed value
845 types, but Marshal.AsAny can)
846 - Switched all usage of LOGFONTA to more generic CharSet-driven
848 - FromLogFont: Switched to use charset-agnostic GdipCreateFontFromLogfont
849 * gdipStructs.cs: Dropped LOGFONTA and LOGFONTW and switched to
850 CharSet-driven LOGFONT structure (needed because of ToLogFont fix)
851 * gdipFunctions.cs: Switched GdipGetLogFont, GdipCreateFontFromLogfont and
852 CreateFontIndirect to use LOGFONT structure, set to be CharSet=Auto
853 (needed because of ToLogFont fix)
855 2006-02-18 Duncan Mak <duncan@novell.com>
857 * Graphics.cs (DrawBeziers): Patch from Alexander Olk to fix
858 possible IndexOutOfRangeException.
860 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
862 * Image.cs, Bitmap.cs: Removed unneeded casts
863 * Icon.cs: Fixed code to be 64bit safe
865 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
867 * Font.cs: Fixes 77407
869 2006-01-27 Sebastien Pouliot <sebastien@ximian.com>
871 * Font.cs: Ensure unmanaged memory is free correctly in ToLogFont
872 even if GDIPlus.CheckStatus throws an exception;
873 * Image.cs: Ensure unmanaged memory is free correctly even if
874 GDIPlus.CheckStatus throws an exception. Note: the SetPropertyItem use
875 case is unclear to me (and unimplemented in libgdiplus);
876 * Region.cs: Ensure unmanaged memory is free correctly in
877 GetRegionScans even if GDIPlus.CheckStatus throws an exception;
879 2006-01-27 Jordi Mas i Hernandez <jordimash@gmail.com>
881 * gdipFunctions.cs: New gdiplus imports
882 * Font.cs: Use gdiplus calls to get font height and size
884 2006-01-26 Sebastien Pouliot <sebastien@ximian.com>
886 * FontFamily.cs: Free the memory allocated with Marshal.AllocHGlobal.
887 * Region.cs: Updated TODO to reflect current status.
889 2006-01-24 Konstantin Triger <kostat@mainsoft.com>
891 * Font.jvm.cs, FontFamily.jvm.cs: use static container.
893 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
895 * Icon.cs: The code wrongly assumed that the stride for the icon
896 would be the same as the stride for the bitmap. This was causing
899 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
901 * Icon.cs: Reworked ToBitmap() method to not use Bitmap(Stream)
902 which when calling down to MS GDI+ will create an image
903 where neither GetPixel or Save can be used on.
905 2006-01-18 Sebastien Pouliot <sebastien@ximian.com>
907 * gdipFunctions.cs: Added declaration for GdipCreateRegionRgnData.
908 * Region.cs: Implemented .ctor(RegionData)
910 2006-01-13 Miguel de Icaza <miguel@novell.com>
912 * Region.cs: Revert the Region.cs check in GetHrgn as it was used
913 by our Windows.Forms implementation.
915 2006-01-11 Sebastien Pouliot <sebastien@ximian.com>
917 * Graphics.cs: Avoid creating bitmaps two times if both X and Y
918 default DPI are required (i.e. init both value in both cases).
919 * Region.cs: Added null check to match MS behaviour (exception type)
920 and avoid NRE (before CheckStatus is called). Added security demands
921 for unmanaged code on both FromHrgn and ReleaseHrgn (2.0) methods.
923 2005-12-22 Jonathan Chambers <jonathan.chambers@ansys.com>
925 * gdipFunctions.cs: Do not call GdiplusShutdown for
926 now as it causes a crash on MS GDI+.
928 2005-12-20 Konstantin Triger <kostat@mainsoft.com>
930 * Font.jvm.cs: charset support.
932 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
934 * Graphics.cs (Flush): Make sure nativeObject is not null
936 2005-12-14 Konstantin Triger <kostat@mainsoft.com>
938 * StrokeFactory.jvm.cs: create AdvancedStroke when have penTransform.
940 2005-12-13 Konstantin Triger <kostat@mainsoft.com>
942 * Bitmap.jvm.cs: Fix MakeTransparent.
944 2005-12-07 Jordi Mas i Hernandez <jordimash@gmail.com>
946 * Graphics.cs: Add new deephs support to CopyFromScreen
948 2005-12-07 Jordi Mas i Hernandez <jordimash@gmail.com>
950 * BufferedGraphicsManager.cs: Fixes signature
952 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
955 - Implemented FromLogFont
956 - Implemented ToLogFont
959 - Added GdipGetLogFontW method
960 - Specified charset for GdipGetLogFontA method
961 * gdipStructs.cs: Added LOGFONTW structure
963 2005-12-05 Gert Driesen <drieseng@users.sourceforge.net>
965 * BufferedGraphics.cs: Removed duplicate class. Set eol-style to
967 * BufferedGraphicsManager.cs: Removed duplicate class. Set eol-style
970 2005-12-05 Jordi Mas i Hernandez <jordimash@gmail.com>
972 * gdipFunctions.cs: DllExports need it to implement
973 new Graphics.CopyFromScreen .Net 2.0 methods
974 * IDeviceContext.cs: New .Net 2.0 interface
975 * Color.cs: Fixes for new .Net 2.0 KnowColors
976 * PointF.cs: New .Net 2.0 Add/Subtract methods
977 * gdipStructs.cs: Structs need it for Graphics.CopyFromScreen
978 * SystemBrushes.cs: New standard SystemBrushes for .Net 2.0
979 * SizeF.cs: New .Net 2.0 Add/Subtract methods
980 * FontConverter.cs: New .Net 2.0 fixes
981 * SystemColors.cs: New standard SystemColors for .Net 2.0
982 * SizeFConverter.cs: New .Net 2.0 class (based on SizeConverter)
983 * CharacterRange.cs: : New .Net 2.0 methods
984 * Size.cs: New .Net 2.0 Add/Subtract methods
985 * SystemPens.cs: New standard SystemPens for .Net 2.0
986 * Bitmap.cs: New .Net 2.0 methods
987 * Region.cs: New .Net 2.0 methods
988 * Brush.cs: New .Net 2.0 constructor
989 * Icon.cs: New .Net 2.0 Constructors and methods
990 * Point.cs: New .Net 2.0 Add/Subtract methods
991 * BufferedGraphicsManager.cs: New .Net 2.0 class
992 * Graphics.cs: New methods for .Net 2.0 and fixes
993 * BufferedGraphics.cs: New .Net 2.0 class
994 * Font.cs: New .Net 2.0 properties
995 * Image.cs: New .Net 2.0 tag property
996 * KnownColor.cs: New .Net 2.0 know colors
997 * CopyPixelOperation.cs: New .Net 2.0 enum
998 * SystemFonts.cs: New .Net 2.0 class
999 * BufferedGraphicsContext.cs: New .Net 2.0 class
1001 2005-11-28 Konstantin Triger <kostat@mainsoft.com>
1003 * SystemIcons.jvm.cs: refactoring.
1005 2005-11-28 Konstantin Triger <kostat@mainsoft.com>
1007 * Icon.cs: TARGET_JVM changes.
1009 2005-11-17 Vladimir Krasnov <vladimirk@mainsoft.com>
1011 * Image.jvm.cs: fixed Save, flush output stream
1013 2005-11-17 Konstantin Triger <kostat@mainsoft.com>
1015 * StrokeFactory.jvm.cs, Pen.jvm.cs, Graphics.jvm.cs: performance - use BasicStroke when possible.
1017 2005-11-17 Vladimir Krasnov <vladimirk@mainsoft.com>
1019 * ColorConverter.cs: fixed ConvertFrom, to be able
1020 to convert from three digit notation color (#abc)
1022 2005-11-16 Konstantin Triger <kostat@mainsoft.com>
1024 * Bitmap.jvm.cs: open a correct stream.
1026 2005-11-16 Konstantin Triger <kostat@mainsoft.com>
1028 * FontFamily.jvm.cs, Font.jvm.cs: throw exception if invalid params.
1030 2005-11-16 Konstantin Triger <kostat@mainsoft.com>
1032 * FontFamily.jvm.cs: fix for custom font collection
1034 2005-11-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1036 * FontFamily.jvm.cs: fixed GetName
1038 2005-11-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1040 * Bitmap.jvm.cs: fixed InternalSave() error handling
1041 * Image.jvm.cs: fixed Save() error handling
1043 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1045 * FontFamily.jvm.cs: Refactoring.
1047 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1049 * Font.jvm.cs: Refactoring.
1051 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1053 * StringFormat.jvm.cs, Graphics.jvm.cs: DrawString,
1054 MeasureString support
1056 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1058 * FontFamily.jvm.cs: correctly initialize fontcollection
1060 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1062 * FontFamily.jvm.cs: DrawMargin, refactoring.
1064 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1066 * Graphics.jvm.cs, Pen.jvm.cs, AdvancedStroke.jvm.cs:
1067 Differentiate standard and AntiAlias stroking
1069 2005-11-10 Vladimir Krasnov <vladimirk@mainsoft.com>
1071 * Graphics.jvm.cs: added UnitConversion property
1072 * FontFamily.jvm.cs: refactoring
1073 * Font.jvm.cs: refactoring
1075 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
1078 - Implemented serialization constructor
1079 - Implemented GetObjectData()
1081 2005-11-01 Vladimir Krasnov <vladimirk@mainsoft.com>
1083 * StringFormat.jvm.cs: Refactoring
1085 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
1087 * Image.cs: Default format for MemoryBMP should be Png
1089 2005-10-27 Vladimir Krasnov <vladimirk@mainsoft.com>
1091 * Bitmap.jvm.cs: fixed InternalSave
1092 * Image.jvm.cs: fixed Save
1094 2005-10-27 Vladimir Krasnov <vladimirk@mainsoft.com>
1096 * Image.jvm.cs: fixed redolution properties
1098 2005-10-27 Vladimir Krasnov <vladimirk@mainsoft.com>
1100 * Bitmap.jvm.cs: fixed InternalSave, to remove alpha channel of saved jpeg
1101 fixed clone, Initialize
1103 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
1105 * Brush.cs: Don't delete the brush if the display handle is no longer
1106 valid, otherwise cairo will try to use the handle and crash and burn
1108 2005-10-23 Vladimir Krasnov <vladimirk@mainsoft.com>
1110 * Graphics.jvm.cs: DrawImage refactoring
1112 2005-10-23 Vladimir Krasnov <vladimirk@mainsoft.com>
1114 * Graphics.jvm.cs: Clipping refactoring
1115 fixed FillScaledShape, DrawShape, MeasureDraw, BeginContainer,
1116 ExcludeClip, IntersectClip, ResetClip, CombineClipArea, RestoreBaseClip,
1117 TranslateClip, VisibleClipBounds
1119 2005-10-21 Miguel de Icaza <miguel@novell.com>
1121 * Pen.cs: Add support for returning the Brush from Pens created
1122 with a color constructor.
1124 Plus: code style police, else does not go on its own line.
1126 * Graphics.cs: Add various ArgumentNull checks.
1128 2005-10-20 Konstantin Triger <kostat@mainsoft.com>
1130 * Image.jvm.cs: make Clone abstract
1132 2005-10-20 Konstantin Triger <kostat@mainsoft.com>
1134 * Font.jvm.cs: make fallbacks for GdiCharSet, GdiVerticalFont
1136 2005-10-19 Vladimir Krasnov <vladimirk@mainsoft.com>
1138 * Bitmap.jvm.cs: fixed InternalSave, ToBufferedImageFormat, Clone
1139 * PlainImage.jvm.cs: fixed Clone
1140 * Graphics.jvm.cs: fixed FillShape, Clear, FillScaledShape
1142 2005-10-19 Vladimir Krasnov <vladimirk@mainsoft.com>
1144 * Brush.jvm.cs: added InternalClone() method
1145 changed transformation methods access level
1146 * TextureBrush.jvm.cs: refactoring, fixed clone()
1148 2005-10-19 Vladimir Krasnov <vladimirk@mainsoft.com>
1150 * AdvancedStroke.jvm.cs: fixed createStrokedShape, check for transform
1151 matrix singularity added
1152 * Font.jvm.cs: implemetated ISerializable
1153 * Pen.jvm.cs: fixed DashPattern property,
1154 fixed GetNativeObject() dash pattern calculation
1156 2005-10-14 Jordi Mas i Hernandez <jordi@ximian.com>
1158 * SystemColors.cs: Fixes the Win32 light and lightlight colours
1160 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
1162 * SystemColors.cs: Fixes the Win32 system colors including the color
1163 name and the knownColor properties.
1165 2005-10-07 Peter Dennis Bartok <pbartok@novell.com>
1167 * FontFamily.cs: Use Marshal.PtrToStringUni to do the string
1168 conversion, it's less overhead than StringBuilder. (Part of the
1169 bugfix for #74871 and #75534)
1171 * gdipFunctions: Changed signature for GdipGetFamilyName to just
1172 have an IntPtr for the buffer
1174 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
1176 * Graphics.cs, FontFamily.cs: Calling GC.SuppressFinalize from Dispose,
1179 2005-09-29 Peter Dennis Bartok <pbartok@novell.com>
1181 * SystemColor.cs: Added code used to generate properties, updated with
1184 2005-09-29 Peter Dennis Bartok <pbartok@novell.com>
1186 * SystemColor.cs: Make internal names predictable to allow scripted
1187 generation of color table
1189 2005-09-28 Peter Dennis Bartok <pbartok@novell.com>
1191 * Color.cs(UpdateKnownColor): Ensure knownColors exists before trying
1194 2005-09-27 Peter Dennis Bartok <pbartok@novell.com>
1197 - Changed properties to return colors from fields. This allows
1198 updating the colors via reflection, for example from MWF themes.
1199 - Added code to retrieve system colors via Win32 GetSysColors if
1200 running on Win32, this makes us compatible with Microsoft instead
1201 of returning static colors on Win32. Unix platforms still will
1202 use the static colors
1203 * Color.cs: Added UpdateKnownColor() method to allow updating of
1204 the KnownColors array
1206 2005-09-26 Kornél Pál <kornelpal@hotmail.com>
1208 * Graphics.cs: DrawImage: imageAttr can be null. Fixed to pass IntPtr.Zero
1209 when imageAttr is null.
1211 2005-09-26 Vladimir Krasnov <vladimirk@mainsoft.com>
1213 * Brush.jvm.cs: fixed transform methods, createContext
1214 * TextureBrush.jvm.cs: implemetated transform, WrapMode, ctors
1216 2005-09-21 Vladimir Krasnov <vladimirk@mainsoft.com>
1218 * Bitmap.jvm.cs: fixed Clone, InternalSave, Initialize, ctor refactoring, remarks refactoring
1219 * Image.jvm.cs: fixed GetFrameCount, GetThumbnailImage, SelectActiveFrame, remarks refactoring
1220 * PlainImage.jvm.cs: added metadata props, fixed ctor
1221 * PlainImageCollection.jvm.cs: fixed class access
1223 2005-09-21 Jordi Mas i Hernandez <jordi@ximian.com>
1225 * Graphics.cs: Fixes exception type at FromImage method
1227 2005-09-20 Vladimir Krasnov <vladimirk@mainsoft.com>
1229 * Graphics.jvm.cs: bitmap resolution fix in DrawImage
1231 2005-09-20 Vladimir Krasnov <vladimirk@mainsoft.com>
1233 * Graphics.jvm.cs: fixed DrawImage
1235 2005-09-19 Miguel de Icaza <miguel@novell.com>
1237 * Graphics.cs: Removed restriction on the images that can be
1238 loaded. Indexed images *can* be loaded
1240 2005-09-18 Miguel de Icaza <miguel@novell.com>
1242 * Image.cs: introduce a workaround that catches errors on systems
1243 that lack GDI+ as this is being triggered too easily when we
1244 enumerate attributes on loaded classes.
1246 The real bug to fix is #76062.
1248 2005-09-17 Kornél Pál <kornelpal@hotmail.com>
1250 * Image.cs: Implemented FromHbitmap.
1252 2005-09-16 Sebastien Pouliot <sebastien@ximian.com>
1254 * gdipFunctions.cs: Add [SuppressUnmanagedCodeSecurity] attributes so
1255 the JIT won't add demands for UnmanagedCode.
1256 * carbonFunctions.cs: Add [SuppressUnmanagedCodeSecurity] attributes
1257 so the JIT won't add demands for UnmanagedCode on Mac OSX.
1258 * Bitmap.cs: Added LinkDemand for UnmanagedCode on GetHbitmap
1259 (+ overloads) and GetHicon methods.
1260 * Graphics.cs: Added LinkDemand for UnmanagedCode on FromHdcInternal,
1261 FromHwndInternal and ReleaseHdcInternal methods (which are all public
1262 despite their names).
1264 2005-09-15 Konstantin Triger <kostat@mainsoft.com>
1266 * Graphics.jvm.cs: text transform, headless session
1268 2005-09-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1270 * Bitmap.jvm.cs: native object refactoring
1271 * Image.jvm.cs: native object refactoring
1272 * Graphics.jvm.cs: fixed access to image native object
1273 * TextureBrush.jvm.cs: fixed access to image native object
1274 * Added PlainImage.jvm.cs, PlainImageCollection.jvm.cs
1276 2005-09-14 Geoff Norton <gnorton@customerdna.com>
1278 * carbonFunctions.cs: Add GetCGContextForNSView for Cocoa# integration
1279 * Graphics.cs: Check GDIPlus.UseCocoaDrawable for Cocoa# integration
1280 * gdipFunctions.cs: Set UseCocoaDrawable depending on the environment variable MONO_GDIP_USE_COCOA_BACKEND
1282 2005-09-14 Konstantin Triger <kostat@mainsoft.com>
1284 * Graphics.jvm.cs: transform, container, thin pen
1286 2005-09-12 Konstantin Triger <kostat@mainsoft.com>
1288 * AdvancedStroke.jvm.cs: constants for pen fitting calculations
1289 * Pen.jvm.cs: fixing transform, pen fitting
1291 2005-09-12 Konstantin Triger <kostat@mainsoft.com>
1293 * Region.jvm.cs: IsVisible is about intersection
1295 2005-09-12 Gert Driesen <drieseng@users.sourceforge.net>
1297 * ImageConverter.cs: Use default TypeDescriptor implementation of
1300 2005-09-11 Konstantin Triger <kostat@mainsoft.com>
1302 * Graphics.jvm.cs: fixing clipping with rotate transform
1304 2005-09-11 Konstantin Triger <kostat@mainsoft.com>
1306 * Region.jvm.cs: default region is infinite
1308 2005-09-10 Konstantin Triger <kostat@mainsoft.com>
1310 * Graphics.jvm.cs: fixing clipping stuff
1312 2005-09-07 Vladimir Krasnov <vladimirk@mainsoft.com>
1314 * Bitmap.jvm.cs: fixed bitamp accessors
1315 * Image.jvm.cs: fixed image accessors
1317 2005-09-07 Konstantin Triger <kostat@mainsoft.com>
1318 * AdvancedStroke.jvm.cs: fix matrix translate
1319 * Graphics.jvm.cs: fix matrix concatenation order
1321 2005-09-07 Vladimir Krasnov <vladimirk@mainsoft.com>
1323 * Brush.jvm.cs: added transform methods
1325 2005-09-06 Konstantin Triger <kostat@mainsoft.com>
1327 * StrokeFactory.jvm.cs, AdvancedStroke.jvm.cs, Pen.jvm.cs:
1328 implementing fitting, output transform
1329 * Graphics.jvm.cs: fixing DrawXXX, Fill, Clipping, Containers
1331 2005-09-06 Konstantin Triger <kostat@mainsoft.com>
1333 * ColorTranslator.cs: perform case insensitive check
1335 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
1337 * gdipFunctions.cs: define new functions
1338 * Bitmap.cs: fixes image loading and exceptions
1339 * Image.cs: fixes image loading and exceptions
1341 Thanks Kornél Pál for its help
1343 2005-08-30 Vladimir Krasnov <vladimirk@mainsoft.com>
1345 * Brush.jvm.cs: added brush transform field
1347 2005-08-28 Vladimir Krasnov <vladimirk@mainsoft.com>
1349 * Graphics.jvm.cs: fixed .ctor (InterpolationMode)
1351 2005-08-28 Konstantin Triger <kostat@mainsoft.com>
1353 * StrokeFactory.jvm.cs, AdvancedStroke.jvm.cs, Pen.jvm.cs
1354 Graphics.jvm.cs: adjust stroke before widening
1356 2005-08-28 Vladimir Krasnov <vladimirk@mainsoft.com>
1358 * Graphics.jvm.cs: Implemented BeginContainer, EndContainer,
1361 2005-08-26 Gert Driesen <drieseng@users.sourceforge.net>
1363 * PointConverter.cs: Use Int32Converter instead of Int32.Parse. First
1364 convert string to int before checking number of components.
1365 * RectangleConverter.cs: same.
1366 * SizeConverter.cs: same.
1368 2005-08-26 Gert Driesen <drieseng@users.sourceforge.net>
1370 * ColorConverter.cs: Use Int32Converter instead of Int32.Parse to
1371 convert individual components. Special case string containing hex
1372 prefix. Convert components before checking count.
1374 2005-08-25 Marek Safar <marek.safar@seznam.cz>
1376 * gdipFunctions.cs: GetIconInfo new user32 method.
1377 GdipGetDC uses IntPtr.
1379 * gdipStructs.cs: Defined IconInfo struct.
1381 * Graphics.cs: FromImage throws exception when image has an indexed format.
1384 * Icon.cs: Implemented FromHandle, Dispose.
1386 2005-05-24 Michael Hutchinson <m.j.hutchinson@gmail.com>
1388 * ToolboxBitmapAttribute.cs: Implemented retrieving the image
1390 2005-08-23 Vladimir Krasnov <vladimirk@mainsoft.com>
1392 * Graphics.jvm.cs: Fixed ResetTransform, TransfromPoints
1393 Fixed SmoothingMode property
1395 2005-08-23 Jordi Mas i Hernandez <jordi@ximian.com>
1397 * Brushes: Do not create the objects every time that they are requested
1398 as in Pens we create and cache them only once when need it. This also
1399 fixes the Equals method between two objects requested to Brushes
1401 2005-08-22 Jordi Mas i Hernandez <jordi@ximian.com>
1403 * SolidBrush.cs: Fixes Dispose to avoid non-disposing some objects
1404 * Brush.cs Fixes Dispose to avoid non-disposing some objects
1405 * Pen.cs: Fixes Dispose to avoid non-disposing some objects
1406 * Region.cs: Dipose always frees if the resource was allocated
1408 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
1410 * gdipFunctions.cs: Before calling GdiplusShutdown we make that all of handles
1411 from gdiplus have been released
1413 2005-08-18 Vladimir Krasnov <vladimirk@mainsoft.com>
1415 * Pen.jvm.cs: Fixed DashSpacing in createStrokedShape
1416 * Color.cs: Fixed java NativeObject property
1417 * Image.jvm.cs: Fixed Save method
1419 2005-08-16 Andrew Skiba <andrews@mainsoft.com>
1421 * Icon.jvm.cs: match Bitmap internal constructor change
1422 * Image.jvm.cs: use ImageCodecInfo.Clsid as primary format id, not ImageFormat
1423 * Bitmap.jvm.cs: started changes for supporting ImageCodecInfo
1425 2005-08-16 Gert Driesen <drieseng@users.sourceforge.net>
1427 * Color.cs: To match MS.NET, throw ArgumentException instead of
1428 ArgumentOutOfRangeException when color is not between 0 and 255.
1429 * RectangleConverter.cs: Take culture into account when converting
1430 to/from string. Use culture's ListSeparator as separator character.
1432 2005-08-16 Gert Driesen <drieseng@users.sourceforge.net>
1434 * Color.cs: Fixed line endings. Set eol-style to native.
1435 * ColorConverter.cs: Fixed line endings. Set eol-style to native.
1436 * Size.cs: Set eol-style to native.
1437 * SizeF.cs: Use current culture in ToString(), set eol-style to native.
1438 * SizeConverter.cs: Take culture into account when converting to/from
1439 string. Set eol-style to native.
1440 * Point.cs: Fixed line endings. Set eol-style to native.
1441 * PointF.cs: Use current culture in ToString(), set eol-style to native.
1442 * PointConverter.cs: Take culture into account when converting to/from
1443 string. Set eol-style to native.
1444 * ImageFormatConverter.cs: Fixed line endings. Set eol-style to
1446 * RectangleConverter.cs: Fixed line endings. Set eol-style to native.
1448 2005-08-16 Vladimir Krasnov <vladimirk@mainsoft.com>
1450 * Graphics.jvm.cs: Fixed InterpolationMode property
1452 2005-08-15 Vladimir Krasnov <vladimirk@mainsoft.com>
1454 * Graphics.jvm.cs: Fixed DrawImage
1456 2005-08-14 Gert Driesen <drieseng@users.sourceforge.net>
1458 * ColorConverter.cs: Use TextInfo.ListSeparator as separator, as this
1459 appears to be what MS.NET uses.
1461 2005-08-14 Gert Driesen <drieseng@users.sourceforge.net>
1463 * Point.cs: Use invariant culture for converting numbers to string.
1467 2005-08-14 Gert Driesen <drieseng@users.sourceforge.net>
1469 * Color.cs: Fixed ToString for uninitialized color.
1470 * ColorConverter.cs: Support conversion from whitespace-only string to
1471 Color.Empty. Fixed conversion from Color.Empty and known colors to
1474 2005-08-14 Konstantin Triger <kostat@mainsoft.com>
1476 * Graphics.jvm.cs: Initial properties implementation
1478 2005-08-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1480 * Graphics.jvm.cs: DrawImage refactoring
1482 2005-08-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1484 * Graphics.jvm.cs: Implemented PageUnit, PageScale.
1485 Added UpdateInternalTransform
1486 Fixed DrawImage, Transform, ConcatenateTransform
1488 2005-08-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1490 * Icon.jvm.cs: Internal constructor from bitmap
1491 * Added SystemIcons.jvm.cs with implementation of SystemIcons
1493 2005-08-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1495 * Region.jvm.cs: Fixed GetBounds, IsVisible, IsEmpty, IsInfinite, Equals
1496 (all methods that use Graphics object)
1498 2005-08-11 Konstantin Triger <kostat@mainsoft.com>
1500 * Graphics.jvm.cs: Refactoring
1502 2005-08-11 Konstantin Triger <kostat@mainsoft.com>
1504 * Graphics.jvm.cs: Fixed Clear, Refactoring
1506 2005-08-11 Konstantin Triger <kostat@mainsoft.com>
1508 * Graphics.jvm.cs: Fixed FillClosedCurve
1510 2005-08-10 Zoltan Varga <vargaz@freemail.hu>
1512 * Rectangle.cs (Intersect): Return a non-empty rectangle if the two
1513 rectangles touch each other.
1515 2005-08-09 Konstantin Triger <kostat@mainsoft.com>
1517 * Graphics.jvm.cs: Fixed DrawCurve.
1519 2005-08-09 Konstantin Triger <kostat@mainsoft.com>
1521 * StrokeFactory.jvm.cs: use correct stroke
1523 2005-08-09 Konstantin Triger <kostat@mainsoft.com>
1525 * Added AdvancedStoke.jvm.cs and StrokeFactory.jvm.cs
1528 2005-08-09 Andrew Skiba <andrews@mainsoft.com>
1530 * FontConverter.cs: exclude not implemented destructor from TARGET_JVM
1532 2005-08-09 Andrew Skiba <andrews@mainsoft.com>
1534 * ColorConverter.cs, ColorTranslator.cs: fixes to pass tests
1537 2005-08-08 Konstantin Triger <kostat@mainsoft.com>
1539 * Graphics.jvm.cs: Refactoring
1541 2005-08-08 Vladimir Krasnov <vladimirk@mainsoft.com>
1543 * Graphics.jvm.cs: Fixed DrawPolygon
1545 2005-08-08 Konstantin Triger <kostat@mainsoft.com>
1547 * Graphics.jvm.cs: Refactoring
1548 * Pen.jvm.cs: setting awt.Stroke as a base
1550 2005-08-07 Konstantin Triger <kostat@mainsoft.com>
1552 * Graphics.jvm.cs: Refactoring
1554 2005-08-07 Vladimir Krasnov <vladimirk@mainsoft.com>
1556 * Graphics.jvm.cs: Fixed DrawLines, DrawPolygon to use GraphicsPath
1558 2005-08-07 Andrew Skiba <andrews@mainsoft.com>
1560 * Rectangle.cs: Intersect fixed
1561 * RectandleF.cs: Intersect and Inflate fixed
1563 2005-08-07 Andrew Skiba <andrews@mainsoft.com>
1565 * Point.cs: Produce same ToString result as dotnet
1567 2005-08-07 Andrew Skiba <andrews@mainsoft.com>
1569 * Color.cs: GetHashCode is affected by Name, too
1571 2005-08-07 Vladimir Krasnov <vladimirk@mainsoft.com>
1573 * Pen.jvm.cs: Fixed ctor, LineCap, SetLineCap
1575 2005-08-07 Vladimir Krasnov <vladimirk@mainsoft.com>
1577 * Graphics.jvm.cs: Fixed DrawLines, DrawPolygon
1579 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1581 * SolidBrush.jvm.cs: fix a typo
1583 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1585 * Image.jvm.cs, StringFormat.jvm.cs, FontFamily.jvm.cs, Bitmap.jvm.cs,
1586 Pen.jvm.cs, Region.jvm.cs, Brush.jvm.cs, Graphics.jvm.cs, TextureBrush.jvm.cs,
1587 Font.jvm.cs: Added TARGET_JVM implementation
1589 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1591 * Rectangle.cs, RectangleF.cs: TARGET_JVM - Add NativeObect property
1593 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1595 * BasicShape.jvm.cs: Added TARGET_JVM specific class
1597 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1599 * Icon.jvm.cs, SystemColors.jvm.cs: Added TARGET_JVM implementations
1601 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1603 * ColorTranslator.cs: (GH merge) recognise HTML system colors
1605 2005-08-02 Andrew Skiba <andrews@mainsoft.com>
1607 * SolidBrush.jvm.cs: added TARGET_JVM implementation of this class
1609 2005-08-02 Andrew Skiba <andrews@mainsoft.com>
1611 * Color.cs: TARGET_JVM - NativeObject property
1613 2005-07-27 Andrew Skiba <andrews@mainsoft.com>
1615 * Color.cs: Fixes equality operators, change isXXXcolor booleans into flags enum.
1617 2005-07-27 Jordi Mas i Hernandez <jordi@ximian.com>
1619 * RectangleF.cs: Fixes IsEmpty logic
1621 2005-06-23 Jordi Mas i Hernandez <jordi@ximian.com>
1623 * Graphics.cs: implements FromHwndInternal
1626 2005-06-13 Peter Bartok <pbartok@novell.com>
1628 * Icon.cs(ToBitmap): If the icon is not 32bits, create the bitmap
1629 through an intermediary step, which turns it into a 32bit version.
1632 2005-06-13 Kornél Pál <kornelpal@hotmail.com>
1634 * ComIStreamMarshaler.cs: Dispose releases managed objects as well,
1635 removed some unnecessary code
1636 * ComIStreamWrapper.cs: Reworked Seek method to proper support of
1637 positions beyond the size of stream
1639 2005-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1641 * Font.cs: fix platform checks.
1643 2005-06-08 Jordi Mas i Hernandez <jordi@ximian.com>
1646 - Fixes is empty method IsEmpty logic
1647 - Fixes Contains method logic
1648 - Fixes IntersectsWith logic
1651 - Fixes is empty method IsEmpty logic
1652 - Fixes Contains method logic
1653 - Fixes IntersectsWith logic
1655 2005-05-28 Kornél Pál <kornelpal@hotmail.com>
1657 * ComIStreamMarshaler.cs: GC.SuppressFinalize(this) is not called in
1658 destructors. Some methods renamed. Removed unnecessary variables.
1660 2005-05-25 Jonathan Gilbert <logic@deltaq.org>
1662 * Image.cs: Added retrieveGDIPalette () and storeGDIPalette ()
1663 and modified the Palette property to call them. This non-
1664 persistent behaviour was discovered by trial and error with
1665 Microsoft's implementation. In fact, the Palette property
1666 does not behave like a property at all! It is the only way an
1667 instance of System.Drawing.Imaging.ColorPalette can be created,
1668 and it reflects a backing store that is only updated when the
1669 property 'set' method is called. Also updated Clone () since
1670 the palette is no longer cached at image load time.
1671 * Image.cs: Added IsIndexedPixelFormat () in the same vein as
1672 Image::IsAlphaPixelFormat and Image::IsCanonicalPixelFormat.
1673 As such a function is not listed in MSDN nor given in
1674 Microsoft's implementation, I have made it a private function
1675 within the class that uses it.
1677 2005-05-24 Kornél Pál <kornelpal@hotmail.com>
1679 * Graphics.cs: Revised DrawString methods
1681 2005-03-22 Peter Bartok <pbartok@novell.com>
1683 * Graphics.cs: Fixed bug #74762, DrawString was crashing on s.Length
1686 2005-05-20 Kornél Pál <kornelpal@hotmail.com>
1688 * Image.cs: Uses MemoryStream wrapping on all platforms if needed
1689 * gdipFunctions.cs: Modified conditional compilation syntax
1690 * ComIStreamWrapper.cs: Modified conditional compilation syntax
1691 * ComIStreamMarshaler.cs: Modified conditional compilation syntax
1693 2005-05-18 Marek Safar <marek.safar@seznam.cz>
1695 * Bitmap.cs: Add null check into ctor.
1697 2005-05-16 Jordi Mas i Hernandez <jordi@ximian.com> <kornelpal@hotmail.com>
1699 * gdipFunctions.cs: Kornél Pál's IStream bug fixing
1700 * ComIStreamWrapper.cs: Kornél Pál's IStream bug fixing
1701 * ComIStreamMarshaler.cs: Kornél Pál's IStream bug fixing
1703 2005-05-14 Jordi Mas i Hernandez <jordi@ximian.com> <kornelpal@hotmail.com>
1705 * Bitmap.cs: Kornél Pál's Bitmap class ctor and MakeTransparent leak fixes
1707 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
1709 * gdipFunctions.cs: add GdipLoadImageFromStream and GdipSaveImageToStream
1710 * ComIStreamWrapper.cs: Kornel Pal COM Stream for Win32
1711 * ComIStreamMarshaler.cs: Kornel Pal COM Stream for Win32
1712 * Image.cs: uses new Win32 Stream functions when need it
1714 2005-05-10 Juraj Skripsky <juraj@hotfeet.ch>
1716 * Color.cs: Fix GetSaturation() again and remove
1719 2005-05-10 Juraj Skripsky <juraj@hotfeet.ch>
1721 * Color.cs: New, correct implementations for GetHue(),
1722 GetBrightness() and GetSaturation().
1724 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
1726 * gdipFunctions.cs: Use PlatformID.Unix under NET_2_0.
1727 * Graphics.cs: Use PlatformID.Unix under NET_2_0.
1728 * Image.cs: Use PlatformID.Unix under NET_2_0.
1730 2005-05-05 Miguel de Icaza <miguel@novell.com>
1732 * Bitmap.cs, Icon.cs (constructor): Use
1733 GetManifestResourceStream(Type,string) in the constructor that
1736 2005-04-27 Lluis Sanchez Gual <lluis@novell.com>
1738 * PointF.cs: Make serialization compatible with MS.
1740 2005-04-10 Geoff Norton <gnorton@customerdna.com>
1744 Use CGContextSynchronize instead of CGContextFlush. This saves
1745 on average 20000 ticks per drawing operation.
1747 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
1749 * Color.cs: take into account the name color in == and != operators
1750 * Font.cs: Use Equals instead of == to compare the family name
1752 - Removes generic fontfamilies cache (done at libgdiplus level)
1753 - Fixes Equals method
1755 2005-03-30 Jordi Mas i Hernandez <jordi@ximian.com>
1757 * Pen.cs: remove locks. They are done at gdiplus level
1758 * Brush.cs: remove locks. They are done at gdiplus level
1759 * Image.cs: remove locks. They are done at gdiplus level
1761 2005-03-30 Rogério Pereira Araújo <rogerio.araujo@gmail.com>
1763 * Icon.cs: Finished Icon(Type, String) ctor
1765 2005-03-23 Jordi Mas i Hernandez <jordi@ximian.com>
1767 * gdipFunctions.cs: fixes GdipGetImagePalette signature
1768 * Image.cs: Implements Palette property using gdiplus
1770 2005-03-17 Peter Bartok <pbartok@novell.com>
1773 - Changed P/Invoke signature for GdipLoadImageFromDelegate_linux()
1774 method, now includes a get header delegate
1775 - Added StreamGetHeaderImpl method, to allow libgdiplus to determine
1776 the image type even on non-seekable streams
1777 - Fixed StreamGetBytesImpl to consider the bytes already retrieved
1778 via StreamGetHeaderImpl
1779 * Image.cs: Fixed call to GdipLoadImageFromDelegate_linux() to include
1780 the new StreamGetHeader delegate
1782 2005-03-15 Jordi Mas i Hernandez <jordi@ximian.com>
1784 * Pen.cs: Fixes dispose method to allow to be called multiple times
1785 * Graphics.cs: matrix are saved and restored at gdiplus level
1787 2005-02-24 Geoff Norton <gnorton@customerdna.com>
1789 * gdipFunctions.cs: Cache the delegates in the GdiPlusStreamHelper
1790 so they dont get garbage collected before use.
1792 2005-02-11 Peter Bartok <pbartok@novell.com>
1794 * gdipFunctions.cs: Fixed prototype to match previous checkin
1796 2005-02-11 Peter Bartok <pbartok@novell.com>
1798 * Graphics.cs (FromImage): Fixed type of graphics to be IntPtr (since
1799 it really is a pointer)
1801 2005-02-10 Geoff Norton <gnorton@customerdna.com>
1803 * Icon.cs: Implement GetObjectData ()
1804 * Image.cs: Implement GetObjectData ()
1806 2005-02-09 Geoff Norton <gnorton@customerdna.com>
1808 * Icon.cs: Implement deserializer
1809 * Bitmap.cs: Implement deserializer
1811 2005-02-06 Ben Maurer <bmaurer@ximian.com>
1813 * Brushes.cs: Kill the static ctor here, it has tons of code bloat.
1815 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
1817 * Region.cs: revert Jackson's patch and fix this at libgdiplus level
1819 2005-02-02 Jackson Harper <jackson@ximian.com>
1821 * Region.cs: The default region constructor creates and infinite
1822 region, not an empty one.
1824 2005-01-27 Peter Bartok <pbartok@novell.com>
1826 * Color.cs (GetBrightness, GetSaturation, GetHue): Fixed calculations
1827 of HSV numbers. Previous implementation returned wrong numbers and NaN
1828 on achromatic colors
1830 2005-01-27 Lluis Sanchez Gual <lluis@novell.com>
1832 * PointConverter.cs, ImageFormatConverter.cs, RectangleConverter.cs,
1833 SizeConverter.cs, ColorConverter.cs, FontConverter.cs
1834 : Implemented support for InstanceDescriptor.
1836 2005-01-26 Peter Bartok <pbartok@novell.com>
1838 * Icon.cs (ToBitmap): Now sets transparency in according to
1841 2004-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
1843 * gdipFunctions.cs: Fixes GdipGet* function signatures
1844 * FontFamily.cs: Fixes GdipGet* function calls
1845 * Font.cs: Fixes ToString method
1847 2004-01-17 Jordi Mas i Hernandez <jordi@ximian.com>
1849 * Graphics.cs: calls XCloseDisplay on X11 when need it
1850 * gdipFunctions.cs: calls XCloseDisplay on X11 when need it
1852 2004-12-27 Zoltan Varga <vargaz@freemail.hu>
1854 * gdipFunctions.cs Image.cs: Fix marshalling of arrays on amd64.
1856 2004-12-16 Peter Bartok <pbartok@novell.com>
1858 * Graphics.cs (GetHdc): Removed Wine assumptions, the handle is now
1859 equivalent to the gdi+ native object
1861 * Font.cs (GetHfont): Removed Wine assumptions, the handle is now
1862 equivalent to the gdi+ native object
1864 2004-12-09 Geoff Norton <gnorton@customerdna.com>
1866 * carbonFunctions.cs: New carbon functions/structures
1867 * Graphics.cs: Update FromHwnd to work without being in the carbon eventing loop
1869 2004-12-08 Geoff Norton <gnorton@customerdna.com>
1871 * Graphics.cs: Drop FromHwndWithSize; we can't change the public API
1872 Add Quartz support to FromHwnd marshalling a struct back with the ptr/width/height.
1874 2004-12-07 Geoff Norton <gnorton@customerdna.com>
1876 * Graphics.cs: Add FromHwndWithSize for the MWF/Quartz backend
1877 * gdipFunctions.cs: Add the quartz dllimport into libgdiplus
1879 2004-12-06 Miguel de Icaza <miguel@ximian.com>
1881 * FontFamily.cs: This one is static.
1883 2004-11-25 Ravindra <rkumar@novell.com>
1885 * gdipFunctions.cs (GdipCreateFontFromLogfontA): Changed return
1886 type from int to Status type.
1888 2004-11-25 Marek Safar <marek.safar@seznam.cz>
1890 * Image.cs: Add CheckStatus to SaveAdd.
1892 2004-11-22 Ravindra <rkumar@novell.com>
1894 * Graphics.cs: Fixed null values handling in all overloads of
1895 MeasureString method.
1897 2004-11-18 Ravindra <rkumar@novell.com>
1899 * gdipFunctions.cs: Removed the .so extension from a DllImport
1902 2004-10-27 Jordi Mas i Hernandez <jordi@ximian.com>
1904 * gdipFunctions.cs: calls GdiplusShutdown to propery signal GDI+
1907 2004-11-03 Miguel de Icaza <miguel@ximian.com>
1909 * TextureBrush.cs (Clone): While cloning, it is not enough to let
1910 GDIPlus clone the underlying data, we must alos clone the managed
1913 * Pen.cs (Dispose): Set the nativeObject to IntPtr.Zero to catch
1914 errors in the future, set the lock on the object before doing any
1915 other tests, not after.
1917 (Clone): While cloning, it is not enough to let
1918 GDIPlus clone the underlying data, we must alos clone the managed
1921 * Brush.cs (Dispose): Set the nativeObject to IntPtr.Zero to catch
1922 errors in the future.
1924 Set the lock in the object before checkign disposed.
1926 * SolidBrush.cs (Clone): While cloning, it is not enough to let
1927 GDIPlus clone the underlying data, we must alos clone the managed
1930 (Dispose): Set the nativeObject to IntPtr.Zero to catch
1931 errors in the future.
1933 2004-10-28 Ravindra <rkumar@novell.com>
1935 * gdipFunctions.cs: Added checks for null stream in the
1936 StreamHelper internal class.
1937 * Icon.cs: Removed an ugly hack that used temp files in
1938 ToBitmap () method. We use MemoryStream instead.
1940 2004-10-27 Jordi Mas i Hernandez <jordi@ximian.com>
1942 * Font.cs: fixes bug 66533
1944 2004-10-22 Jordi Mas i Hernandez <jordi@ximian.com>
1946 * Bitmap.cs, Font.cs FontFamily.cs Graphics.cs Region.cs
1947 SolidBrush.cs StringFormat.cs TextureBrush.cs: removes the
1948 lock operations after conversation with Miguel. Do not really
1951 2004-10-22 Jordi Mas i Hernandez <jordi@ximian.com>
1953 * Bitmap.cs: Fixes MakeTransparent problem with 24bbps
1955 2004-10-19 Jordi Mas i Hernandez <jordi@ximian.com>
1957 * Bitmap.cs: Fixes MakeTransparent method
1959 2004-10-13 Ravindra <rkumar@novell.com>
1961 * Graphics.cs: Moved the initialization of 'use_x_drawable'
1962 member out of private constructor to class initialization.
1963 So that, we get it right even if Graphics is not instantiated.
1964 This fixes the problem we face (otherwise) when we make first
1965 call to Graphics.FromHwnd () method.
1967 2004-10-08 Ravindra <rkumar@novell.com>
1969 * Image.cs: Suppress finalization in Dispose () method.
1971 2004-10-04 Ravindra <rkumar@novell.com>
1973 * gdipFunctioncs.cs: Fix from Alois for bug #67383.
1975 2004-09-29 Jackson Harper <jackson@ximian.com>
1977 * Graphics.cs: Use FromHdcInternal to set the X display
1978 handle. Add a flag to check if we are on unix so we aren't calling
1979 Environment.OSVersion.Platform all the time. Mad props to Peter
1982 2004-09-17 Marek Safar <marek.safar@seznam.cz>
1984 * Font.cs (FromHfont, ToHfont): Fixed windows implementation.
1985 ToLogFont: Implemented.
1987 * gdipFunctions.cs: GdipCreateFromHDC changed int to IntPtr to
1989 GdipCreateFontFromLogfontA: A new extern call.
1991 2004-09-13 Ravindra <rkumar@novell.com>
1993 * Graphics.cs: MSDN says that using image width and height gives
1994 better performance, hence we are using image width and height to
1995 avoid autoscaling in DrawImageUnscaled.
1997 2004-09-10 Ravindra <rkumar@novell.com>
1999 * Graphics.cs: Implemented DrawIcon methods and fixed
2000 DrawImageUnscaled method implementation.
2002 2004-08-21 Jackson Harper <jackson@ximian.com>
2004 * ImageAnimator.cs: Run animator as a background thread so we do
2007 2004-08-21 Ravindra <rkumar@novell.com>
2009 * gdipFunctions.cs: Modified exception message to include the case
2010 of missing required libraries for different formats.
2012 2004-08-10 Jackson Harper <jackson@ximian.com>
2014 * SystemColors.cs: Make Highlight colour match colour from windows
2015 classic color scheme.
2017 2004-07-30 Ravindra <rkumar@novell.com>
2019 * Font.cs: Fixed Height property implementation and implemented
2020 GetHeight method and its overloads.
2022 2004-07-29 Sanjay Gupta <gsanjay@novell.com>
2024 * gdipFunctions.cs: Corrected signature of GdipGetPropertyItem
2025 P/Invoke function for Image.
2026 * Image.cs: Implemented GetPropertyItem() and SetPropertyItem() method.
2028 2004-07-29 Sanjay Gupta <gsanjay@novell.com>
2030 * gdipFunctions.cs: Corrected signatures of GdipGetPropertySize and
2031 GdipGetAllPropertyItems P/Invoke function for Image.
2032 * gdipStructs.cs: Corrected MarshalTo() method of GdipPropertyItem.
2033 * Image.cs: Corrected implementation of PropertyItems property.
2035 2004-07-29 Sanjay Gupta <gsanjay@novell.com>
2037 * gdipFunctions.cs: Corrected signature of GdipGetPropertyIdList
2038 P/Invoke function for Image.
2039 * Image.cs: Changed implementation of PropertyIdList property.
2041 2004-07-28 Sanjay Gupta <gsanjay@novell.com>
2043 * gdipStructs.cs: Implementing PropertyItem property in Image.cs.
2044 * Image.cs: Implemented PropertyItems and PropertyIdList properties.
2046 2004-07-21 Ravindra <rkumar@novell.com>
2048 * gdipFunctions.cs: Corrected signatures of GdipPathIterCopyData and
2049 GdipPathIterEnumerate P/Invoke functions for GraphicsPathIterator.
2051 2004-07-21 Jordi Mas i Hernandez <jordi@ximian.com>
2053 * Graphics.cs: fixes MeasureCharacterRanges function. It was completely wrong.
2054 * StringFormat.cs: MeasurableCharacterRanges should be passed to GDI+
2055 * gdipFunctions.cs: new GDI function calls
2057 2004-07-16 Ravindra <rkumar@novell.com>
2059 * gdipFunctions.cs: Added P/Invokes for GraphicsPathIterator.
2061 2004-07-15 Ravindra <rkumar@novell.com>
2063 * gdipFunctions.cs: Removed GdipGetPathData P/Invoke. It is redundant.
2065 2004-07-13 Ravindra <rkumar@novell.com>
2067 * gdipFunctions.cs: Removed GdipGetPathGradientRectI P/Invoke.
2068 This was redundant. It was kept in previous checkin to avoid
2071 2004-07-13 Ravindra <rkumar@novell.com>
2073 * gdipFunctions.cs: Added some P/Invokes for PathGradientBrush.
2075 2004-07-09 Peter Bartok <pbartok@novell.com>
2076 * Graphics.cs: Added support required for new managed SWF library
2077 * gdipFunctions.cs: Added XOpenDisplay definition/import
2079 2004-07-02 Jordi Mas i Hernandez <jordi@ximian.com>
2081 * gdipFunctions.cs: fixes bug 61050
2083 2004-06-24 Sanjay Gupta <gsanjay@novell.com>
2085 * ImageAnimator.cs: Rewrote complete implementation.
2087 2004-06-24 Sanjay Gupta <gsanjay@novell.com>
2089 * gdipFunctions.cs: Corrected issue in GdiPlusStreamHelper class.
2090 If read function was called after seek function call, the
2091 implementation was returning data from bytes already peeked and
2092 not from the new position in stream, which we have seeked.
2094 2004-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
2096 * Graphics.cs: added MeasureString wrappers
2098 2004-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
2100 * Graphics.cs, gdipFunctions.cs: define and use GdipSetVisibleClip_linux
2102 2004-06-20 Jordi Mas i Hernandez <jordi@ximian.com>
2104 * Graphics.cs, gdipFunctions.cs: added missing clip function wrappers
2106 2004-06-18 Ravindra <rkumar@novell.com>
2108 * FontConverter.cs: Implemented the missing functions.
2109 * Font.cs: Added some notes.
2111 2004-06-16 Sanjay Gupta <gsanjay@novell.com>
2113 * gdipFunctions.cs: Modified Function signature for
2114 GdipSaveImageToDelegate_linux() method for saving tiff images
2116 * image.cs: Modified function call GdipSaveImageToDelegate_linux()
2119 2004-06-15 Sanjay Gupta <gsanjay@novell.com>
2121 * gdipFunctions.cs: Added delegate and StreamHelper functions, Close
2122 and Size, required by TIFFCodec. Modifed Function signature for
2123 GdipLoadImageFromDelegate_linux() method.
2124 * image.cs: Modified function call GdipLoadImageFromDelegate_linux()
2127 2004-06-11 Ravindra <rkumar@novell.com>
2129 * gdipFunctions.cs: (GdipCreateSolidFill): Changed one argument
2130 from out int to out IntPtr.
2131 * SolidBrush.cs: Same.
2133 2004-06-10 Gert Driesen <drieseng@users.sourceforge.net>
2135 * Image.cs: API signature fixes, meaning DisposeResources is now
2136 private and marked InitFromStream internal
2138 2004-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
2140 * FontFamily.cs: simplifies object destruction and fixes
2142 2004-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
2144 * FontFamily.cs: added destructor
2145 * Graphics.cs: added destructor to stop leaking, remove debugging code
2148 2004-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
2150 * gdipFunctions.cs: added GdipSaveAddImage
2151 * Image.cs: added SaveAdd methods
2153 2004-06-02 Peter Bartok <pbartok@novell.com>
2154 * gdipFunctions.cs: Fixed reference to wrong DLLs for GetDC/ReleaseDC
2155 (This fixes bug #59479)
2157 2004-06-01 Gert Driesen <drieseng@users.sourceforge.net>
2159 * Font.cs: Added missing Browsable attribute on SizeInPoints.
2160 * Region.cs: Removed extra ComVisible attribute from Clone().
2162 2004-06-01 Ravindra <rkumar@novell.com>
2164 * Pen.cs: Added a note on Dispose method.
2165 * Brush.cs: Fixed Dispose method.
2166 * SolidBrush.cs: Fixed Dispose method.
2168 2004-05-28 Ravindra <rkumar@novell.com>
2170 * gdipFunctions.cs: Added some P/Invoke calls for Draw/Fill
2172 * Graphics.cs: Implemented Dispose method and changed Draw/Fill
2173 rectangles implementation (This is basically done to avoid lots
2174 of brush and pen setup happening in libgdiplus.)
2176 2004-05-27 Ravindra <rkumar@novell.com>
2178 * Color.cs: Changed Color.Green to what MS.NET has. Conforming to MS.
2180 2004-05-26 Sanjay Gupta <gsanjay@novell.com>
2182 * ImageFormatConverter.cs: Fixed issues discovered from nunit
2185 2004-05-26 Ravindra <rkumar@novell.com>
2187 * Color.cs: Corrected Color.Green property.
2189 2004-05-24 Jordi Mas i Hernandez <jordi@ximian.com>
2190 * gdipStructs.cs: remove unnecessary code, since bug 57706 is fixed
2192 2004-05-20 Sanjay Gupta <gsanjay@novell.com>
2194 * Icon.cs: Fixed issue with size property.
2196 2004-05-18 Ravindra <rkumar@novell.com>
2198 * Pen.cs: Added value checks in DashPattern and CompoundArray
2201 2004-05-16 Gert Driesen <drieseng@users.sourceforge.net>
2203 * Graphics.cs: fixed warning
2204 * ImageAnimator.cs: fixed warning
2205 * FontConverter.cs: fixed public API
2207 2004-05-14 Vladimir Vukicevic <vladimir@pobox.com>
2209 * gdipFunctions.cs: Fixed prototype for
2210 GdipGetEncoderParameterList
2212 * Image.cs: Reworked Save functions to handle EncoderParameters.
2213 Implemented GetEncoderParameterList
2214 Also removed unused setGDIPalette internal method.
2216 2004-05-14 Peter Bartok <pbartok@novell.com>
2217 * StringFormat.cs: Added CharacterRange handling
2218 * Graphics.cs: Implemented MeasureCharacterRanges method
2220 2004-05-14 Peter Bartok <pbartok@novell.com>
2221 * Graphics.cs: Added error check
2223 2004-05-14 Duncan Mak <duncan@ximian.com>
2224 * gdipFunctions.cs (GdipCreatePath2I, GdipAddPathPieI):
2225 (GdipFlattenPath, GdipWarpPath, GdipWidenPath):
2226 (GdipGetPathWorldBounds, GdipGetPathWorldBoundsI): Imported.
2228 2004-05-14 Sanjay Gupta <gsanjay@novell.com>
2229 * ImageFormatConverter.cs: Modified implementation of ConvertFrom() method.
2231 2004-05-13 Sanjay Gupta <gsanjay@novell.com>
2232 * ImageFormatConverter.cs: Implemented GetStandardValuesSupported () method.
2234 2004-05-13 Peter Bartok <pbartok@novell.com>
2235 * Bitmap.cs: Fixed bug #52868, Bitmap(Image, Size) did not
2238 2004-05-12 Peter Bartok <pbartok@novell.com>
2239 * Image.cs: Implemented GetThumbnailImage
2241 2004-05-13 Sanjay Gupta <gsanjay@novell.com>
2242 * Graphics.cs: Made method DrawRectangle (Pen , RectangleF) and
2243 FromXDrawable(IntPtr, IntPtr) internal.
2245 2004-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
2246 * Color.cs: work for API compatibilty: private date, todos
2247 * Font.cs: work for API compatibilty: private date, todos
2248 * FontFamily.cs: work for API compatibilty: private date, todos
2249 * Graphics.cs: work for API compatibilty: private date, todos
2250 * Icon.cs: work for API compatibilty: private date, todos
2251 * Image.cs: work for API compatibilty: private date, todos
2252 * ImageAnimator.cs: work for API compatibilty: private date, todos
2253 * Point.cs: work for API compatibilty: private date, todos
2254 * PointF.cs: work for API compatibilty: private date, todos
2255 * Rectangle.cs: work for API compatibilty: private date, todos
2256 * RectangleF.cs: work for API compatibilty: private date, todos
2257 * Region.cs: work for API compatibilty: private date, todos
2258 * Size.cs: work for API compatibilty: private date, todos
2259 * SizeF.cs: work for API compatibilty: private date, todos
2260 * SolidBrush.cs: work for API compatibilty: private date, todos
2261 * StringFormat.cs: work for API compatibilty: private date, todos
2262 * SystemPens.cs: work for API compatibilty: private date, todos
2263 * TextureBrush.cs: work for API compatibilty: private date, todos
2264 * gdipStructs.cs: work for API compatibilty: private date, todos
2266 2004-05-12 Ravindra <rkumar@novell.com>
2268 * Bitmap.cs, Font.cs, FontConverter.cs, Graphics.cs, Icon.cs, Image.cs
2269 ImageAnimator.cs, Point.cs, PointF.cs, Rectangle.cs, RectangleF.cs
2270 Region.cs, Size.cs, SizeF.cs, ToolboxBitmapAttribute.cs, gdipFunctions.cs:
2271 Added missing attributes and some coding style fixes.
2272 * Pen.cs: Implementing CustomStartCap and CustomEndCap properties and
2275 2004-05-11 Sanjay Gupta <gsanjay@novell.com>
2277 * ImageAnimator.cs: Implemented first version.
2279 2004-05-11 Ravindra <rkumar@novell.com>
2281 * gdipFunctions.cs: Implementing AdjustableArrowCap. Added P/Invokes
2284 2004-05-10 Ravindra <rkumar@novell.com>
2286 * gdipFunctions.cs: Implementing CustomLineCap. Added P/Invokes
2287 for the same. Added few related P/Invokes for Pen also.
2289 2004-05-06 Sanjay Gupta <gsanjay@novell.com>
2291 * ImageAnimator.cs: Corrected implementation of CanAnimate() method.
2293 2004-05-06 Ravindra <rkumar@novell.com>
2295 * RectangleConverter.cs: Implemented GetProperties () method.
2296 * SizeConverter.cs: Implemented GetProperties () method.
2297 * PointConverter.cs: Implemented GetProperties () method.
2298 * FontConverter.cs: Implemented some of the methods.
2300 2004-05-06 Ravindra <rkumar@novell.com>
2302 * Color.cs: Fixed Name property.
2303 * ColorTranslator.cs: Fixed the existing methods and implemented
2304 the missing methods.
2305 * ColorConverter.cs: Fixed the existing methods and implemented
2306 the missing methods. Also, fixed coding style.
2308 2004-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
2309 * Bitmap.cs: Let GDI+ calculate the strides, as it does in Win32.
2311 2004-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
2312 * Image.cs: raw_format should be handled by GDI+
2313 * Bitmap.cs: raw_format should be handled by GDI+
2315 2004-05-04 Ravindra <rkumar@novell.com>
2317 * Pen.cs: Modified exception message. Fixed Transform, DashPattern,
2318 and DashCap properties. Implementing CoumpoundArray, StartCap, EndCap
2319 properties and SetLineCap method. In constructors use IntPtr instead
2321 * SolidBrush.cs: Modified exception message.
2322 * TextureBrush.cs: Fixed Transform property.
2323 * gdipFunctions.cs: Fixed P/Invokes for Pen.cs, TextureBrush.cs and
2324 LinearGradientBrush.cs.
2326 2004-04-30 Sanjay Gupta <gsanjay@novell.com>
2328 * Image.cs: Implemented FrameDimensionsList property.
2330 2004-04-30 Ravindra <rkumar@novell.com>
2332 * gdipFunctions.cs: Added few more P/Invoke calls for
2333 lineargradient brush and added one case statement in
2336 2004-04-30 Jordi Mas i Hernandez <jordi@ximian.com>
2338 * Image.cs: takes into account MemoryBmp format when saving
2340 2004-04-30 Ravindra <rkumar@novell.com>
2342 * StringFormat.cs: Added checks for status.
2344 2004-04-30 Sanjay Gupta <gsanjay@novell.com>
2346 * Image.cs: Removed calls which passes byte[] for Guid parameter.
2347 * gdipFunctions.cs: Removed unwanted unix specific function calls.
2349 2004-04-30 Ravindra <rkumar@novell.com>
2351 * Graphics.cs: Added checks for status.
2352 * Image.cs: Added a check for status.
2353 * FontFamily.cs: Added checks for status.
2355 2004-04-29 Peter Bartok <pbartok@novell.com>
2357 * Brushes.cs: Fixed bug #52695. No longer creates a new
2358 brush for every request and behaves Microsoft compatible
2360 2004-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
2362 * Image.cs: fixes Save method. It now retrieves the proper encoder and uses
2363 its ClsID instead of the formatID (as GDI+ expects)
2365 2004-04-29 Ravindra <rkumar@novell.com>
2367 * Font.cs: Added checks for status.
2368 * Bitmap.cs: Added checks for status.
2369 * Pen.cs: Added checks for status.
2371 2004-04-28 Sanjay Gupta <gsanjay@novell.com>
2373 * ColorTranslator.cs, StringFormat.cs, SystemIcons.cs, ToolBoxBitmapAttributes.cs:
2374 Converted to unix format from dos format.
2376 2004-04-28 Sanjay Gupta <gsanjay@novell.com>
2378 * ImageConverter.cs: Implemented GetProperties() and GetPropertiesSupported () methods.
2380 2004-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
2382 * gdipStructs.cs: added GdipImageCodecInfo struct
2384 2004-04-28 Sanjay Gupta <gsanjay@novell.com>
2386 * ImageFormatConverter.cs: Corrected ConvertFrom method.
2388 2004-04-27 Sanjay Gupta <gsanjay@novell.com>
2390 * ImageConverter.cs: Added exception message.
2391 * IconConverter.cs: Added exception message.
2392 * ImageFormatConverter.cs: Implemented first version.
2394 2004-04-27 Sanjay Gupta <gsanjay@novell.com>
2396 * ImageConverter.cs: Implemented first version.
2398 2004-04-27 Sanjay Gupta <gsanjay@novell.com>
2400 * IconConverter.cs: Implemented first version.
2402 2004-04-26 Sanjay Gupta <gsanjay@novell.com>
2404 * Image.cs: Corrected implementation of Property RawFormat.
2405 * gdipFunctions.cs: Corrected declaration of GdipGetImageRawFormat.
2407 2004-04-25 Sanjay Gupta <gsanjay@novell.com>
2409 * Bitmap.cs: Resolved a compile time error.
2410 * Image.cs: Changed the implementation of few methods to progress
2411 with ImageAnimator class.
2412 * gdipFunctions.cs: Added few linux only function calls.
2413 * Icon.cs: Removed unused variable from code.
2415 2004-04-25 Vladimir Vukicevic <vladimir@pobox.com>
2417 * Graphics.cs, gdipFunctions.cs: Added CreateFromXDrawable_linux.
2419 2004-04-23 Vladimir Vukicevic <vladimir@pobox.com>
2421 * Commited patch from pcgod@gmx.net (Bnehamin Jemlich) for
2422 serialization for Bitmaps. (Bugzilla #52568)
2424 2004-04-23 Ravindra <rkumar@novell.com>
2426 * RectangleConverter.cs: Fixed ConvertTo () method.
2427 * SizeConverter.cs: Fixed ConvertTo () method.
2428 * PointConverter.cs: Fixed ConvertTo () method.
2430 2004-04-23 Sanjay Gupta <gsanjay@novell.com>
2431 * ImageAnimator.cs: Implemented CanAnimate() method.
2433 2004-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
2434 * Image.cs: added RotateFlip and RemovePropertyItem calls
2436 2004-04-22 Ravindra <rkumar@novell.com>
2438 * RectangleConverter.cs: Implemented. Also changed file format
2440 * Rectangle.cs: Fixed ToString method.
2441 * RectangleF.cs: Fixed ToString method.
2443 2004-04-22 Ravindra <rkumar@novell.com>
2445 * SizeConverter.cs: Implemented some of the functions.
2446 * PointConveter.cs: Implemented.
2447 * gdipFunctions.cs: Corrected one typo.
2448 * Brushes.cs: Added a comment.
2450 2004-04-22 Vladimir Vukicevic <vladimir@pobox.com>
2452 * gdipFunctions.cs: Fix StreamGetBytesImpl to handle
2453 returning portions of the peek buffer back. Fixes #57379.
2455 2004-04-21 Peter Bartok <pbartok@novell.com>
2456 * Font.cs: Implemented Font.FromHfont method
2457 * gdipStructs.cs: fixed sign for LOGFONTA lfHeight member
2458 * gdipFunctions.cs: Added imports for functions required to support
2459 Font.FromHfont method
2461 2004-04-21 Jordi Mas i Hernandez <jordi@ximian.com>
2462 * RectangleConverter.cs: stubbed out
2463 * Font.cs : added missing members
2465 2004-04-19 Sanjay Gupta <gsanjay@novell.com>
2466 * Icon.cs: Fixed problem in extracting bitmap from Icon.
2468 2004-04-16 Ravindra <rkumar@novell.com>
2470 * Pen.cs: GC should be allowed to collect any pen including
2472 * SolidBrush.cs: GC should be allowed to collect any SolidBrush
2473 including system brushes.
2474 * Brushes.cs: Coding style.
2475 * Pens.cs: Objects created by Pens are not modifiable on
2476 MS.NET, so we are now. Also, coding style fixes.
2477 * SystemPens.cs: Removed static constructor and changed file
2479 * SystemBrushes.cs: Some cosmetic changes.
2481 2004-04-15 Sanjay Gupta <gsanjay@novell.com>
2482 * Icon.cs: Implemented more missing bits and fixed the problem
2483 of icon not getting saved in proper format
2485 2004-04-14 Sanjay Gupta <gsanjay@novell.com>
2486 * Icon.cs: Implemented more missing bits
2488 2004-04-13 Sanjay Gupta <gsanjay@novell.com>
2489 * Icon.cs: Implemented few more missing bits
2491 2004-04-12 Sanjay Gupta <gsanjay@novell.com>
2492 * Icon.cs: Implemented first version
2494 2004-04-11 Peter Bartok <pbartok@novell.com>
2495 * Font.cs: Implemented Font.ToHfont method; used Jordi's suggestion of splitting
2496 the code and using our own private gdiplus function when on Unix and using Win32
2497 functions when running on Windows
2498 * gdipStructs.cs: Added LOGFONTA structure
2499 * gdipFunctions.cs: Added various DllImports required for Font.ToHfont
2501 2004-04-10 Vladimir Vukicevic <vladimir@pobox.com>
2503 * Image.cs: Save should use encoder.FormatID, not Clsid
2505 2004-04-06 Jordi Mas i Hernandez <jordi@ximian.com>
2506 * Region.cs: fixes GdipCombineRegionRect and GdipCombineRegionRectI signature
2507 * gdipFunctions.cs: fixes GdipCombineRegionRect and GdipCombineRegionRectI signature
2509 2004-04-06 Duncan Mak <duncan@ximian.com>
2511 * gdipFunctions.cs (GdipCreatePath2): Fixed signature.
2513 2004-04-06 Jordi Mas i Hernandez <jordi@ximian.com>
2514 * Region.cs: fixes GetRegionScans
2515 * gdipFunctions.cs: fixes GetRegionScans
2517 2004-04-06 Vladimir Vukicevic <vladimir@pobox.com>
2519 * gdipFunctions.cs: Added stream delegate helpers for
2520 stream loading/saving on linux
2522 * Image.cs, Bitmap.cs: Converted to call into GDIPlus for
2523 loading/saving image data.
2525 2004-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
2526 * Region.cs: implemented new methods
2527 * Graphics.cs: implemented new methods
2529 2004-04-02 Jordi Mas i Hernandez <jordi@ximian.com>
2530 * Region.cs: implemented
2532 2004-04-01 Duncan Mak <duncan@ximian.com>
2534 * Graphics.cs (DrawCurve): Call the correct GDI+ wrappers.
2536 * gdipFunctions.cs (GdipAddPathCurveI):
2537 (GdipAddPathCurve2, GdipAddPathCurve2I):
2538 (GdipAddPathCurve3, GdipAddPathCurve3I):
2539 (GdipAddPathClosedCurve, GdipAddPathClosedCurveI):
2540 (GdipAddPathClosedCurve2, GdipAddPathClosedCurve2I): Added new
2543 2004-03-30 Jordi Mas i Hernandez <jordi@ximian.com>
2544 * Image.cs: implemented a few GDI+ wrapper calls
2546 2004-03-30 Jordi Mas i Hernandez <jordi@ximian.com>
2547 * Bitmap.cs: remove redundant data already present at Image.cs
2548 * Image.cs: use GDI+ functions to get image details
2549 * StringFormat.cs: missing constructor and property
2551 2004-03-24 Jordi Mas i Hernandez <jordi@ximian.com>
2552 * FontFamily.cs: added missing members and style clean
2553 * Graphics.cs: fixed signature of DrawArc and DrawPie
2554 * Image.cs: added missing members, fixes
2555 * StringFormat.cs: missing constructor and property
2557 2004-03-24 Jordi Mas i Hernandez <jordi@ximian.com>
2558 * Graphics.cs: Added missing DrawImage GDI+ calls
2559 * gdipFunctions.cs: Added missing DrawImage GDI+ calls
2561 2004-03-23 Ravindra <rkumar@novell.com>
2562 * gdipFunctions.cs: Added few more P/Invoke calls for
2563 LinearGradientBrush.
2565 2004-03-22 Ravindra <rkumar@novell.com>
2566 * gdipFunctions.cs: Added P/Invoke calls for LinearGradientBrush
2567 and did few coding style fixes.
2569 2004-03-18 Ravindra <rkumar@novell.com>
2570 * Brush.cs: Fixed Dispose method.
2571 * SolidBrush.cs: Fixed clone method.
2572 * TextureBrush.cs: Fixed clone method.
2573 * gdipFunctions.cs: Fixed P/Invokes for PathGradientBrush.
2575 2004-03-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2577 * SizeConverter.cs: fixd typo in ConvertFrom that made height be wrong.
2579 2004-03-10 Ravindra <rkumar@novell.com>
2580 * Pen.cs: Implemented PenType property.
2581 * Brush.cs: Coding style.
2583 2004-03-06 Ravindra <rkumar@novell.com>
2584 * gdipFunctions.cs: Added few more GDI+ P/Invoke calls
2585 for PathGradientBrush.
2587 2004-03-06 Ravindra <rkumar@novell.com>
2588 * gdipFunctions.cs: Added GDI+ P/Invoke calls for
2591 2004-03-04 Duncan Mak <duncan@ximian.com>
2593 * Region.cs: Indentation.
2595 * RectangleF.cs: Changed the internal structure from a PointF,
2596 SizeF to floats in order to match the layout from the C API.
2598 2004-03-04 Jordi Mas i Hernandez <jordi@ximian.com>
2599 * StringFormat.cs: DigitSubstitution and TabStob methods, coding-style
2601 2004-03-03 Sanjay Gupta <gsanjay@novell.com>
2602 * gdipFunctions.cs: Added functions for ImageAttributes
2604 2004-03-03 Sanjay Gupta <gsanjay@novell.com>
2605 * Icon.cs: Missing function stubs added
2606 * Icon.cs: Missing function stubs added
2607 * IconConverter.cs: Missing function stubs added
2608 * ImageAnimator.cs: Missing function stubs added
2609 * ImageConverter.cs: Missing function stubs added
2610 * ImageFormatConverter.cs: Missing function stubs added
2612 2004-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
2613 * Font.cs: Allow multiple styles
2615 2004-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
2616 * StringFormat.cs: Clone method
2618 2004-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
2619 * font.cs: fixes, Clone, and ToString
2621 2004-02-21 Jordi Mas i Hernandez <jordi@ximian.com>
2622 * gdipFunctions.cs: MeasureString
2623 * Graphics.cs : MeasureString
2625 2004-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
2626 * Font.cs: destructor and unit conversion
2627 * Graphics.cs : system dpi support
2629 2004-02-13 Ravindra <rkumar@novell.com>
2630 * Pen.cs: Fixed some bugs.
2631 * TextureBrush.cs: Fixed some bugs.
2633 2004-02-13 Sanjay Gupta <gsanjay@novell.com>
2634 * gdipFunctions.cs: Added ImageCodecInfo functions
2635 * Image.cs: Added few methods
2637 2004-02-13 Jordi Mas i Hernandez <jordi@ximian.com>
2638 * FontFamily.cs: remove hardcoded font names, a few bug fixes
2640 2004-02-12 Sanjay Gupta <gsanjay@novell.com>
2641 * gdipFunctions.cs: Added Image class functions
2642 * Image.cs: Added few methods
2644 2004-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
2645 * graphics.cs: fixes parameters for DrawStrings functions
2647 2004-02-07 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2649 * SRDescriptionAttribute.cs: Added and implemented
2650 * ToolboxBitmapAttribute.cs: Implemented a few members
2651 * SystemIcons.cs: Stubbed
2652 * StringFormat.cs: Implemented method
2653 * Region.cs: Added Todo, fixed attribute
2654 * Size.cs: Added attribute
2655 * SizeF.cs: Added attribute
2656 * RectangleF.cs: Added attributes
2657 * Rectangle.cs: Added attributes
2658 * PointF.cs: Added attribute
2659 * Point.cs: Added attribute
2661 2004-02-06 Ravindra <rkumar@novell.com>
2663 * Brush.cs: Renamed GetException method to CheckStatus
2664 and moved it to gdipFunctions.cs.
2665 * gdipFunctions.cs: Added CheckStatus method.
2666 * SolidBrush.cs: Using CheckStatus method.
2667 * TextureBrush.cs: Using CheckStatus method.
2668 * gdipEnums.cs: Added a missing value.
2670 2004-02-05 Ravindra <rkumar@novell.com>
2672 * Brush.cs: Added a missing namespace.
2674 2004-02-05 Ravindra <rkumar@novell.com>
2676 * gdipFunctions.cs: Added methods for HatchBrush and
2678 * SolidBrush.cs: Added checks for status.
2679 * Brush.cs: Added support for HatchBrush and TextureBrush
2680 types in internal CreateBrush() method.
2682 2004-02-03 Jordi Mas <jordi@ximian.com>
2683 * Font.cs: Setup font properties
2685 2004-02-03 Ravindra <rkumar@novell.com>
2687 * TextureBrush.cs and Brush.cs: Moved GetException (Status)
2688 method from TextureBrush.cs to Brush.cs.
2689 * Brush.cs: Made GetException (Status) method internal.
2691 2004-02-03 Sanjay Gupta <gsanjay@novell.com>
2693 * gdipFunctions.cs: Added methods for Image class.
2695 2004-01-30 Ravindra <rkumar@novell.com>
2697 * TextureBrush.cs: Added more methods to complete it.
2698 * gdipFunctions.cs: Added methods for TextureBrush class.
2700 2004-01-30 Ravindra <rkumar@novell.com>
2702 * gdipFunctions.cs: Added methods for TextureBrush class.
2704 2004-01-30 Ravindra <rkumar@novell.com>
2706 * Pen.cs: Modified to handle TextureBrush also.
2707 * Bitmap.cs: Added one internal constructor.
2708 * TextureBrush.cs: Implemented.
2710 2004-01-29 Duncan Mak <duncan@ximian.com>
2713 * Graphics.cs: Indentation fixes, removed long dangling lines and
2716 * Graphics.cs (IsVisible): Renamed variable to not use hungarian
2719 2004-01-29 Sanjay Gupta <gsanjay@novell.com>
2721 * FontFamily.cs: Implemented few methods and a constructor
2723 2004-01-28 Sanjay Gupta <gsanjay@novell.com>
2725 * gdipFunctions.cs: Added FontFamily and FontCollection functions.
2726 * FontFamily.cs: Implemented missing functionalities.
2728 2004-01-24 Duncan Mak <duncan@ximian.com>
2730 * Graphics.cs (DrawPath): Implemented.
2732 2004-01-23 Ravindra <rkumar@novell.com>
2734 * Point.cs: ToString modified.
2735 * PointF.cs: ToString modified.
2736 * Size.cs: ToString modified.
2737 * SizeF.cs: ToString modified. ToPoint and ToSize methods
2740 2004-01-21 Jordi Mas i Hernà ndez
2741 * Bitmap.cs: Several new methods added.
2743 2004-01-21 Duncan Mak <duncan@ximian.com>
2745 * gdipFunctions.cs (GdipGetPathTypes, GdipGetPathPoints): Add
2746 OutAttribute to the array argument. This fixes the PathPoints
2747 property in System.Drawing.Drawing2D.GraphicsPath.
2749 2004-01-20 Ravindra <rkumar@novell.com>
2751 * Pen.cs: Fixed bug #52811 in Pen.Transform property. Setting
2752 this property was hanging and getting was throwing a NullRef
2753 Exception. Earlier we were passing Matrix object to and fro
2754 which was causing the problem. Now, we are using IntPtr.
2755 Thanks to Duncan for helping me.
2756 Also, .NET behavior is to maintain Pen.Color and Pen.Brush
2757 together. If color is set, a SolidBrush automatically gets
2758 set with the same color, Pen loses the old brush object.
2759 If a SolidBrush is set, Pen.Color gets the value same as that
2760 of brush color losing the old value. Pen shows this behavior
2762 * gdipFunctions.cs: Changed the signature of GdipGetPenTransform
2763 and GdipSetPenTransform methods to use IntPtr instead of Matrix.
2765 2004-01-19 Duncan Mak <duncan@ximian.com>
2767 * gdipFunctions.cs: Import functions for GraphicsPath.
2769 2004-01-14 Ravindra <rkumar@novell.com>
2771 * SolidBrush.cs: Made SolidBrush to initialize its color
2774 * gdipFunctions.cs: Added call to GdipGetSolidFillColor GDI+ API.
2776 2004-01-11 Duncan Mak <duncan@ximian.com>
2778 * Bitmap.cs (LockBits):
2779 * Graphics.cs (DrawString): Removed reference to GpRectF.
2781 2004-01-09 Duncan Mak <duncan@ximian.com>
2783 * gdipStructs.cs (GpRectF, GpRect, GpPointF, GpPoint):
2784 Removed. Didn't know that structs are laid out sequentially by
2785 default. We don't need these anymore.
2787 2004-01-12 Ben Maurer <bmaurer@users.sourceforge.net>
2789 * Color.cs: Keep KnownColors in an array so that we avoid ht lookup.
2791 2004-01-11 Daniel Morgan <danielmorgan@verizon.net>
2793 * Graphics.cs: fix compile error on Windows builds for out
2794 parameter state in call to GdipSaveGraphics
2796 2004-01-10 Ravindra <rkumar@novell.com>
2798 * All Enums: Made serializable.
2800 * Image.cs: Corrected signature of Dispose(bool) method.
2802 * Pen.cs, SolidBrush.cs, SystemPens.cs, SystemBrushes.cs:
2803 Corrected coding style mistakes of my previous commit.
2805 * PointConverter.cs, RectangleConverter.cs: Inherit TypeConverter.
2807 * PointF.cs, RectangleF.cs, SizeF.cs: Made serializable.
2809 * StringFormat.cs: Inherits MarshalByRefObject.
2811 * ToolboxBitmapAttribute.cs: Added missing attribute [AttributeUsage].
2813 2004-01-08 Ravindra <rkumar@novell.com>
2815 * Pen.cs: Added isModifiable (bool) variable. It is required to
2816 make Pens created by SystemPens.cs unmodifiable. All property
2817 setters are modified for this.
2819 * SolidBrush.cs: Added isModifiable variable (bool). It is
2820 required to make Brushes created by SystemBrushes.cs unmodifiable.
2821 All property setters are modified for this.
2823 * SystemBrushes.cs: Modified all the properties as per the .NET
2824 specs, so that Brushes are not created every time. Also, missing
2825 properties are added.
2827 * SystemPens.cs: Modified all the properties as per the .NET
2828 specs, so that Brushes are not created every time. Also, missing
2829 properties are added.
2831 2003-12-12 Miguel de Icaza <miguel@ximian.com>
2833 * Rectangle.cs: Patch from Bryan Bulten, fixes Inflate and makes
2836 2004-01-06 Duncan Mak <duncan@ximian.com>
2838 * gdipFunctions.cs: Import GraphicsPath functions from GDI+.
2840 2003-12-21 Duncan Mak <duncan@ximian.com>
2842 * Graphics.cs (DrawArc): Fixed the method signature and hooked it
2843 up to the GDI+ implementation.
2844 (RotateTransform): Uncommented.
2846 * gdipFunctions.cs (DrawArc, DrawArcI): Import from
2849 2003-12-13 Todd Berman <tberman@sevenl.net>
2851 * Font.cs: Implementing a couple things for porting purposes
2852 * SystemBrushes.cs: ^
2853 * StringFormat.cs: ^^
2855 2003-11-28 Duncan Mak <duncan@ximian.com>
2857 * Pen.cs (CompoundArray): Hide this for now.
2859 2003-11-28 Duncan Mak <duncan@ximian.com>
2861 * Brush.cs (CreateBrush): new internal factory method for creating
2862 specific brushes based on the internal (GDI+ C API) BrushType
2864 (Brush (IntPtr)): new internal constructor.
2866 * Pen.cs: Removed all the C# fields. We are using GDI+ completely
2868 (Pen (IntPtr)): new internal constructor.
2869 (Pen (Brush, float)): Use GdipCreateBrush2.
2870 (Clone): Implemented using GdipClonePen.
2871 (Alignment, Brush, Color, Width): Use GDI+ implementations
2873 (CompoundArray, DashCap, DashOffset, DashPattern, DashStyle):
2874 Implemented these properties.
2875 (CustomStartCap, CustomEndCap, StartCap, EndCap, SetLineCap): Stubbed.
2876 (MultiplyTransform, ResetTransform, RotateTransform):
2877 (ScaleTransform, TranslateTransform): Implemented these methods.
2879 * SolidBrush.cs (SolidBrush (IntPtr)): new internal constructor.
2881 * gdipEnums.cs (BrushType): Added new GDI+ enum.
2883 * gdipFunctions.cs: Imported new Brush and Pen functions.
2885 2003-11-22 Duncan Mak <duncan@ximian.com>
2888 (GdipResetWorldTransform, GdipSetWorldTransform):
2889 (GdipGetWorldTransform, GdipScaleWorldTransform): Imported.
2891 * Graphics.cs: Remove unnecessary TODO, and reformatted the code.
2892 (transform): Removed this field. Always use the
2893 matrix associated in the GpGraphics ptr.
2894 (DrawBeziers): Implemented.
2895 (DrawLine): Don't need to manually invoke the transform now.
2896 (MultiplyTransform, ResetTransform):
2897 (ScaleTransform, TranslateTransform): Use GDI+ implementation.
2898 (Transform): Instead of storing a Matrix in managed code, use
2899 equivalent GDI+ functions.
2901 2003-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2903 * SizeConverter.cs: fixed class signature and implemented some methods.
2905 2003-11-17 Duncan Mak <duncan@ximian.com>
2907 * gdipFunctions.cs (GdipGetMatrixElements): Fix signature.
2909 * Graphics.cs (MultiplyTransform): Commented out until my Matrix commit.
2911 2003-11-17 Duncan Mak <duncan@ximian.com>
2913 * Bitmap.cs (LockBits):
2914 * Graphics.cs (DrawString): Use GpRectF.
2916 * gdipFunctions.cs: Updated method signatures.
2918 * Graphics.cs (MultiplyTransform): Implemented using
2919 GdipMultiplyWorldTransform from GDI+.
2921 * gdipStructs.cs (GdipRectF, GdipRect): Renamed to GpRectF and
2922 GpRect, to be more consistent with the C naming.
2924 2003-11-16 Miguel de Icaza <miguel@ximian.com>
2926 * Graphics.cs: Implement the other DrawString overloads .
2928 2003-11-16 Miguel de Icaza <miguel@ximian.com>
2930 * gdipStructs.cs (GdipRectF): Added utility constructor
2932 2003-11-15 Duncan Mak <duncan@ximian.com>
2934 * gdipFunctions.cs: Imported matrix functions.
2936 2003-11-13 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2938 * Bitmap.cs: Added Attributes
2939 * ColorTranslator.cs: Added private constructor
2940 * Font.cs: Added Attributes
2941 * FontFamily.cs: sealed
2942 * Icon.cs: Added Attributes
2943 * IconConverter.cs: Fixed signature
2944 * Image.cs: Added attributes
2946 * ImageConverter.cs:
2947 * ImageFormatConverter.cs:
2954 * TextureBrush.cs: Fixed signature
2955 * Color.cs: Added attributes
2960 * SizeF.cs: Added attributes
2961 * ContentAlignment.cs: Added attribute
2963 2003-11-13 Duncan Mak <duncan@ximian.com>
2965 * Pen.cs (LineCap, LineJoin, MiterLimit, Transform): implemented.
2968 (GdipSetPenMiterLimit, GdipGetPenMiterLimit):
2969 (GdipSetPenLineJoin, GdipGetPenLineJoin):
2970 (GdipSetPenLineJoin, GdipGetPenTransform): imported.
2972 2003-11-12 Alexandre Pigolkine <pigolkine@gmx.de>
2974 * gdipFunctions.cs copy image in Bitmap constructor
2976 2003-11-06 Duncan Mak <duncan@ximian.com>
2977 * Graphics.cs (DrawPie): Use DrawPieI instead of DrawPie and fix
2978 angle parameters for the integer case.
2979 (DrawBezier): Hook it up with GdipDrawBezier.
2980 (DrawEllipse): Fix Width, Height ordering.
2982 2003-11-05 Duncan Mak <duncan@ximian.com>
2984 * Graphics.cs (DrawPie):
2985 * gdipFunctions.cs (GdipDrawPie): Add hooks to the implementation
2988 2003-10-28 Duncan Mak <duncan@ximian.com>
2990 * Graphics.cs (DrawEllipse, DrawLine, DrawPolygon):
2991 (FillEllipse, FillPolygon): implemented.
2992 (RenderingOrigin): implemented.
2994 * gdipFunctions.cs: Added new GDI+ equivalents.
2996 2003-10-25 Alexandre Pigolkine <pigolkine@gmx.de>
2998 * Image.cs small fixes
3000 2003-10-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3002 * Image.cs : renamed 'pallete' to 'colorPallete' for CLS compliance.
3004 2003-10-24 Miguel de Icaza <miguel@ximian.com>
3006 * SystemBrushes.cs: Some more brushe3s.
3008 * SystemPens.cs: More pens.
3010 * Pen.cs: Implement IDisposable, ICloneable.
3012 * Region.cs: Add some more stubs here.
3014 * StringFormat.cs: Add some more code here.
3016 2003-10-23 Miguel de Icaza <miguel@ximian.com>
3018 * Image.cs: Kill the InternalImageInfo, everything is now done in
3019 terms of Image and BitmapData.
3021 * Rectangle.cs: Make this one also sequential, change from using
3022 Point + Size to use x, y, width, height; So we can use GdiPlus.
3024 * gdipFunctions.cs (GdipBitmapLockBits): Remove the ref from the
3025 BitmapData class argument, and instead use the [In,Out]
3026 attributes, which will do struct marshalling on the fields. Now
3027 we can use C#'s BitmapData directly to talk to Gdiplus.
3029 * gdipStructs.cs: Every internal structure that has to talk to
3030 Gdi+ is properly prefixed, to minimize the confussion.
3032 * Bitmap.cs Bitmap (int width, int height, PixelFormat format):
3033 Compute the stride here where we have the BPP information,
3034 allocate a buffer of the proper size, and pass this to
3035 GdipCreateBitmapFromScan0
3037 * Image.cs: Implement Dispose pattern.
3039 2003-10-14 Alexandre Pigolkine <pigolkine@gmx.de>
3042 * gdipStructs.cs DrawString function added
3044 2003-10-12 Alexandre Pigolkine <pigolkine@gmx.de>
3047 * gdipStructs.cs added
3050 2003-10-12 Alexandre Pigolkine <pigolkine@gmx.de>
3059 implementation changed to gdi+
3061 2003-09-08 Duncan Mak <duncan@ximian.com>
3063 * Factories.cs (DefaultImplementationNamespace): Change it from
3064 "XrImpl" to "Cairo".
3066 2003-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3068 * Color.cs: fixed FromArgb to handle alpha value correctly. Closes
3071 2003-08-08 Duncan Mak <duncan@ximian.com>
3073 * Graphics.cs (DrawBezier): Fixed.
3075 2003-08-03 Alexandre Pigolkine <pigolkine@gmx.de>
3076 * Graphics.cs delegate Dispose to implementation
3078 2003-08-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3080 * FontConverter.cs: stub it out so that system.web compiles.
3082 2003-07-30 Alexandre Pigolkine <pigolkine@gmx.de>
3083 * Image.cs InternalImageInfo class improved
3085 2003-07-23 Miguel de Icaza <miguel@ximian.com>
3087 * Factories.cs: If the AppDomain key `Mono.Running.Windows.Forms'
3088 is set, default to Win32Impl
3090 2003-07-22 Alexandre Pigolkine <pigolkine@gmx.de>
3091 * Image.cs implementation added
3093 2003-07-21 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
3095 * Icon.cs: Stubed out (fix for System.Drawing.Design)
3097 2003-07-17 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
3099 * StringFormat.cs: Changes to become CLS-compliant
3101 2003-07-14 Miguel de Icaza <miguel@ximian.com>
3103 * Factories.cs: Remove debugging message.
3105 2003-07-01 Alexandre Pigolkine <pigolkine@gmx.de>
3106 * Color.cs code generation program modified
3108 2003-06-29 Alexandre Pigolkine
3109 * Graphics.cs image drawing
3111 2003-06-28 Alexandre Pigolkine <pigolkine@gmx.de>
3114 supply KnowColor enum value to save Enum.Parse at runtime
3116 2003-06-26 Alexandre Pigolkine <pigolkine@gmx.de>
3117 * Graphics.cs coordinate transformations
3118 * Image.cs small fix
3120 2003-06-22 Alexandre Pigolkine <pigolkine@gmx.de>
3122 * FontFamily.cs more implementation
3124 2003-06-20 Alexandre Pigolkine <pigolkine@gmx.de>
3126 * FontFamily.cs more implementation
3128 2003-06-18 Alexandre Pigolkine <pigolkine@gmx.de>
3129 * Graphics.cs few more calls to implementation
3131 2003-06-15 Alexandre Pigolkine <pigolkine@gmx.de>
3132 * Bitmap.cs BITMAP declaration removed
3133 * Graphics.cs few more calls to implementation
3134 * Image.cs InternalImageInfo structure, image read/write functions
3137 2003-05-26 Alexandre Pigolkine <pigolkine@gmx.de>
3138 * Factories.cs analyse environment variable and machine.config to select implementation
3139 * Image.cs PixelFormat property added
3141 2003-04-30 Nick Drochak <ndrochak@gol.com>
3143 * Factories.cs: Change weird characters that broke build on windows.
3145 2003-04-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3147 * ColorConverter.cs:
3148 (ConvertFrom): return a system or named color if there's one that fits
3149 teh values parsed with Color.FromArgb.
3151 2003-04-26 Alexandre Pigolkine <pigolkine@gmx.de>
3161 delegate function calls to implementation
3163 2003-04-26 Alexandre Pigolkine <pigolkine@gmx.de>
3167 * SystemBrushes.cs switch to Linux style line terminators
3169 2003-03-29 Alan Tam <Tam@SiuLung.com>
3170 * ToolboxBitmapAttribute
3171 stubbed more constructors and fixed base class
3173 2003-03-01 Alexandre Pigolkine <pigolkine@gmx.de>
3175 added stubs to compile SWF
3178 2003-02-21 Alexandre Pigolkine <pigolkine@gmx.de>
3183 small changes to be able to run SWF apps
3185 2003-02-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3187 * Graphics.cs: stubbed out all the methods.
3189 2003-02-08 Piers Haken <piersh@friskit.com>
3191 * fixed case of pens.cs and font.cs
3193 2003-02-07 Alexandre Pigolkine <pigolkine@gmx.de>
3200 2002-11-21 Dennis Hayes (dennish@raytek.com)
3201 * checkin for Matt Stump (mstump@swfo.arizona.edu)
3205 2002-10-19 Rachel Hestilow <hestilow@ximian.com>
3207 * ColorTranslator.cs (FromHtml): Implement.
3209 2002-10-14 Dennis Hayes (dennish@raytek.com)
3211 * changed using namespace from Drawing2d to Drawing2D
3213 2002-9-15 Asier Llano <asierllano@infonegocio.com>
3215 * Fixes the enum values in the following enums
3216 * ContentAlignment.cs:
3220 * RotateFlipType.cs:
3221 * StringAligment.cs:
3222 * StringDigitSubstitute.cs:
3223 * StringFormatFlags.cs:
3224 * StringTrimming.cs:
3226 * SolidBrush.cs: Easy implementation
3227 * Brushes.cs: Implementation based on SolidBrush and Color class.
3228 * Brush.cs: Fixes based on the status web).
3229 * CharacterRange.cs: Implemented the missing Lenth property.
3231 2002-9-14 Dennis Hayes (dennish@raytek.com)
3234 * removed personal template that should not have been checked in
3236 2002-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3238 * ColorConverter.cs: readded MonoTODOs and implemented a couple of
3241 2002-9-14 DennisHayes <dennish@raytek.com>
3249 * ImageFormatConverter.cs
3251 * RectangleConverter.cs
3260 * ToolboxBitmapAttribute.cs
3261 * Added null classes for most/all classes, Many stubs, and some implmentation
3263 2002-9-2 DennisHayes <dennish@raytek.com>
3270 * Added stubs, implmentation
3272 2002-9-2 DennisHayes <dennish@raytek.com>
3274 * Brushes.cs : stubbed, added colors. Not sure how to implement,
3275 but this should at least save someone some typing.
3276 * CharacterRange.cs :Implmented
3277 * Region.cs : stub needed for system.windows.forms
3279 2002-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3281 * ColorTranslator.cs: use Color.Name.
3283 2002-07-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3285 * Color.cs: implemented SystemColors and NamedColors properties that
3286 are used by ColorConverter, removed public constructor, use
3287 SystemColors, and misc. fixes to make it behave as MS (ToString,
3288 parsing names, FromKnownColor,...).
3290 * ColorConverter.cs: use NamedColors and SystemColors from Color when
3291 trying to get the color from its name.
3293 * SystemColors.cs: new file.
3295 2002-07-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3297 * Color.cs: changed static properties to use FromArgbNamed. Also
3298 modified the program included in comments that get the values for
3301 (FromArgbNamed): build named colors.
3302 (FromKnownColor): fixed.
3303 (FromName): use a hash to look up colors by name.
3304 (FillColorNames): create the hash of colors.
3305 (Equals): compare values and name.
3306 (ToString): improved.
3308 * ColorTranslator.cs: implemented ToHtml.
3310 2002-06-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3312 * Color.cs: added TypeConverter attribute.
3314 * ColorConverter.cs: added constructor.
3316 2002-06-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3318 * ColorConverter.cs: implemented minimal set of features needed by xsp.
3320 2002-05-03 Mike Kestner <mkestner@speakeasy.net>
3322 * Bitmap.cs : using System.IO
3323 * ColorTranslator.cs : Stubbed off build breakers.
3324 * Image.cs : Stub off IDisposable and ICloneable.
3326 2002-04-27 Christian Meyer <Christian.Meyer@cs.tum.edu>
3328 * Bitmap.cs: Ximian is the new copyright holder now.
3331 2002-04-05 Christian Meyer <Christian.Meyer@cs.tum.edu>
3333 * Uppercased several files.
3335 2002-04-05 Christian Meyer <Christian.Meyer@cs.tum.edu>
3337 * color.cs: Fixed a typo in GetSaturation ().
3339 2002-02-26 Christian Meyer <Christian.Meyer@cs.tum.edu>
3341 * Bitmap.cs: Added method headers.
3343 2002-02-25 Christian Meyer <Christian.Meyer@cs.tum.edu>
3345 * Bitmap.cs: Added, no implementation's done, yet.
3347 2001-12-15 Mike Kestner <mkestner@speakeasy.net>
3349 * Rectangle.cs : Add a doc comment.
3350 * RectangleF.cs : New struct implementation.
3352 2001-12-15 Mike Kestner <mkestner@speakeasy.net>
3354 * Rectangle.cs : New struct implementation.
3356 2001-08-17 Mike Kestner <mkestner@speakeasy.net>
3358 * PointF.cs, Size.cs, SizeF.cs : New struct implementations.
3360 2001-08-16 Mike Kestner <mkestner@speakeasy.net>
3362 * Point.cs : New. Implementation of System.Drawing.Point struct.