1 2007-10-09 Geoff Norton <gnorton@novell.com>
3 * carbonFunctions.cs: Correct the P/Invoke definition for CGContext*CTM.
5 2007-09-26 Ivan N.Zlatev <contact@i-nz.net>
7 * ColorConverter.cs: During conversion to InstanceDescriptor check
8 both IsSystemColor to get a PropertyInfo from type SystemColors
9 and IsKnownColor to get PropertyInfo from type Color.
11 2007-08-09 Vladimir Krasnov <vladimirk@mainsoft.com>
13 * ColorTranslator.cs: optimized Html color formatting in ToHtml method
15 2007-08-13 Sebastien Pouliot <sebastien@ximian.com>
17 * gdipFunctions.cs: Change GdipMeasureString definition to use unsafe
19 * Graphics.cs: Rework MeasureString not to supply integers (characters
20 and lines) as they aren't required for most of it's overloads and
21 requires extra code/time to calculate inside libgdiplus. Also fix a
22 possible NRE in MultiplyTransform.
24 2007-08-01 Sebastien Pouliot <sebastien@ximian.com>
26 * gdipFunctions.cs: Added definition for GdipCloneFontFamily
28 2007-08-01 Vladimir Krasnov <vladimirk@mainsoft.com>
30 * Bitmap.jvm.cs: fixed InternalPixelFormat TYPE_BYTE_GRAY
32 2007-05-30 Sebastien Pouliot <sebastien@ximian.com>
34 * Graphics.cs: Refactor [Get|Release]Hdc to get ReleaseHdcInternal
35 working (as long as the HDC comes from GetHdc).
37 2007-05-21 Adar Wesley <adarw@mainsoft.com>
41 * Region.jvm.cs: Changed MemberwiseClone to clone.
43 2007-05-21 Adar Wesley <adarw@mainsoft.com>
45 * Font.jvm.cs: added implementation for Equals and GetHashCode.
47 * Graphics.jvm.cs: added missing DrawImage overloads,
48 DrawImageUnscaledAndClipped.
50 2007-05-18 Sebastien Pouliot <sebastien@ximian.com>
52 * Icon.cs: Always open icon files as read only. Fix #81669.
54 2007-05-15 Sebastien Pouliot <sebastien@ximian.com>
56 * Graphics.cs: Fix DrawImageUnscaled for empty (width or height <= 0)
57 Fix NRE in DrawImageUnscaledAndClipped. Remove lines with only tabs in
59 * RectangleF.cs: A rectangle with a negative width or height is also
62 2007-05-09 Igor Zelmanovich <igorz@mainsoft.com>
64 * FontConverter.cs: for TARGET_JVM destructor is not used.
66 2007-05-03 Igor Zelmanovich <igorz@mainsoft.com>
68 * ColorConverter.cs: fixed GetStandardValues() for TARGET_JVM
69 * Font.jvm.cs: fixed GetHeight()
71 2007-05-02 Sebastien Pouliot <sebastien@ximian.com>
73 * gdipEnums.cs: Add GetSysColorIndex
74 * gdipStructs.cs: Remove GetSysColorIndex (it's an enum)
75 * KnownColors.cs: Fix Windows desktop colors as GetSysColor returns
76 values in BGR (not RGB).
78 2007-05-01 Sebastien Pouliot <sebastien@ximian.com>
80 * KnownColors.cs: Force alpha values (opaque) on Win32's GetSysColor.
82 2007-04-30 Sebastien Pouliot <sebastien@ximian.com>
84 * Color.cs: Reflection didn't like the change from int to uint (thanks
85 to Gert for noticing again :-).
87 2007-04-29 Konstantin Triger <kostat@mainsoft.com>
89 * Color.cs: FromName - do not throw on unknown color.
91 2007-04-26 Sebastien Pouliot <sebastien@ximian.com>
93 * Color.cs: Try to avoid calling GetName in GetHashCode when the color
94 isn't named. Commented code (#81465) to remove the string name member
95 for the 2.0 profile (to avoid a reference in a struct).
96 * ColorConverter.cs: Use the new KnownColor static uint array.
97 * ColorTranslator.cs: Share code between From[Win32|Ole] (both BGR).
98 Reduce ToHtml switch size (when html name == known color name).
99 * KnownColors.cs: Remove the array of struct for every known colors.
100 Add an array of uint with color values and a method to return the name
101 of a known color. Big reduction of the static ctor code size.
103 2007-04-26 Sebastien Pouliot <sebastien@ximian.com>
105 * gdipFunctions.cs: Add p/invoke definitions for GdipRecordMetafile
106 FromDelegate[I]_linux.
108 2007-04-26 Sebastien Pouliot <sebastien@ximian.com>
110 * gdipFunctions.cs: Add p/invoke definitions for GdipRecordMetafile
111 [FileName|FromStream][I].
113 2007-04-16 Sebastien Pouliot <sebastien@ximian.com>
115 * Bitmap.cs: Add check in SetPixel for Format16bppGrayScale (but
116 without requiring a second unmanaged call on each SetPixel call).
118 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
120 * Brush.cs: Ensure we're zeroing the handle before calling
121 CheckStatus. Some clean up.
122 * Pen.cs: Ensure we're zeroing the handle before calling CheckStatus.
123 Use Locale.GetText for exceptions.
125 2007-04-11 Sebastien Pouliot <sebastien@ximian.com>
127 * Bitmap.cs: Move LockBits validations into unmanaged code.
128 * gdipFunctions.cs: Add mapping for Win32Error in CheckStatus. Add
129 globalization support for CheckStatus and add the GDI+ status code in
131 * SolidBrush.cs: Clean up and add comments about [un]named colors.
133 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
135 * Color.cs: Remove duplicate check in == and add better comments
137 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
139 * Color.cs: Remove hashtables and locks. All color properties are read
140 from KnownColors. Remove extra & 0xFF (typecast to byte is enough).
141 Keep track of the Name property once calculated. When possible (most
142 likely case) don't create the names (strings) in Equals, == and !=
143 * ColorTranslator.cs: Use the new KnownColors instead of the separate
144 NamedColors and SystemColors.
145 * ColorConverter.cs: Use the new KnownColors instead of the separate
146 NamedColors and SystemColors.
147 * gdipFunctions.cs: Moved GetSysColor p/invoke signature here as this
148 class is marked by [SuppressUnmanagedCodeSecurity].
149 * gdipStructs.cs: Moved Windows-specific GetSysColorIndex enum here.
150 * KnownColors.cs: New. Single source for all colors.
151 * SystemColors.cs: Vastly simplified. All color properties are read
154 2007-04-05 Sebastien Pouliot <sebastien@ximian.com>
156 * gdipFunctions.cs: Remove unused (and not part of GDI+) GdipGetHfont
159 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
161 * Pen.cs: Simplify. Caching the brush still involved too many
162 unmanaged calls and was hiding libgdiplus bugs (e.g. 81266). Color is
163 still cached (a little less ;-) but needs to stay that way so we keep
164 the color names available (it's the expected behavior).
166 2007-03-20 Sebastien Pouliot <sebastien@ximian.com>
168 * Graphics.cs: Replace TODO on all EnumerateMetafile overloads.
170 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
172 * Font.cs: Add a better exception for trying to create a font
173 where the requested style is not available. [Fixes #81194]
175 2007-03-15 Sebastien Pouliot <sebastien@ximian.com>
177 * ColorConverter.cs: Rewrite the hex color convertion to be more
178 compatible with MS implementation (fixing NotWorking unit tests) and
179 more endian friendly.
181 2007-02-28 Sebastien Pouliot <sebastien@ximian.com>
183 * Font.cs: Remove internal SysFontName setter property and add a new
185 * SystemFonts.cs: We can't cache font instance (because anyone can
186 dispose them) so we must return new instances each time.
188 2007-02-27 Sebastien Pouliot <sebastien@ximian.com>
190 * Bitmap.cs: Removed unrequired ctors.
191 * TextureBrush.cs: Change which GDI+ calls is used to create the
192 brush (to better match what you expect from libgdiplus source). Add
193 [MonoLimitation] to ctors accepting ImageAttributes (not supported
194 by libgdiplus). Split some long lines into two lines.
196 2007-02-26 Sebastien Pouliot <sebastien@ximian.com>
198 * gdipFunctions.cs: Add p/invoke signature for GDI DeleteObject.
199 * Region.cs: Under Windows use DeleteObject when calling ReleaseHrgn.
202 2007-02-21 Sebastien Pouliot <sebastien@ximian.com>
204 * Image.cs: Fix Metefile.ctor usage (to avoid creating, and leaking,
205 an unmanaged metafile object);
207 2007-02-16 Sebastien Pouliot <sebastien@ximian.com>
209 * gdipFunctions.cs: Fix some p/invoke definitions (int versus uint)
210 and add more for metafile functions.
211 * Image.cs: Fix usage of corrected p/invoke signatures.
213 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
215 * SystemColors.cs: Query Windows for the colors added to this class
216 for 2.0. (Windows-only path of course.)
218 2007-02-13 Sebastien Pouliot <sebastien@ximian.com>
220 * Icon.cs: Ignore Vista 256x256 icons, just like MS does.
222 2007-02-09 Sebastien Pouliot <sebastien@ximian.com>
224 * Icon.cs: Resurrected some old Icon to Bitmap code from SVN history
225 to handle convertion for Win32, where MS GDI+ ICO codec doesn't
226 support all the icon formats supported by the Icon class.
228 2007-02-08 Sebastien Pouliot <sebastien@ximian.com>
230 * Bitmap.cs: Adapt code wrt Image changes. Reuse the serialization
231 ctor from Image to avoid duplicate code.
232 * gdipEnums.cs: Added ImageType. Clean up extra stuff.
233 * gdipFunctions.cs: Added GdipGetImageType and some metafile
235 * Image.cs: Refactor code not to create a Bitmap for every images
236 (e.g. FromFile, FromStream) as the result can also be a Metafile.
238 2007-01-30 Sebastien Pouliot <sebastien@ximian.com>
240 * Image.cs: Fix serialization of Image/Bitmap that contains ICO. In
241 this case the image is serialized as a PNG bitmap (note: the ICO codec
242 is a decoder-only codec).
244 2007-01-19 Sebastien Pouliot <sebastien@ximian.com>
246 * Graphics.cs: Fix FromImage to check for indexed images inside
247 managed code (and not GDI+ which will report the wrong error code
248 for the exception we expect).
249 * Image.cs: Remove unused private method IsIndexedPixelFormat.
251 2007-01-19 Sebastien Pouliot <sebastien@ximian.com>
253 * Font.cs: Fix calls to GDIPlus.ReleaseDC (missing parameter). This
254 fix the GDI object leaks under Win32 (#80552).
255 * gdipFunctions.cs: Fix ReleaseDC signature (missing hWnd).
256 * Graphics.cs: Fix ReleaseDC signature (missing hWnd) in NET_2_0.
258 2007-01-19 Sebastien Pouliot <sebastien@ximian.com>
260 * Font.cs: Under Win32 cache the LOGFONT we use to create the HFONT
261 handle. This "hides" the fact that ToLogFont leaks (#80552).
263 2007-01-17 Sebastien Pouliot <sebastien@ximian.com>
265 * gdipFunctions.cs: Added Win32 CreateIconIndirect and DestoryIcon
266 imports. Both are required under Win32 to get HICON stuff working.
267 Added some GDI+ Metafile related definitions too.
268 * gdipStructs.cs: Update IconInfo structure so it can be used when
269 calling CreateIconIndirect on Win32.
270 * Icon.cs: Add support for handles under Win32.
272 2007-01-16 Sebastien Pouliot <sebastien@ximian.com>
274 * Icon.cs: Implement saving an icon from it's bitmap representation.
275 This allows roundtripped icons (Handle or HICON) to be saved.
277 2007-01-15 Sebastien Pouliot <sebastien@ximian.com>
279 * Icon.cs: Refactor Save code to allow saving a single icon size.
280 This allows ToBitmap to produce the right (sized) bitmap wrt the
281 selected icon size. Fix #80509 under UNIX.
283 2007-01-15 Sebastien Pouliot <sebastien@ximian.com>
285 * Bitmap.cs: Make sure we're not building bitmaps using stream that
286 can be disposed (as GDI+ may require access to them anytime);
287 * Icon.cs: Change icon selection to match either width *or* height.
288 * Image.cs: Track user versus internal streams in InitFromStream
290 2007-01-12 Sebastien Pouliot <sebastien@ximian.com>
292 * Graphics.cs: Change DrawIcon* methods to use the internal bitmap
293 we keep for the Icon. This is required to let HICON support work with
294 libgdiplus (and should be faster than creating a new bitmap each time)
295 * Icon.cs: Fix ctor exceptions. Select the correct icon when multiple
296 size are available (and do not match the requested size). Fix handle
297 support for work under UNIX (Win32 support still missing). Keep an
298 internal bitmap for the Icon to use for HICON support.
300 2007-01-11 Sebastien Pouliot <sebastien@ximian.com>
302 * Icon.cs: Fix .ctor(string) to load, when available, the 32x32 icon.
303 Remove TARGET_JVM from file (Mainsoft now use Icon2.jvm.cs). Use GDI+
304 to implement ToBitmap method (previous results were wrong).
306 2007-01-10 Sebastien Pouliot <sebastien@ximian.com>
308 * Image.cs: Fix Palette to call into GDI+ even for non-indexed images.
309 This case can occurs with the ICOn codec where the returned image is a
310 32bpp ARGB bitmap *with* a palette.
312 2007-01-09 Sebastien Pouliot <sebastien@ximian.com>
314 * Font.cs: Unify platform detection code.
315 * gdipFunctions.cs: Unify platform detection code.
316 * Graphics.cs: Unify platform detection code.
317 * Image.cs: Unify platform detection code.
318 * SystemColors.cs: Unify platform detection code.
320 2007-01-08 Sebastien Pouliot <sebastien@ximian.com>
322 * gdipStructs.cs: Add support for SignaturePatterns and
323 SiggnatureMasks values.
325 2006-12-30 Alexander Olk <alex.olk@googlemail.com>
327 * gdipFunctions.cs: Don't create "millions" of byte arrays in
328 GdiPlusStreamHelper. Just create a default size array and resize it
329 only when needed. (as an example: the FileDialog sample created more
330 than 1700 new byte arrays on my system before the patch, now only 74)
332 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
334 * Brush.cs: Fixed line endings.
335 * BufferedGraphicsContext.cs: Fixed line endings.
336 * CharacterRange.cs: Fixed line endings.
337 * Graphics.cs: Fixed line endings.
338 * IDeviceContext.cs: Fixed line endings.
339 * SizeFConverter.cs: Fixed line endings.
340 * SystemBrushes.cs: Fixed line endings.
341 * SystemFonts.cs: Fixed line endings.
342 * SystemPens.cs: Fixed line endings.
344 2006-12-22 Sebastien Pouliot <sebastien@ximian.com>
346 * Graphics.cs: Splitted CopyFromScreen into platform specific methods
347 and added MonoLimitations to all overloads. This should get better
350 2006-12-19 Sebastien Pouliot <sebastien@ximian.com>
352 * FontFamily.cs: More accurate Mono* attributes to avoid confusion.
353 * Icon.cs: Dummy implementation of ExtractAssociatedIcon to always
354 return SystemIcons.WinLogo (which is better than throwing an NIE).
355 Updated MonoTODO, to a MonoLimitation, to reflect the change.
357 2006-12-14 Sebastien Pouliot <sebastien@ximian.com>
359 * Image.cs: Rework Clone so it doesn't confuse MoMA to report a NIE.
360 Cloning works for bitmap. Metafiles aren't (actually) supported.
362 2006-12-07 Sebastien Pouliot <sebastien@ximian.com>
364 * Icon.cs: Revert a change from r68882. The type is also part of the
365 icon's name. Fix bug #80181.
367 2006-12-03 Sebastien Pouliot <sebastien@ximian.com>
369 * Icon.cs: Add a new ctor that returns undisposable Icon instances
370 (required when used from SystemIcons). Added a dispose check in
371 ToBitmap (many other are missing).
372 * SystemIcons.cs: Change icons to the one already in SVN.
374 2006-12-02 Sebastien Pouliot <sebastien@ximian.com>
376 * FontConverter.cs: Add a comment why the empty finalizer is required.
377 * gdipFunctions.cs: Remove warning from build (unused variable).
378 * Icon.cs: Fix .ctor accepting a type - the type is to find the
379 assembly, not the type of the ressource.
380 * SystemIcons.cs: Load some icons from the assembly (all the same Mono
383 2006-11-22 Sebastien Pouliot <sebastien@ximian.com>
385 * BufferedGraphicsContext.cs: Better MonoTODO.
386 * BufferedGraphics.cs: Better MonoTODO.
387 * Font.cs: Better MonoTODO.
388 * FontFamily.cs: Better MonoTODO.
389 * Graphics.cs: Better MonoTODO.
390 * Icon.cs: Better MonoTODO.
391 * Image.cs: Second chance while saving using the current RawFormat.
392 This allows icons to be saved as PNG (strange but look at unit tests).
393 * ImageFormatConverter.cs: Implement GetStandardValues (and remove
394 it's MonoTODO) and fix GetStandardValuesSupported (to return true).
395 * Region.cs: Implement ReleaseHrgn (2.0) - not really useful (as the
396 handle is never exposed) but it's easier than to document the TODO ;-)
397 * SystemIcons.cs: Better MonoTODO.
399 2006-11-06 Sebastien Pouliot <sebastien@ximian.com>
401 * RectangleF.cs: Fix operator !=. Patch by Manuel Alejandro Cerón
404 2006-11-04 Chris Toshok <toshok@ximian.com>
406 * SystemColors.cs: reassign the given color to the return value of
407 UpdateKnownColor. This makes sure that the color has the same
408 SystemColor name. So, SystemColors.Control.Name always equals
409 "Control", regardless of the values the theme has stuffed in it.
411 * Color.cs: UpdateKnownColor now returns the new color.
413 2006-10-11 Sebastien Pouliot <sebastien@ximian.com>
415 * Graphics.cs: In MeasureCharacterRanges throw an ArgumentException if
416 StringFormat is null and return an empty region array if no range exists
417 (avoid GDI+ error/exeception). In MeasureString (2 overloads) replace
418 999999 by Int32.MaxValue (now that the real bug is fixed).
419 * StringFormat.cs: Ensure we are clearing the handle before throwing
422 2006-09-21 Sebastien Pouliot <sebastien@ximian.com>
424 * gdipFunctions.cs: Throw an OverflowException for the ValueOverflow
427 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
429 * gdipFunctions.cs, Image.cs: 78315. Probably in the future we should
430 add the same checking for other resource release GDI API calls.
432 2006-09-19 Sebastien Pouliot <sebastien@ximian.com>
434 * StringFormat.cs: Add missing validations.
436 2006-09-18 Sebastien Pouliot <sebastien@ximian.com>
438 * Graphics.cs: Add missing validations to MeasureCharacterRanges.
440 2006-09-18 Sebastien Pouliot <sebastien@ximian.com>
442 * Graphics.cs: Reorder instructions in MeasureString methods to avoid
443 allocations before checking for quick exit case (null/String.Empty
444 text or throwing execptions).
446 2006-09-11 Sebastien Pouliot <sebastien@ximian.com>
448 * ImageConverter.cs: Fixed ConvertTo to deal with null values (#79331)
449 and not to "return new NotSupportedException", throwing them is better
451 2006-09-07 Kornél Pál <kornelpal@gmail.com>
453 * ComIStreamMarshaler.cs: ManagedToNativeWrapper: Dispose COM vtable
454 on shutdown. Dispose unmanaged resources when constructor fails.
456 2006-09-06 Kornél Pál <kornelpal@gmail.com>
458 * ComIStreamMarshaler.cs: ManagedToNativeWrapper should not have a
459 destructor because it is freed using Release. (Proper fix for bug
460 #78315.) Free COM vtable when unloading and all objects Released.
462 2006-09-06 Jonathan Chambers <joncham@gmail.com>
464 * ComIStreamMarshaler.cs: Only deallocate memory
465 for COM wrapper if not shutting down. #78315
467 2006-09-04 Jonathan Chambers <joncham@gmail.com>
469 * ComIStreamMarshaler.cs: Do not deallocate unmanaged memory
470 allocated for vtable. If this finalizer runs before all clients
471 are done with it (Image(s) in this case) we crash on windows. #78315
473 2006-09-01 Sebastien Pouliot <sebastien@ximian.com>
475 * Bitmap.cs: Fix exceptions for LockBits.
477 2006-08-28 Sebastien Pouliot <sebastien@ximian.com>
479 * ImageAnimator.cs: Remove catch/throw in WorkerThread (it hides the
480 original exception). Found with Gendarme.
481 * Color.cs: Remove the double-check lock. Found with Gendarme.
482 * ColorConverter.cs: Remove the double-check lock. Found with Gendarme
484 2006-08-28 Jonathan Chambers <joncham@gmail.com>
486 * ComIStreamMarshaler.cs: Do not free memory allocated for
487 Com Callable Wrapper for stream. When Image created from stream
488 is destroyed, it calls Release on CCW interface. Somehow we seem
489 to be destroying Stream CCW before Image is destroyed. Fixes
490 crash on exit on Windows. #78315
492 2006-08-28 Boris Kirzner <borisk@mainsoft.com>
494 * SystemColors.jvm.cs: fix array size for NET_2_0
496 2006-08-27 Sebastien Pouliot <sebastien@ximian.com>
498 * ColorConverter.cs: Catch the case where the integer part of the
499 color doesn't fit into a 32bit integer.
500 * ColorTranslator.cs: Fixed Gendarme's UseStringEmptyRule on ToHtml
501 method. Fixed string handling on FromHtml method. Fixed all parameter
504 2006-08-25 Sebastien Pouliot <sebastien@ximian.com>
506 * gdipFunctions.cs: Change ColorMatrix to IntPtr in method
507 GdipSetImageAttributesColorMatrix definition.
508 * FontConverter.cs: Fix compiler warnings.
510 2006-08-24 Sebastien Pouliot <sebastien@ximian.com>
512 * TextureBrush.cs: Remove private Image member as we cannot, without
513 cloning it (which removes the advantage of caching it), return it for
514 the Image property *and* we cannot dispose of it properly (Dispose
517 2006-08-22 Sebastien Pouliot <sebastien@ximian.com>
519 * gdipFunctions.cs: Fix GdipGetImageWidth to use an uint for it's
521 * Image.cs: Cast the uint into an int for the Width property.
523 2006-08-12 Duncan Mak <duncan@novell.com>
525 * gdipFunctions.cs (GdipLoadImageFromStream):
526 (GdipSaveImageToStream): Don't include these methods when
527 compiling the unit tests.
529 2006-08-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
531 * gdipFunctions.cs: return -1 when stream.Length throws.
533 2006-08-11 Sebastien Pouliot <sebastien@ximian.com>
535 * Font.cs: Remove the, now unrequired, FaceNameOffset field and
536 use the object size instead of the structure size when copying.
538 2006-08-11 Sebastien Pouliot <sebastien@ximian.com>
540 * Font.cs: Added more checks to ToLogFont and fixed it's behaviour
541 to match MS boundary between GDI+ and SD.
543 2006-08-07 Andrew Skiba <andrews@mainsoft.com>
545 * Graphics.jvm.cs, Pen.jvm.cs, Region.jvm.cs: TARGET_JVM fix
547 2006-08-05 Sebastien Pouliot <sebastien@ximian.com>
549 * Font.cs: Avoid double cast in Equals. Return lfCharSet as 1 in
550 ToLogFont even if GDI+ has that value to 0.
552 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
554 * Icon.cs: when converting to Bitmap, handle the 24 bits separately.
555 Read the XOR and AND masks in a single read.
557 2006-08-04 Sebastien Pouliot <sebastien@ximian.com>
559 * Pen.cs: Fix unit tests wrt libgdiplus return value change.
561 2006-08-03 Sebastien Pouliot <sebastien@ximian.com>
563 * FontFamily.cs: Fix unit tests wrt libgdiplus return value change.
564 * Region.cs: Fix unit tests wrt libgdiplus return value change.
566 2006-08-01 Jonathan Chambers <joncham@gmail.com>
568 * Font.cs: Fix marshalling of LOGFONT in ToHfont.
571 2006-07-20 Sebastien Pouliot <sebastien@ximian.com>
573 * Graphics: Added implementation for ReleaseHDC by Jonathan Pobst
576 2006-07-06 Sebastien Pouliot <sebastien@ximian.com>
578 * Image.cs: Ensure we're setting the nativeObject to NULL before
579 throwing any exception while disposing (and avoid possible double
580 freeing). Avoid multiple casts in Clone method.
581 * Pen.cs: Ensure the internal pen's brush is always disposed
582 correctly. Avoid making a reference to the internal brush.
583 * SolidBrush.cs: Avoid setting color when cloning the solid brush
584 as the .ctor(IntPtr) always does this job.
586 2006-07-04 Sebastien Pouliot <sebastien@ximian.com>
588 * Image.cs: Made GetThumbnailImage throw OutOfMemoryException when
589 image size is invalid (to match MS behaviour), also ensure that the
590 Graphics instance is disposed even if CheckStatus throws an exception.
592 2006-06-26 Sebastien Pouliot <sebastien@ximian.com>
594 * Pen.cs: Ensure we dispose of an existing brush before replacing it.
595 Avoid double-cast when dealing with SolidBrush.
597 2006-06-06 Sebastien Pouliot <sebastien@ximian.com>
599 * gdipFunctions.cs: Fix API signature (missing pen pointer) for
600 GdipIsOutlineVisiblePathPoint[I] methods.
601 * FontFamily.cs: Delay the call to refreshName until it is actually
604 2006-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
606 * Color.cs: when deserializing from an MS generated stream, the value
607 for known colors was 0. These changes make our Color handle that case.
608 We won't serialize the name for known colors either, but the value will
609 be there, so we only check for a 0 value on a known color once.
612 2006-05-30 Sebastien Pouliot <sebastien@ximian.com>
614 * Font.cs: Change default charset to 1. Ensure we always call the
615 CheckStatus method after calling GDI+. Added null checks to match MS
617 * FontFamily.cs: Avoid double-cast in Equals. Fixed Equals not compare
618 pointers but names. Simplify the Generic* static properties by reusing
619 the .ctor code. Fixed ToString to match MS output. Removed
620 GetStyleCheck as it failed when multiple styles were provided (flags).
621 * gdipFunctions.cs: Convert Status.FontFamilyNotFound to an
624 2006-05-29 Sebastien Pouliot <sebastien@ximian.com>
626 * ImageFormatConverter.cs: Changed ConvertFrom to work with both short
627 (e.g. Bmp) and long (e.g. guid) names.
629 2006-05-26 Sebastien Pouliot <sebastien@ximian.com>
631 * ImageFormatConverter.cs: Fixing unit tests for ImageFormat
632 introduced a regression in the converter (not catched by other unit
635 2006-05-25 Sebastien Pouliot <sebastien@ximian.com>
637 * gdipFunctions.cs: Added wrapper methods for GdipGetRegionHRgn and
638 GdipCreateRegionHrgn functions.
639 * Region.cs: Reimplement GetHrgn and FromHrgn methods using the GDI+
642 2006-05-24 Sebastien Pouliot <sebastien@ximian.com>
644 * PointConverter.cs: Fx 2.0 throws an ArgumentException in
645 CreateInstance if some values are missing from the dictionary, while
646 1.x throws an NullReferenceException.
647 * RectangleConverter.cs: Fx 2.0 throws an ArgumentException in
648 CreateInstance if some values are missing from the dictionary, while
649 1.x throws an NullReferenceException.
650 * SizeConverter.cs: Fx 2.0 throws an ArgumentException in
651 CreateInstance if some values are missing from the dictionary, while
652 1.x throws an NullReferenceException.
653 * SizeFConverter.cs: Fix CreateInstance to use float (not int).
655 2006-05-24 Sebastien Pouliot <sebastien@ximian.com>
657 * Font.cs: Added a Demand for UnmanagedCode on both ToLogFont methods.
658 * Graphics.cs: Added checks for null Rectangle[F] arrays in
659 FillRectangles methods and removed the check for 0-length (MS throws).
660 Let EndContainer mthod throws a NullReferenceException on 1.x profile.
661 * Pen.cs: Let Brush property throws a NullReferenceException on 1.x.
663 2006-05-24 Sebastien Pouliot <sebastien@ximian.com>
665 * Pen.cs: Clone the supplied brush in the .ctor (as the user may
666 dispose of it anytime). Make sure we're disposing our cached brush
667 when disposing the pen.
669 2006-05-21 Sebastien Pouliot <sebastien@ximian.com>
671 * ContentAlignment.cs: Removed [Serializable] from 2.0 profile.
672 * FontStyle.cs: Removed [Serializable] from 2.0 profile.
673 * GraphicsUnit.cs: Removed [Serializable] from 2.0 profile.
674 * KnownColor.cs: Removed [Serializable] from 2.0 profile.
675 * RotateFlipType.cs: Removed [Serializable] from 2.0 profile.
676 * StringAligment.cs: Removed [Serializable] from 2.0 profile.
677 * StringDigitSubstitute.cs: Removed [Serializable] from 2.0 profile.
678 * StringFormatFlags.cs: Removed [Serializable] from 2.0 profile.
679 * StringTrimming.cs: Removed [Serializable] from 2.0 profile.
680 * StringUnit.cs: Removed [Serializable] from 2.0 profile.
682 2006-05-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
684 * ImageAnimator.cs: get the FrameDelay from the image properties, if
685 available. Remove ^Ms.
687 2006-05-17 Sebastien Pouliot <sebastien@ximian.com>
689 * Pen.cs: Get the pen color from the solid brush (when applicable).
690 Added missing validations for most properties. Always return a clone
691 of the internal brush (so no one can dispose of it in our back).
693 2006-05-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
695 * Color.cs: make it serialization-compatible with MS. Fixes bug #78265.
697 2006-05-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
699 * Bitmap.cs: (Clone) use the 'format' argument instead of the
702 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
704 * Graphics.cs : (FillRectangles/FillRectanglesI): when argument
705 array is empty, don't invoke GDI+. Fixed bug #78408.
707 2006-05-12 Sebastien Pouliot <sebastien@ximian.com>
709 * gdipFunctions.c: Fix misnamed GdipAdd*Path*String[I] API (#78383)
711 2006-05-11 Peter Dennis Bartok <pbartok@novell.com>
713 * Icon.cs: Don't require width/height to be non-0 when creating from
714 serialized data, just require them to be square
716 2006-05-04 Sebastien Pouliot <sebastien@ximian.com>
718 * Graphics.cs: Chaned DrawIcon methods to dispose the temporary bitmap
721 2006-05-04 Sebastien Pouliot <sebastien@ximian.com>
723 * Graphics.cs: Added a MonoTODO to PixelOffsetMode property so it shows
724 (in the class status library) a note that this isn't supported with
727 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
729 * FontConverter.cs (ConvertFrom): Implemented it properly. Fixes #78269
731 2006-05-02 Sebastien Pouliot <sebastien@ximian.com>
733 * PointF.cs: Add operators + and - between PointF and SizeF in the
734 2.0 profile (CSC 8.x can compile that, but sadly it doesn't show in as
735 missing in corcompare results).
737 2006-05-02 Sebastien Pouliot <sebastien@ximian.com>
739 * gdipFunctions.cs: Fixed wrappers for Gdip[Begin|End]Container[2][I]
740 * Graphics.cs: Fixed usage of fixed API ;-) Added MonoTODO on
741 BeginContainer methods that use rectangles and on TextContrast property
742 (all aren't currently supported in libgdiplus).
744 2006-05-01 Sebastien Pouliot <sebastien@ximian.com>
746 * Graphics.cs: Removed MonoTODO on DrawCurve methods (it's fixed in
747 libgdiplus). Fixed minor extra/missing for corcompare.
749 2006-05-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
751 * SizeF.cs: serialization compatibility fixes. Closes bug #78236.
753 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
755 * Icon.cs: Icon AND masks are organized in strides, fixed to calculate
756 and set proper transparency. Also fixed broken calculation of AND
757 size when reading the icon. NDocGui now shows pretty buttons.
759 2006-04-28 Sebastien Pouliot <sebastien@ximian.com>
761 * Color.cs: corcompare fix. Remove ComVisible attribute from 2.0 build
762 * Region.cs: Remove old todo that were fixed in libgdiplus.
763 * Image.cs: corcompare fixes. Clone isn't virtual. Added DefaultValue
764 attribute to Tag property. FromStream(Stream,bool,bool) is available
765 in Fx 1.1 (probably since SP1).
767 2006-04-28 Sebastien Pouliot <sebastien@ximian.com>
769 * Graphics.cs: Added MonoTODO on some DrawCurve methods because
770 libgdiplus doesn't use the numberOfSegments argument.
772 2006-04-27 Sebastien Pouliot <sebastien@ximian.com>
774 * gdipFunctions.cs: Added wrappers for GdipAddPathLine2 and
775 GdipAddPathLine2I methods (to allow adding a single point).
777 2006-04-27 Sebastien Pouliot <sebastien@ximian.com>
779 * gdipFunctions.cs: Added CharSet=CharSet.Unicode to GdipAddString and
780 GdipAddStringI wrapper methods.
782 2006-04-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
784 * Bitmap.cs: throw when the target pixel format differs from the one
785 of the image and it's an indexed format. We were failing in UnlockBits
788 2006-04-25 Miguel de Icaza <miguel@novell.com>
790 * FontConverter.cs (FontUnitConverter): implement. CorCompare
791 for some reason does not dig into nested classes, match the
794 (FontNameConverter): Return the fonts available on the system.
796 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
798 * Icon.cs: We need to or, not and our alpha values into the
799 palette. Also, we need to actually store the altered palette
800 on the bitmap, since we are altering a copy.
802 2006-04-10 Sebastien Pouliot <sebastien@ximian.com>
804 * gdipFunctions.cs: Fixed wrappers for GdipCreateMatrix3[I].
806 2006-03-23 Peter Dennis Bartok <pbartok@novell.com>
809 - GdipGetFontCollectionFamilyList: No need for complicated
810 GlobalAlloc stuff, .Net marshals the IntPtr[] array just fine
811 - GdipDeletePrivateFontCollection: We need to pass a ref to the
812 structure. This was causing nasty crashes.
813 - GdipGetFamilyName: Switched to use StringBuilder instead of
815 * FontFamily.cs: Simplified the refreshName method, less error-prone now
817 2006-03-21 Sebastien Pouliot <sebastien@ximian.com>
819 * Brush.cs: Remove unused code.
820 * FontFamily.cs: Remove warnings from build.
821 * gdipFunctions.cs: Add missing p/invoke calls for GdipAddString[I].
823 2006-03-21 Sebastien Pouliot <sebastien@ximian.com>
825 * gdipFunctions.cs: Import XFree (from libX11) so we can free the
827 * Graphics.cs: Free the memory we get from XGetVisualInfo.
829 2006-03-20 Sebastien Pouliot <sebastien@ximian.com>
831 * Brush.cs: Allow Dispose to free the unmanaged memory for the brush
832 in every case. This has been known (in the past) to cause crashes
833 in Cairo. If still true then we need to find out why!
835 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
837 * gdipFunctions.cs: Removed XCloseDisplay call from Gdi+ shutdown,
838 it was causing crashes in the finalizers (bug #77464)
840 2006-03-06 Jonathan Gilbert <logic@deltaq.org>
842 * gdipFunctions.cs: Rewrote the StreamSeekImpl function to invalidate
843 the start_buf cached bytes whenever Seek() is actually called. If
844 Seek is not called (an invalid 'whence' value), then the buffer is
845 not invalidated. This fixes a bug with TIFF loading.
847 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
849 * Image.cs (ISerializable.GetObjectData): Save the image in it's
850 original format. (Fixes #77673)
852 2006-02-28 Jonathan Chambers <jonathan.chambers@ansys.com>,
853 Peter Dennis Bartok <pbartok@novell.com>
856 - ToLogFont: Reworked to allow running under MS runtime and to
857 support it being called with both boxed structs and formatted
858 classes (MS runtime PtrToStructure cannot marshal boxed value
859 types, but Marshal.AsAny can)
860 - Switched all usage of LOGFONTA to more generic CharSet-driven
862 - FromLogFont: Switched to use charset-agnostic GdipCreateFontFromLogfont
863 * gdipStructs.cs: Dropped LOGFONTA and LOGFONTW and switched to
864 CharSet-driven LOGFONT structure (needed because of ToLogFont fix)
865 * gdipFunctions.cs: Switched GdipGetLogFont, GdipCreateFontFromLogfont and
866 CreateFontIndirect to use LOGFONT structure, set to be CharSet=Auto
867 (needed because of ToLogFont fix)
869 2006-02-18 Duncan Mak <duncan@novell.com>
871 * Graphics.cs (DrawBeziers): Patch from Alexander Olk to fix
872 possible IndexOutOfRangeException.
874 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
876 * Image.cs, Bitmap.cs: Removed unneeded casts
877 * Icon.cs: Fixed code to be 64bit safe
879 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
881 * Font.cs: Fixes 77407
883 2006-01-27 Sebastien Pouliot <sebastien@ximian.com>
885 * Font.cs: Ensure unmanaged memory is free correctly in ToLogFont
886 even if GDIPlus.CheckStatus throws an exception;
887 * Image.cs: Ensure unmanaged memory is free correctly even if
888 GDIPlus.CheckStatus throws an exception. Note: the SetPropertyItem use
889 case is unclear to me (and unimplemented in libgdiplus);
890 * Region.cs: Ensure unmanaged memory is free correctly in
891 GetRegionScans even if GDIPlus.CheckStatus throws an exception;
893 2006-01-27 Jordi Mas i Hernandez <jordimash@gmail.com>
895 * gdipFunctions.cs: New gdiplus imports
896 * Font.cs: Use gdiplus calls to get font height and size
898 2006-01-26 Sebastien Pouliot <sebastien@ximian.com>
900 * FontFamily.cs: Free the memory allocated with Marshal.AllocHGlobal.
901 * Region.cs: Updated TODO to reflect current status.
903 2006-01-24 Konstantin Triger <kostat@mainsoft.com>
905 * Font.jvm.cs, FontFamily.jvm.cs: use static container.
907 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
909 * Icon.cs: The code wrongly assumed that the stride for the icon
910 would be the same as the stride for the bitmap. This was causing
913 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
915 * Icon.cs: Reworked ToBitmap() method to not use Bitmap(Stream)
916 which when calling down to MS GDI+ will create an image
917 where neither GetPixel or Save can be used on.
919 2006-01-18 Sebastien Pouliot <sebastien@ximian.com>
921 * gdipFunctions.cs: Added declaration for GdipCreateRegionRgnData.
922 * Region.cs: Implemented .ctor(RegionData)
924 2006-01-13 Miguel de Icaza <miguel@novell.com>
926 * Region.cs: Revert the Region.cs check in GetHrgn as it was used
927 by our Windows.Forms implementation.
929 2006-01-11 Sebastien Pouliot <sebastien@ximian.com>
931 * Graphics.cs: Avoid creating bitmaps two times if both X and Y
932 default DPI are required (i.e. init both value in both cases).
933 * Region.cs: Added null check to match MS behaviour (exception type)
934 and avoid NRE (before CheckStatus is called). Added security demands
935 for unmanaged code on both FromHrgn and ReleaseHrgn (2.0) methods.
937 2005-12-22 Jonathan Chambers <jonathan.chambers@ansys.com>
939 * gdipFunctions.cs: Do not call GdiplusShutdown for
940 now as it causes a crash on MS GDI+.
942 2005-12-20 Konstantin Triger <kostat@mainsoft.com>
944 * Font.jvm.cs: charset support.
946 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
948 * Graphics.cs (Flush): Make sure nativeObject is not null
950 2005-12-14 Konstantin Triger <kostat@mainsoft.com>
952 * StrokeFactory.jvm.cs: create AdvancedStroke when have penTransform.
954 2005-12-13 Konstantin Triger <kostat@mainsoft.com>
956 * Bitmap.jvm.cs: Fix MakeTransparent.
958 2005-12-07 Jordi Mas i Hernandez <jordimash@gmail.com>
960 * Graphics.cs: Add new deephs support to CopyFromScreen
962 2005-12-07 Jordi Mas i Hernandez <jordimash@gmail.com>
964 * BufferedGraphicsManager.cs: Fixes signature
966 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
969 - Implemented FromLogFont
970 - Implemented ToLogFont
973 - Added GdipGetLogFontW method
974 - Specified charset for GdipGetLogFontA method
975 * gdipStructs.cs: Added LOGFONTW structure
977 2005-12-05 Gert Driesen <drieseng@users.sourceforge.net>
979 * BufferedGraphics.cs: Removed duplicate class. Set eol-style to
981 * BufferedGraphicsManager.cs: Removed duplicate class. Set eol-style
984 2005-12-05 Jordi Mas i Hernandez <jordimash@gmail.com>
986 * gdipFunctions.cs: DllExports need it to implement
987 new Graphics.CopyFromScreen .Net 2.0 methods
988 * IDeviceContext.cs: New .Net 2.0 interface
989 * Color.cs: Fixes for new .Net 2.0 KnowColors
990 * PointF.cs: New .Net 2.0 Add/Subtract methods
991 * gdipStructs.cs: Structs need it for Graphics.CopyFromScreen
992 * SystemBrushes.cs: New standard SystemBrushes for .Net 2.0
993 * SizeF.cs: New .Net 2.0 Add/Subtract methods
994 * FontConverter.cs: New .Net 2.0 fixes
995 * SystemColors.cs: New standard SystemColors for .Net 2.0
996 * SizeFConverter.cs: New .Net 2.0 class (based on SizeConverter)
997 * CharacterRange.cs: : New .Net 2.0 methods
998 * Size.cs: New .Net 2.0 Add/Subtract methods
999 * SystemPens.cs: New standard SystemPens for .Net 2.0
1000 * Bitmap.cs: New .Net 2.0 methods
1001 * Region.cs: New .Net 2.0 methods
1002 * Brush.cs: New .Net 2.0 constructor
1003 * Icon.cs: New .Net 2.0 Constructors and methods
1004 * Point.cs: New .Net 2.0 Add/Subtract methods
1005 * BufferedGraphicsManager.cs: New .Net 2.0 class
1006 * Graphics.cs: New methods for .Net 2.0 and fixes
1007 * BufferedGraphics.cs: New .Net 2.0 class
1008 * Font.cs: New .Net 2.0 properties
1009 * Image.cs: New .Net 2.0 tag property
1010 * KnownColor.cs: New .Net 2.0 know colors
1011 * CopyPixelOperation.cs: New .Net 2.0 enum
1012 * SystemFonts.cs: New .Net 2.0 class
1013 * BufferedGraphicsContext.cs: New .Net 2.0 class
1015 2005-11-28 Konstantin Triger <kostat@mainsoft.com>
1017 * SystemIcons.jvm.cs: refactoring.
1019 2005-11-28 Konstantin Triger <kostat@mainsoft.com>
1021 * Icon.cs: TARGET_JVM changes.
1023 2005-11-17 Vladimir Krasnov <vladimirk@mainsoft.com>
1025 * Image.jvm.cs: fixed Save, flush output stream
1027 2005-11-17 Konstantin Triger <kostat@mainsoft.com>
1029 * StrokeFactory.jvm.cs, Pen.jvm.cs, Graphics.jvm.cs: performance - use BasicStroke when possible.
1031 2005-11-17 Vladimir Krasnov <vladimirk@mainsoft.com>
1033 * ColorConverter.cs: fixed ConvertFrom, to be able
1034 to convert from three digit notation color (#abc)
1036 2005-11-16 Konstantin Triger <kostat@mainsoft.com>
1038 * Bitmap.jvm.cs: open a correct stream.
1040 2005-11-16 Konstantin Triger <kostat@mainsoft.com>
1042 * FontFamily.jvm.cs, Font.jvm.cs: throw exception if invalid params.
1044 2005-11-16 Konstantin Triger <kostat@mainsoft.com>
1046 * FontFamily.jvm.cs: fix for custom font collection
1048 2005-11-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1050 * FontFamily.jvm.cs: fixed GetName
1052 2005-11-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1054 * Bitmap.jvm.cs: fixed InternalSave() error handling
1055 * Image.jvm.cs: fixed Save() error handling
1057 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1059 * FontFamily.jvm.cs: Refactoring.
1061 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1063 * Font.jvm.cs: Refactoring.
1065 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1067 * StringFormat.jvm.cs, Graphics.jvm.cs: DrawString,
1068 MeasureString support
1070 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1072 * FontFamily.jvm.cs: correctly initialize fontcollection
1074 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1076 * FontFamily.jvm.cs: DrawMargin, refactoring.
1078 2005-11-13 Konstantin Triger <kostat@mainsoft.com>
1080 * Graphics.jvm.cs, Pen.jvm.cs, AdvancedStroke.jvm.cs:
1081 Differentiate standard and AntiAlias stroking
1083 2005-11-10 Vladimir Krasnov <vladimirk@mainsoft.com>
1085 * Graphics.jvm.cs: added UnitConversion property
1086 * FontFamily.jvm.cs: refactoring
1087 * Font.jvm.cs: refactoring
1089 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
1092 - Implemented serialization constructor
1093 - Implemented GetObjectData()
1095 2005-11-01 Vladimir Krasnov <vladimirk@mainsoft.com>
1097 * StringFormat.jvm.cs: Refactoring
1099 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
1101 * Image.cs: Default format for MemoryBMP should be Png
1103 2005-10-27 Vladimir Krasnov <vladimirk@mainsoft.com>
1105 * Bitmap.jvm.cs: fixed InternalSave
1106 * Image.jvm.cs: fixed Save
1108 2005-10-27 Vladimir Krasnov <vladimirk@mainsoft.com>
1110 * Image.jvm.cs: fixed redolution properties
1112 2005-10-27 Vladimir Krasnov <vladimirk@mainsoft.com>
1114 * Bitmap.jvm.cs: fixed InternalSave, to remove alpha channel of saved jpeg
1115 fixed clone, Initialize
1117 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
1119 * Brush.cs: Don't delete the brush if the display handle is no longer
1120 valid, otherwise cairo will try to use the handle and crash and burn
1122 2005-10-23 Vladimir Krasnov <vladimirk@mainsoft.com>
1124 * Graphics.jvm.cs: DrawImage refactoring
1126 2005-10-23 Vladimir Krasnov <vladimirk@mainsoft.com>
1128 * Graphics.jvm.cs: Clipping refactoring
1129 fixed FillScaledShape, DrawShape, MeasureDraw, BeginContainer,
1130 ExcludeClip, IntersectClip, ResetClip, CombineClipArea, RestoreBaseClip,
1131 TranslateClip, VisibleClipBounds
1133 2005-10-21 Miguel de Icaza <miguel@novell.com>
1135 * Pen.cs: Add support for returning the Brush from Pens created
1136 with a color constructor.
1138 Plus: code style police, else does not go on its own line.
1140 * Graphics.cs: Add various ArgumentNull checks.
1142 2005-10-20 Konstantin Triger <kostat@mainsoft.com>
1144 * Image.jvm.cs: make Clone abstract
1146 2005-10-20 Konstantin Triger <kostat@mainsoft.com>
1148 * Font.jvm.cs: make fallbacks for GdiCharSet, GdiVerticalFont
1150 2005-10-19 Vladimir Krasnov <vladimirk@mainsoft.com>
1152 * Bitmap.jvm.cs: fixed InternalSave, ToBufferedImageFormat, Clone
1153 * PlainImage.jvm.cs: fixed Clone
1154 * Graphics.jvm.cs: fixed FillShape, Clear, FillScaledShape
1156 2005-10-19 Vladimir Krasnov <vladimirk@mainsoft.com>
1158 * Brush.jvm.cs: added InternalClone() method
1159 changed transformation methods access level
1160 * TextureBrush.jvm.cs: refactoring, fixed clone()
1162 2005-10-19 Vladimir Krasnov <vladimirk@mainsoft.com>
1164 * AdvancedStroke.jvm.cs: fixed createStrokedShape, check for transform
1165 matrix singularity added
1166 * Font.jvm.cs: implemetated ISerializable
1167 * Pen.jvm.cs: fixed DashPattern property,
1168 fixed GetNativeObject() dash pattern calculation
1170 2005-10-14 Jordi Mas i Hernandez <jordi@ximian.com>
1172 * SystemColors.cs: Fixes the Win32 light and lightlight colours
1174 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
1176 * SystemColors.cs: Fixes the Win32 system colors including the color
1177 name and the knownColor properties.
1179 2005-10-07 Peter Dennis Bartok <pbartok@novell.com>
1181 * FontFamily.cs: Use Marshal.PtrToStringUni to do the string
1182 conversion, it's less overhead than StringBuilder. (Part of the
1183 bugfix for #74871 and #75534)
1185 * gdipFunctions: Changed signature for GdipGetFamilyName to just
1186 have an IntPtr for the buffer
1188 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
1190 * Graphics.cs, FontFamily.cs: Calling GC.SuppressFinalize from Dispose,
1193 2005-09-29 Peter Dennis Bartok <pbartok@novell.com>
1195 * SystemColor.cs: Added code used to generate properties, updated with
1198 2005-09-29 Peter Dennis Bartok <pbartok@novell.com>
1200 * SystemColor.cs: Make internal names predictable to allow scripted
1201 generation of color table
1203 2005-09-28 Peter Dennis Bartok <pbartok@novell.com>
1205 * Color.cs(UpdateKnownColor): Ensure knownColors exists before trying
1208 2005-09-27 Peter Dennis Bartok <pbartok@novell.com>
1211 - Changed properties to return colors from fields. This allows
1212 updating the colors via reflection, for example from MWF themes.
1213 - Added code to retrieve system colors via Win32 GetSysColors if
1214 running on Win32, this makes us compatible with Microsoft instead
1215 of returning static colors on Win32. Unix platforms still will
1216 use the static colors
1217 * Color.cs: Added UpdateKnownColor() method to allow updating of
1218 the KnownColors array
1220 2005-09-26 Kornél Pál <kornelpal@hotmail.com>
1222 * Graphics.cs: DrawImage: imageAttr can be null. Fixed to pass IntPtr.Zero
1223 when imageAttr is null.
1225 2005-09-26 Vladimir Krasnov <vladimirk@mainsoft.com>
1227 * Brush.jvm.cs: fixed transform methods, createContext
1228 * TextureBrush.jvm.cs: implemetated transform, WrapMode, ctors
1230 2005-09-21 Vladimir Krasnov <vladimirk@mainsoft.com>
1232 * Bitmap.jvm.cs: fixed Clone, InternalSave, Initialize, ctor refactoring, remarks refactoring
1233 * Image.jvm.cs: fixed GetFrameCount, GetThumbnailImage, SelectActiveFrame, remarks refactoring
1234 * PlainImage.jvm.cs: added metadata props, fixed ctor
1235 * PlainImageCollection.jvm.cs: fixed class access
1237 2005-09-21 Jordi Mas i Hernandez <jordi@ximian.com>
1239 * Graphics.cs: Fixes exception type at FromImage method
1241 2005-09-20 Vladimir Krasnov <vladimirk@mainsoft.com>
1243 * Graphics.jvm.cs: bitmap resolution fix in DrawImage
1245 2005-09-20 Vladimir Krasnov <vladimirk@mainsoft.com>
1247 * Graphics.jvm.cs: fixed DrawImage
1249 2005-09-19 Miguel de Icaza <miguel@novell.com>
1251 * Graphics.cs: Removed restriction on the images that can be
1252 loaded. Indexed images *can* be loaded
1254 2005-09-18 Miguel de Icaza <miguel@novell.com>
1256 * Image.cs: introduce a workaround that catches errors on systems
1257 that lack GDI+ as this is being triggered too easily when we
1258 enumerate attributes on loaded classes.
1260 The real bug to fix is #76062.
1262 2005-09-17 Kornél Pál <kornelpal@hotmail.com>
1264 * Image.cs: Implemented FromHbitmap.
1266 2005-09-16 Sebastien Pouliot <sebastien@ximian.com>
1268 * gdipFunctions.cs: Add [SuppressUnmanagedCodeSecurity] attributes so
1269 the JIT won't add demands for UnmanagedCode.
1270 * carbonFunctions.cs: Add [SuppressUnmanagedCodeSecurity] attributes
1271 so the JIT won't add demands for UnmanagedCode on Mac OSX.
1272 * Bitmap.cs: Added LinkDemand for UnmanagedCode on GetHbitmap
1273 (+ overloads) and GetHicon methods.
1274 * Graphics.cs: Added LinkDemand for UnmanagedCode on FromHdcInternal,
1275 FromHwndInternal and ReleaseHdcInternal methods (which are all public
1276 despite their names).
1278 2005-09-15 Konstantin Triger <kostat@mainsoft.com>
1280 * Graphics.jvm.cs: text transform, headless session
1282 2005-09-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1284 * Bitmap.jvm.cs: native object refactoring
1285 * Image.jvm.cs: native object refactoring
1286 * Graphics.jvm.cs: fixed access to image native object
1287 * TextureBrush.jvm.cs: fixed access to image native object
1288 * Added PlainImage.jvm.cs, PlainImageCollection.jvm.cs
1290 2005-09-14 Geoff Norton <gnorton@customerdna.com>
1292 * carbonFunctions.cs: Add GetCGContextForNSView for Cocoa# integration
1293 * Graphics.cs: Check GDIPlus.UseCocoaDrawable for Cocoa# integration
1294 * gdipFunctions.cs: Set UseCocoaDrawable depending on the environment variable MONO_GDIP_USE_COCOA_BACKEND
1296 2005-09-14 Konstantin Triger <kostat@mainsoft.com>
1298 * Graphics.jvm.cs: transform, container, thin pen
1300 2005-09-12 Konstantin Triger <kostat@mainsoft.com>
1302 * AdvancedStroke.jvm.cs: constants for pen fitting calculations
1303 * Pen.jvm.cs: fixing transform, pen fitting
1305 2005-09-12 Konstantin Triger <kostat@mainsoft.com>
1307 * Region.jvm.cs: IsVisible is about intersection
1309 2005-09-12 Gert Driesen <drieseng@users.sourceforge.net>
1311 * ImageConverter.cs: Use default TypeDescriptor implementation of
1314 2005-09-11 Konstantin Triger <kostat@mainsoft.com>
1316 * Graphics.jvm.cs: fixing clipping with rotate transform
1318 2005-09-11 Konstantin Triger <kostat@mainsoft.com>
1320 * Region.jvm.cs: default region is infinite
1322 2005-09-10 Konstantin Triger <kostat@mainsoft.com>
1324 * Graphics.jvm.cs: fixing clipping stuff
1326 2005-09-07 Vladimir Krasnov <vladimirk@mainsoft.com>
1328 * Bitmap.jvm.cs: fixed bitamp accessors
1329 * Image.jvm.cs: fixed image accessors
1331 2005-09-07 Konstantin Triger <kostat@mainsoft.com>
1332 * AdvancedStroke.jvm.cs: fix matrix translate
1333 * Graphics.jvm.cs: fix matrix concatenation order
1335 2005-09-07 Vladimir Krasnov <vladimirk@mainsoft.com>
1337 * Brush.jvm.cs: added transform methods
1339 2005-09-06 Konstantin Triger <kostat@mainsoft.com>
1341 * StrokeFactory.jvm.cs, AdvancedStroke.jvm.cs, Pen.jvm.cs:
1342 implementing fitting, output transform
1343 * Graphics.jvm.cs: fixing DrawXXX, Fill, Clipping, Containers
1345 2005-09-06 Konstantin Triger <kostat@mainsoft.com>
1347 * ColorTranslator.cs: perform case insensitive check
1349 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
1351 * gdipFunctions.cs: define new functions
1352 * Bitmap.cs: fixes image loading and exceptions
1353 * Image.cs: fixes image loading and exceptions
1355 Thanks Kornél Pál for its help
1357 2005-08-30 Vladimir Krasnov <vladimirk@mainsoft.com>
1359 * Brush.jvm.cs: added brush transform field
1361 2005-08-28 Vladimir Krasnov <vladimirk@mainsoft.com>
1363 * Graphics.jvm.cs: fixed .ctor (InterpolationMode)
1365 2005-08-28 Konstantin Triger <kostat@mainsoft.com>
1367 * StrokeFactory.jvm.cs, AdvancedStroke.jvm.cs, Pen.jvm.cs
1368 Graphics.jvm.cs: adjust stroke before widening
1370 2005-08-28 Vladimir Krasnov <vladimirk@mainsoft.com>
1372 * Graphics.jvm.cs: Implemented BeginContainer, EndContainer,
1375 2005-08-26 Gert Driesen <drieseng@users.sourceforge.net>
1377 * PointConverter.cs: Use Int32Converter instead of Int32.Parse. First
1378 convert string to int before checking number of components.
1379 * RectangleConverter.cs: same.
1380 * SizeConverter.cs: same.
1382 2005-08-26 Gert Driesen <drieseng@users.sourceforge.net>
1384 * ColorConverter.cs: Use Int32Converter instead of Int32.Parse to
1385 convert individual components. Special case string containing hex
1386 prefix. Convert components before checking count.
1388 2005-08-25 Marek Safar <marek.safar@seznam.cz>
1390 * gdipFunctions.cs: GetIconInfo new user32 method.
1391 GdipGetDC uses IntPtr.
1393 * gdipStructs.cs: Defined IconInfo struct.
1395 * Graphics.cs: FromImage throws exception when image has an indexed format.
1398 * Icon.cs: Implemented FromHandle, Dispose.
1400 2005-05-24 Michael Hutchinson <m.j.hutchinson@gmail.com>
1402 * ToolboxBitmapAttribute.cs: Implemented retrieving the image
1404 2005-08-23 Vladimir Krasnov <vladimirk@mainsoft.com>
1406 * Graphics.jvm.cs: Fixed ResetTransform, TransfromPoints
1407 Fixed SmoothingMode property
1409 2005-08-23 Jordi Mas i Hernandez <jordi@ximian.com>
1411 * Brushes: Do not create the objects every time that they are requested
1412 as in Pens we create and cache them only once when need it. This also
1413 fixes the Equals method between two objects requested to Brushes
1415 2005-08-22 Jordi Mas i Hernandez <jordi@ximian.com>
1417 * SolidBrush.cs: Fixes Dispose to avoid non-disposing some objects
1418 * Brush.cs Fixes Dispose to avoid non-disposing some objects
1419 * Pen.cs: Fixes Dispose to avoid non-disposing some objects
1420 * Region.cs: Dipose always frees if the resource was allocated
1422 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
1424 * gdipFunctions.cs: Before calling GdiplusShutdown we make that all of handles
1425 from gdiplus have been released
1427 2005-08-18 Vladimir Krasnov <vladimirk@mainsoft.com>
1429 * Pen.jvm.cs: Fixed DashSpacing in createStrokedShape
1430 * Color.cs: Fixed java NativeObject property
1431 * Image.jvm.cs: Fixed Save method
1433 2005-08-16 Andrew Skiba <andrews@mainsoft.com>
1435 * Icon.jvm.cs: match Bitmap internal constructor change
1436 * Image.jvm.cs: use ImageCodecInfo.Clsid as primary format id, not ImageFormat
1437 * Bitmap.jvm.cs: started changes for supporting ImageCodecInfo
1439 2005-08-16 Gert Driesen <drieseng@users.sourceforge.net>
1441 * Color.cs: To match MS.NET, throw ArgumentException instead of
1442 ArgumentOutOfRangeException when color is not between 0 and 255.
1443 * RectangleConverter.cs: Take culture into account when converting
1444 to/from string. Use culture's ListSeparator as separator character.
1446 2005-08-16 Gert Driesen <drieseng@users.sourceforge.net>
1448 * Color.cs: Fixed line endings. Set eol-style to native.
1449 * ColorConverter.cs: Fixed line endings. Set eol-style to native.
1450 * Size.cs: Set eol-style to native.
1451 * SizeF.cs: Use current culture in ToString(), set eol-style to native.
1452 * SizeConverter.cs: Take culture into account when converting to/from
1453 string. Set eol-style to native.
1454 * Point.cs: Fixed line endings. Set eol-style to native.
1455 * PointF.cs: Use current culture in ToString(), set eol-style to native.
1456 * PointConverter.cs: Take culture into account when converting to/from
1457 string. Set eol-style to native.
1458 * ImageFormatConverter.cs: Fixed line endings. Set eol-style to
1460 * RectangleConverter.cs: Fixed line endings. Set eol-style to native.
1462 2005-08-16 Vladimir Krasnov <vladimirk@mainsoft.com>
1464 * Graphics.jvm.cs: Fixed InterpolationMode property
1466 2005-08-15 Vladimir Krasnov <vladimirk@mainsoft.com>
1468 * Graphics.jvm.cs: Fixed DrawImage
1470 2005-08-14 Gert Driesen <drieseng@users.sourceforge.net>
1472 * ColorConverter.cs: Use TextInfo.ListSeparator as separator, as this
1473 appears to be what MS.NET uses.
1475 2005-08-14 Gert Driesen <drieseng@users.sourceforge.net>
1477 * Point.cs: Use invariant culture for converting numbers to string.
1481 2005-08-14 Gert Driesen <drieseng@users.sourceforge.net>
1483 * Color.cs: Fixed ToString for uninitialized color.
1484 * ColorConverter.cs: Support conversion from whitespace-only string to
1485 Color.Empty. Fixed conversion from Color.Empty and known colors to
1488 2005-08-14 Konstantin Triger <kostat@mainsoft.com>
1490 * Graphics.jvm.cs: Initial properties implementation
1492 2005-08-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1494 * Graphics.jvm.cs: DrawImage refactoring
1496 2005-08-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1498 * Graphics.jvm.cs: Implemented PageUnit, PageScale.
1499 Added UpdateInternalTransform
1500 Fixed DrawImage, Transform, ConcatenateTransform
1502 2005-08-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1504 * Icon.jvm.cs: Internal constructor from bitmap
1505 * Added SystemIcons.jvm.cs with implementation of SystemIcons
1507 2005-08-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1509 * Region.jvm.cs: Fixed GetBounds, IsVisible, IsEmpty, IsInfinite, Equals
1510 (all methods that use Graphics object)
1512 2005-08-11 Konstantin Triger <kostat@mainsoft.com>
1514 * Graphics.jvm.cs: Refactoring
1516 2005-08-11 Konstantin Triger <kostat@mainsoft.com>
1518 * Graphics.jvm.cs: Fixed Clear, Refactoring
1520 2005-08-11 Konstantin Triger <kostat@mainsoft.com>
1522 * Graphics.jvm.cs: Fixed FillClosedCurve
1524 2005-08-10 Zoltan Varga <vargaz@freemail.hu>
1526 * Rectangle.cs (Intersect): Return a non-empty rectangle if the two
1527 rectangles touch each other.
1529 2005-08-09 Konstantin Triger <kostat@mainsoft.com>
1531 * Graphics.jvm.cs: Fixed DrawCurve.
1533 2005-08-09 Konstantin Triger <kostat@mainsoft.com>
1535 * StrokeFactory.jvm.cs: use correct stroke
1537 2005-08-09 Konstantin Triger <kostat@mainsoft.com>
1539 * Added AdvancedStoke.jvm.cs and StrokeFactory.jvm.cs
1542 2005-08-09 Andrew Skiba <andrews@mainsoft.com>
1544 * FontConverter.cs: exclude not implemented destructor from TARGET_JVM
1546 2005-08-09 Andrew Skiba <andrews@mainsoft.com>
1548 * ColorConverter.cs, ColorTranslator.cs: fixes to pass tests
1551 2005-08-08 Konstantin Triger <kostat@mainsoft.com>
1553 * Graphics.jvm.cs: Refactoring
1555 2005-08-08 Vladimir Krasnov <vladimirk@mainsoft.com>
1557 * Graphics.jvm.cs: Fixed DrawPolygon
1559 2005-08-08 Konstantin Triger <kostat@mainsoft.com>
1561 * Graphics.jvm.cs: Refactoring
1562 * Pen.jvm.cs: setting awt.Stroke as a base
1564 2005-08-07 Konstantin Triger <kostat@mainsoft.com>
1566 * Graphics.jvm.cs: Refactoring
1568 2005-08-07 Vladimir Krasnov <vladimirk@mainsoft.com>
1570 * Graphics.jvm.cs: Fixed DrawLines, DrawPolygon to use GraphicsPath
1572 2005-08-07 Andrew Skiba <andrews@mainsoft.com>
1574 * Rectangle.cs: Intersect fixed
1575 * RectandleF.cs: Intersect and Inflate fixed
1577 2005-08-07 Andrew Skiba <andrews@mainsoft.com>
1579 * Point.cs: Produce same ToString result as dotnet
1581 2005-08-07 Andrew Skiba <andrews@mainsoft.com>
1583 * Color.cs: GetHashCode is affected by Name, too
1585 2005-08-07 Vladimir Krasnov <vladimirk@mainsoft.com>
1587 * Pen.jvm.cs: Fixed ctor, LineCap, SetLineCap
1589 2005-08-07 Vladimir Krasnov <vladimirk@mainsoft.com>
1591 * Graphics.jvm.cs: Fixed DrawLines, DrawPolygon
1593 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1595 * SolidBrush.jvm.cs: fix a typo
1597 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1599 * Image.jvm.cs, StringFormat.jvm.cs, FontFamily.jvm.cs, Bitmap.jvm.cs,
1600 Pen.jvm.cs, Region.jvm.cs, Brush.jvm.cs, Graphics.jvm.cs, TextureBrush.jvm.cs,
1601 Font.jvm.cs: Added TARGET_JVM implementation
1603 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1605 * Rectangle.cs, RectangleF.cs: TARGET_JVM - Add NativeObect property
1607 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1609 * BasicShape.jvm.cs: Added TARGET_JVM specific class
1611 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1613 * Icon.jvm.cs, SystemColors.jvm.cs: Added TARGET_JVM implementations
1615 2005-08-03 Andrew Skiba <andrews@mainsoft.com>
1617 * ColorTranslator.cs: (GH merge) recognise HTML system colors
1619 2005-08-02 Andrew Skiba <andrews@mainsoft.com>
1621 * SolidBrush.jvm.cs: added TARGET_JVM implementation of this class
1623 2005-08-02 Andrew Skiba <andrews@mainsoft.com>
1625 * Color.cs: TARGET_JVM - NativeObject property
1627 2005-07-27 Andrew Skiba <andrews@mainsoft.com>
1629 * Color.cs: Fixes equality operators, change isXXXcolor booleans into flags enum.
1631 2005-07-27 Jordi Mas i Hernandez <jordi@ximian.com>
1633 * RectangleF.cs: Fixes IsEmpty logic
1635 2005-06-23 Jordi Mas i Hernandez <jordi@ximian.com>
1637 * Graphics.cs: implements FromHwndInternal
1640 2005-06-13 Peter Bartok <pbartok@novell.com>
1642 * Icon.cs(ToBitmap): If the icon is not 32bits, create the bitmap
1643 through an intermediary step, which turns it into a 32bit version.
1646 2005-06-13 Kornél Pál <kornelpal@hotmail.com>
1648 * ComIStreamMarshaler.cs: Dispose releases managed objects as well,
1649 removed some unnecessary code
1650 * ComIStreamWrapper.cs: Reworked Seek method to proper support of
1651 positions beyond the size of stream
1653 2005-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1655 * Font.cs: fix platform checks.
1657 2005-06-08 Jordi Mas i Hernandez <jordi@ximian.com>
1660 - Fixes is empty method IsEmpty logic
1661 - Fixes Contains method logic
1662 - Fixes IntersectsWith logic
1665 - Fixes is empty method IsEmpty logic
1666 - Fixes Contains method logic
1667 - Fixes IntersectsWith logic
1669 2005-05-28 Kornél Pál <kornelpal@hotmail.com>
1671 * ComIStreamMarshaler.cs: GC.SuppressFinalize(this) is not called in
1672 destructors. Some methods renamed. Removed unnecessary variables.
1674 2005-05-25 Jonathan Gilbert <logic@deltaq.org>
1676 * Image.cs: Added retrieveGDIPalette () and storeGDIPalette ()
1677 and modified the Palette property to call them. This non-
1678 persistent behaviour was discovered by trial and error with
1679 Microsoft's implementation. In fact, the Palette property
1680 does not behave like a property at all! It is the only way an
1681 instance of System.Drawing.Imaging.ColorPalette can be created,
1682 and it reflects a backing store that is only updated when the
1683 property 'set' method is called. Also updated Clone () since
1684 the palette is no longer cached at image load time.
1685 * Image.cs: Added IsIndexedPixelFormat () in the same vein as
1686 Image::IsAlphaPixelFormat and Image::IsCanonicalPixelFormat.
1687 As such a function is not listed in MSDN nor given in
1688 Microsoft's implementation, I have made it a private function
1689 within the class that uses it.
1691 2005-05-24 Kornél Pál <kornelpal@hotmail.com>
1693 * Graphics.cs: Revised DrawString methods
1695 2005-03-22 Peter Bartok <pbartok@novell.com>
1697 * Graphics.cs: Fixed bug #74762, DrawString was crashing on s.Length
1700 2005-05-20 Kornél Pál <kornelpal@hotmail.com>
1702 * Image.cs: Uses MemoryStream wrapping on all platforms if needed
1703 * gdipFunctions.cs: Modified conditional compilation syntax
1704 * ComIStreamWrapper.cs: Modified conditional compilation syntax
1705 * ComIStreamMarshaler.cs: Modified conditional compilation syntax
1707 2005-05-18 Marek Safar <marek.safar@seznam.cz>
1709 * Bitmap.cs: Add null check into ctor.
1711 2005-05-16 Jordi Mas i Hernandez <jordi@ximian.com> <kornelpal@hotmail.com>
1713 * gdipFunctions.cs: Kornél Pál's IStream bug fixing
1714 * ComIStreamWrapper.cs: Kornél Pál's IStream bug fixing
1715 * ComIStreamMarshaler.cs: Kornél Pál's IStream bug fixing
1717 2005-05-14 Jordi Mas i Hernandez <jordi@ximian.com> <kornelpal@hotmail.com>
1719 * Bitmap.cs: Kornél Pál's Bitmap class ctor and MakeTransparent leak fixes
1721 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
1723 * gdipFunctions.cs: add GdipLoadImageFromStream and GdipSaveImageToStream
1724 * ComIStreamWrapper.cs: Kornel Pal COM Stream for Win32
1725 * ComIStreamMarshaler.cs: Kornel Pal COM Stream for Win32
1726 * Image.cs: uses new Win32 Stream functions when need it
1728 2005-05-10 Juraj Skripsky <juraj@hotfeet.ch>
1730 * Color.cs: Fix GetSaturation() again and remove
1733 2005-05-10 Juraj Skripsky <juraj@hotfeet.ch>
1735 * Color.cs: New, correct implementations for GetHue(),
1736 GetBrightness() and GetSaturation().
1738 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
1740 * gdipFunctions.cs: Use PlatformID.Unix under NET_2_0.
1741 * Graphics.cs: Use PlatformID.Unix under NET_2_0.
1742 * Image.cs: Use PlatformID.Unix under NET_2_0.
1744 2005-05-05 Miguel de Icaza <miguel@novell.com>
1746 * Bitmap.cs, Icon.cs (constructor): Use
1747 GetManifestResourceStream(Type,string) in the constructor that
1750 2005-04-27 Lluis Sanchez Gual <lluis@novell.com>
1752 * PointF.cs: Make serialization compatible with MS.
1754 2005-04-10 Geoff Norton <gnorton@customerdna.com>
1758 Use CGContextSynchronize instead of CGContextFlush. This saves
1759 on average 20000 ticks per drawing operation.
1761 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
1763 * Color.cs: take into account the name color in == and != operators
1764 * Font.cs: Use Equals instead of == to compare the family name
1766 - Removes generic fontfamilies cache (done at libgdiplus level)
1767 - Fixes Equals method
1769 2005-03-30 Jordi Mas i Hernandez <jordi@ximian.com>
1771 * Pen.cs: remove locks. They are done at gdiplus level
1772 * Brush.cs: remove locks. They are done at gdiplus level
1773 * Image.cs: remove locks. They are done at gdiplus level
1775 2005-03-30 Rogério Pereira Araújo <rogerio.araujo@gmail.com>
1777 * Icon.cs: Finished Icon(Type, String) ctor
1779 2005-03-23 Jordi Mas i Hernandez <jordi@ximian.com>
1781 * gdipFunctions.cs: fixes GdipGetImagePalette signature
1782 * Image.cs: Implements Palette property using gdiplus
1784 2005-03-17 Peter Bartok <pbartok@novell.com>
1787 - Changed P/Invoke signature for GdipLoadImageFromDelegate_linux()
1788 method, now includes a get header delegate
1789 - Added StreamGetHeaderImpl method, to allow libgdiplus to determine
1790 the image type even on non-seekable streams
1791 - Fixed StreamGetBytesImpl to consider the bytes already retrieved
1792 via StreamGetHeaderImpl
1793 * Image.cs: Fixed call to GdipLoadImageFromDelegate_linux() to include
1794 the new StreamGetHeader delegate
1796 2005-03-15 Jordi Mas i Hernandez <jordi@ximian.com>
1798 * Pen.cs: Fixes dispose method to allow to be called multiple times
1799 * Graphics.cs: matrix are saved and restored at gdiplus level
1801 2005-02-24 Geoff Norton <gnorton@customerdna.com>
1803 * gdipFunctions.cs: Cache the delegates in the GdiPlusStreamHelper
1804 so they dont get garbage collected before use.
1806 2005-02-11 Peter Bartok <pbartok@novell.com>
1808 * gdipFunctions.cs: Fixed prototype to match previous checkin
1810 2005-02-11 Peter Bartok <pbartok@novell.com>
1812 * Graphics.cs (FromImage): Fixed type of graphics to be IntPtr (since
1813 it really is a pointer)
1815 2005-02-10 Geoff Norton <gnorton@customerdna.com>
1817 * Icon.cs: Implement GetObjectData ()
1818 * Image.cs: Implement GetObjectData ()
1820 2005-02-09 Geoff Norton <gnorton@customerdna.com>
1822 * Icon.cs: Implement deserializer
1823 * Bitmap.cs: Implement deserializer
1825 2005-02-06 Ben Maurer <bmaurer@ximian.com>
1827 * Brushes.cs: Kill the static ctor here, it has tons of code bloat.
1829 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
1831 * Region.cs: revert Jackson's patch and fix this at libgdiplus level
1833 2005-02-02 Jackson Harper <jackson@ximian.com>
1835 * Region.cs: The default region constructor creates and infinite
1836 region, not an empty one.
1838 2005-01-27 Peter Bartok <pbartok@novell.com>
1840 * Color.cs (GetBrightness, GetSaturation, GetHue): Fixed calculations
1841 of HSV numbers. Previous implementation returned wrong numbers and NaN
1842 on achromatic colors
1844 2005-01-27 Lluis Sanchez Gual <lluis@novell.com>
1846 * PointConverter.cs, ImageFormatConverter.cs, RectangleConverter.cs,
1847 SizeConverter.cs, ColorConverter.cs, FontConverter.cs
1848 : Implemented support for InstanceDescriptor.
1850 2005-01-26 Peter Bartok <pbartok@novell.com>
1852 * Icon.cs (ToBitmap): Now sets transparency in according to
1855 2004-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
1857 * gdipFunctions.cs: Fixes GdipGet* function signatures
1858 * FontFamily.cs: Fixes GdipGet* function calls
1859 * Font.cs: Fixes ToString method
1861 2004-01-17 Jordi Mas i Hernandez <jordi@ximian.com>
1863 * Graphics.cs: calls XCloseDisplay on X11 when need it
1864 * gdipFunctions.cs: calls XCloseDisplay on X11 when need it
1866 2004-12-27 Zoltan Varga <vargaz@freemail.hu>
1868 * gdipFunctions.cs Image.cs: Fix marshalling of arrays on amd64.
1870 2004-12-16 Peter Bartok <pbartok@novell.com>
1872 * Graphics.cs (GetHdc): Removed Wine assumptions, the handle is now
1873 equivalent to the gdi+ native object
1875 * Font.cs (GetHfont): Removed Wine assumptions, the handle is now
1876 equivalent to the gdi+ native object
1878 2004-12-09 Geoff Norton <gnorton@customerdna.com>
1880 * carbonFunctions.cs: New carbon functions/structures
1881 * Graphics.cs: Update FromHwnd to work without being in the carbon eventing loop
1883 2004-12-08 Geoff Norton <gnorton@customerdna.com>
1885 * Graphics.cs: Drop FromHwndWithSize; we can't change the public API
1886 Add Quartz support to FromHwnd marshalling a struct back with the ptr/width/height.
1888 2004-12-07 Geoff Norton <gnorton@customerdna.com>
1890 * Graphics.cs: Add FromHwndWithSize for the MWF/Quartz backend
1891 * gdipFunctions.cs: Add the quartz dllimport into libgdiplus
1893 2004-12-06 Miguel de Icaza <miguel@ximian.com>
1895 * FontFamily.cs: This one is static.
1897 2004-11-25 Ravindra <rkumar@novell.com>
1899 * gdipFunctions.cs (GdipCreateFontFromLogfontA): Changed return
1900 type from int to Status type.
1902 2004-11-25 Marek Safar <marek.safar@seznam.cz>
1904 * Image.cs: Add CheckStatus to SaveAdd.
1906 2004-11-22 Ravindra <rkumar@novell.com>
1908 * Graphics.cs: Fixed null values handling in all overloads of
1909 MeasureString method.
1911 2004-11-18 Ravindra <rkumar@novell.com>
1913 * gdipFunctions.cs: Removed the .so extension from a DllImport
1916 2004-10-27 Jordi Mas i Hernandez <jordi@ximian.com>
1918 * gdipFunctions.cs: calls GdiplusShutdown to propery signal GDI+
1921 2004-11-03 Miguel de Icaza <miguel@ximian.com>
1923 * TextureBrush.cs (Clone): While cloning, it is not enough to let
1924 GDIPlus clone the underlying data, we must alos clone the managed
1927 * Pen.cs (Dispose): Set the nativeObject to IntPtr.Zero to catch
1928 errors in the future, set the lock on the object before doing any
1929 other tests, not after.
1931 (Clone): While cloning, it is not enough to let
1932 GDIPlus clone the underlying data, we must alos clone the managed
1935 * Brush.cs (Dispose): Set the nativeObject to IntPtr.Zero to catch
1936 errors in the future.
1938 Set the lock in the object before checkign disposed.
1940 * SolidBrush.cs (Clone): While cloning, it is not enough to let
1941 GDIPlus clone the underlying data, we must alos clone the managed
1944 (Dispose): Set the nativeObject to IntPtr.Zero to catch
1945 errors in the future.
1947 2004-10-28 Ravindra <rkumar@novell.com>
1949 * gdipFunctions.cs: Added checks for null stream in the
1950 StreamHelper internal class.
1951 * Icon.cs: Removed an ugly hack that used temp files in
1952 ToBitmap () method. We use MemoryStream instead.
1954 2004-10-27 Jordi Mas i Hernandez <jordi@ximian.com>
1956 * Font.cs: fixes bug 66533
1958 2004-10-22 Jordi Mas i Hernandez <jordi@ximian.com>
1960 * Bitmap.cs, Font.cs FontFamily.cs Graphics.cs Region.cs
1961 SolidBrush.cs StringFormat.cs TextureBrush.cs: removes the
1962 lock operations after conversation with Miguel. Do not really
1965 2004-10-22 Jordi Mas i Hernandez <jordi@ximian.com>
1967 * Bitmap.cs: Fixes MakeTransparent problem with 24bbps
1969 2004-10-19 Jordi Mas i Hernandez <jordi@ximian.com>
1971 * Bitmap.cs: Fixes MakeTransparent method
1973 2004-10-13 Ravindra <rkumar@novell.com>
1975 * Graphics.cs: Moved the initialization of 'use_x_drawable'
1976 member out of private constructor to class initialization.
1977 So that, we get it right even if Graphics is not instantiated.
1978 This fixes the problem we face (otherwise) when we make first
1979 call to Graphics.FromHwnd () method.
1981 2004-10-08 Ravindra <rkumar@novell.com>
1983 * Image.cs: Suppress finalization in Dispose () method.
1985 2004-10-04 Ravindra <rkumar@novell.com>
1987 * gdipFunctioncs.cs: Fix from Alois for bug #67383.
1989 2004-09-29 Jackson Harper <jackson@ximian.com>
1991 * Graphics.cs: Use FromHdcInternal to set the X display
1992 handle. Add a flag to check if we are on unix so we aren't calling
1993 Environment.OSVersion.Platform all the time. Mad props to Peter
1996 2004-09-17 Marek Safar <marek.safar@seznam.cz>
1998 * Font.cs (FromHfont, ToHfont): Fixed windows implementation.
1999 ToLogFont: Implemented.
2001 * gdipFunctions.cs: GdipCreateFromHDC changed int to IntPtr to
2003 GdipCreateFontFromLogfontA: A new extern call.
2005 2004-09-13 Ravindra <rkumar@novell.com>
2007 * Graphics.cs: MSDN says that using image width and height gives
2008 better performance, hence we are using image width and height to
2009 avoid autoscaling in DrawImageUnscaled.
2011 2004-09-10 Ravindra <rkumar@novell.com>
2013 * Graphics.cs: Implemented DrawIcon methods and fixed
2014 DrawImageUnscaled method implementation.
2016 2004-08-21 Jackson Harper <jackson@ximian.com>
2018 * ImageAnimator.cs: Run animator as a background thread so we do
2021 2004-08-21 Ravindra <rkumar@novell.com>
2023 * gdipFunctions.cs: Modified exception message to include the case
2024 of missing required libraries for different formats.
2026 2004-08-10 Jackson Harper <jackson@ximian.com>
2028 * SystemColors.cs: Make Highlight colour match colour from windows
2029 classic color scheme.
2031 2004-07-30 Ravindra <rkumar@novell.com>
2033 * Font.cs: Fixed Height property implementation and implemented
2034 GetHeight method and its overloads.
2036 2004-07-29 Sanjay Gupta <gsanjay@novell.com>
2038 * gdipFunctions.cs: Corrected signature of GdipGetPropertyItem
2039 P/Invoke function for Image.
2040 * Image.cs: Implemented GetPropertyItem() and SetPropertyItem() method.
2042 2004-07-29 Sanjay Gupta <gsanjay@novell.com>
2044 * gdipFunctions.cs: Corrected signatures of GdipGetPropertySize and
2045 GdipGetAllPropertyItems P/Invoke function for Image.
2046 * gdipStructs.cs: Corrected MarshalTo() method of GdipPropertyItem.
2047 * Image.cs: Corrected implementation of PropertyItems property.
2049 2004-07-29 Sanjay Gupta <gsanjay@novell.com>
2051 * gdipFunctions.cs: Corrected signature of GdipGetPropertyIdList
2052 P/Invoke function for Image.
2053 * Image.cs: Changed implementation of PropertyIdList property.
2055 2004-07-28 Sanjay Gupta <gsanjay@novell.com>
2057 * gdipStructs.cs: Implementing PropertyItem property in Image.cs.
2058 * Image.cs: Implemented PropertyItems and PropertyIdList properties.
2060 2004-07-21 Ravindra <rkumar@novell.com>
2062 * gdipFunctions.cs: Corrected signatures of GdipPathIterCopyData and
2063 GdipPathIterEnumerate P/Invoke functions for GraphicsPathIterator.
2065 2004-07-21 Jordi Mas i Hernandez <jordi@ximian.com>
2067 * Graphics.cs: fixes MeasureCharacterRanges function. It was completely wrong.
2068 * StringFormat.cs: MeasurableCharacterRanges should be passed to GDI+
2069 * gdipFunctions.cs: new GDI function calls
2071 2004-07-16 Ravindra <rkumar@novell.com>
2073 * gdipFunctions.cs: Added P/Invokes for GraphicsPathIterator.
2075 2004-07-15 Ravindra <rkumar@novell.com>
2077 * gdipFunctions.cs: Removed GdipGetPathData P/Invoke. It is redundant.
2079 2004-07-13 Ravindra <rkumar@novell.com>
2081 * gdipFunctions.cs: Removed GdipGetPathGradientRectI P/Invoke.
2082 This was redundant. It was kept in previous checkin to avoid
2085 2004-07-13 Ravindra <rkumar@novell.com>
2087 * gdipFunctions.cs: Added some P/Invokes for PathGradientBrush.
2089 2004-07-09 Peter Bartok <pbartok@novell.com>
2090 * Graphics.cs: Added support required for new managed SWF library
2091 * gdipFunctions.cs: Added XOpenDisplay definition/import
2093 2004-07-02 Jordi Mas i Hernandez <jordi@ximian.com>
2095 * gdipFunctions.cs: fixes bug 61050
2097 2004-06-24 Sanjay Gupta <gsanjay@novell.com>
2099 * ImageAnimator.cs: Rewrote complete implementation.
2101 2004-06-24 Sanjay Gupta <gsanjay@novell.com>
2103 * gdipFunctions.cs: Corrected issue in GdiPlusStreamHelper class.
2104 If read function was called after seek function call, the
2105 implementation was returning data from bytes already peeked and
2106 not from the new position in stream, which we have seeked.
2108 2004-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
2110 * Graphics.cs: added MeasureString wrappers
2112 2004-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
2114 * Graphics.cs, gdipFunctions.cs: define and use GdipSetVisibleClip_linux
2116 2004-06-20 Jordi Mas i Hernandez <jordi@ximian.com>
2118 * Graphics.cs, gdipFunctions.cs: added missing clip function wrappers
2120 2004-06-18 Ravindra <rkumar@novell.com>
2122 * FontConverter.cs: Implemented the missing functions.
2123 * Font.cs: Added some notes.
2125 2004-06-16 Sanjay Gupta <gsanjay@novell.com>
2127 * gdipFunctions.cs: Modified Function signature for
2128 GdipSaveImageToDelegate_linux() method for saving tiff images
2130 * image.cs: Modified function call GdipSaveImageToDelegate_linux()
2133 2004-06-15 Sanjay Gupta <gsanjay@novell.com>
2135 * gdipFunctions.cs: Added delegate and StreamHelper functions, Close
2136 and Size, required by TIFFCodec. Modifed Function signature for
2137 GdipLoadImageFromDelegate_linux() method.
2138 * image.cs: Modified function call GdipLoadImageFromDelegate_linux()
2141 2004-06-11 Ravindra <rkumar@novell.com>
2143 * gdipFunctions.cs: (GdipCreateSolidFill): Changed one argument
2144 from out int to out IntPtr.
2145 * SolidBrush.cs: Same.
2147 2004-06-10 Gert Driesen <drieseng@users.sourceforge.net>
2149 * Image.cs: API signature fixes, meaning DisposeResources is now
2150 private and marked InitFromStream internal
2152 2004-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
2154 * FontFamily.cs: simplifies object destruction and fixes
2156 2004-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
2158 * FontFamily.cs: added destructor
2159 * Graphics.cs: added destructor to stop leaking, remove debugging code
2162 2004-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
2164 * gdipFunctions.cs: added GdipSaveAddImage
2165 * Image.cs: added SaveAdd methods
2167 2004-06-02 Peter Bartok <pbartok@novell.com>
2168 * gdipFunctions.cs: Fixed reference to wrong DLLs for GetDC/ReleaseDC
2169 (This fixes bug #59479)
2171 2004-06-01 Gert Driesen <drieseng@users.sourceforge.net>
2173 * Font.cs: Added missing Browsable attribute on SizeInPoints.
2174 * Region.cs: Removed extra ComVisible attribute from Clone().
2176 2004-06-01 Ravindra <rkumar@novell.com>
2178 * Pen.cs: Added a note on Dispose method.
2179 * Brush.cs: Fixed Dispose method.
2180 * SolidBrush.cs: Fixed Dispose method.
2182 2004-05-28 Ravindra <rkumar@novell.com>
2184 * gdipFunctions.cs: Added some P/Invoke calls for Draw/Fill
2186 * Graphics.cs: Implemented Dispose method and changed Draw/Fill
2187 rectangles implementation (This is basically done to avoid lots
2188 of brush and pen setup happening in libgdiplus.)
2190 2004-05-27 Ravindra <rkumar@novell.com>
2192 * Color.cs: Changed Color.Green to what MS.NET has. Conforming to MS.
2194 2004-05-26 Sanjay Gupta <gsanjay@novell.com>
2196 * ImageFormatConverter.cs: Fixed issues discovered from nunit
2199 2004-05-26 Ravindra <rkumar@novell.com>
2201 * Color.cs: Corrected Color.Green property.
2203 2004-05-24 Jordi Mas i Hernandez <jordi@ximian.com>
2204 * gdipStructs.cs: remove unnecessary code, since bug 57706 is fixed
2206 2004-05-20 Sanjay Gupta <gsanjay@novell.com>
2208 * Icon.cs: Fixed issue with size property.
2210 2004-05-18 Ravindra <rkumar@novell.com>
2212 * Pen.cs: Added value checks in DashPattern and CompoundArray
2215 2004-05-16 Gert Driesen <drieseng@users.sourceforge.net>
2217 * Graphics.cs: fixed warning
2218 * ImageAnimator.cs: fixed warning
2219 * FontConverter.cs: fixed public API
2221 2004-05-14 Vladimir Vukicevic <vladimir@pobox.com>
2223 * gdipFunctions.cs: Fixed prototype for
2224 GdipGetEncoderParameterList
2226 * Image.cs: Reworked Save functions to handle EncoderParameters.
2227 Implemented GetEncoderParameterList
2228 Also removed unused setGDIPalette internal method.
2230 2004-05-14 Peter Bartok <pbartok@novell.com>
2231 * StringFormat.cs: Added CharacterRange handling
2232 * Graphics.cs: Implemented MeasureCharacterRanges method
2234 2004-05-14 Peter Bartok <pbartok@novell.com>
2235 * Graphics.cs: Added error check
2237 2004-05-14 Duncan Mak <duncan@ximian.com>
2238 * gdipFunctions.cs (GdipCreatePath2I, GdipAddPathPieI):
2239 (GdipFlattenPath, GdipWarpPath, GdipWidenPath):
2240 (GdipGetPathWorldBounds, GdipGetPathWorldBoundsI): Imported.
2242 2004-05-14 Sanjay Gupta <gsanjay@novell.com>
2243 * ImageFormatConverter.cs: Modified implementation of ConvertFrom() method.
2245 2004-05-13 Sanjay Gupta <gsanjay@novell.com>
2246 * ImageFormatConverter.cs: Implemented GetStandardValuesSupported () method.
2248 2004-05-13 Peter Bartok <pbartok@novell.com>
2249 * Bitmap.cs: Fixed bug #52868, Bitmap(Image, Size) did not
2252 2004-05-12 Peter Bartok <pbartok@novell.com>
2253 * Image.cs: Implemented GetThumbnailImage
2255 2004-05-13 Sanjay Gupta <gsanjay@novell.com>
2256 * Graphics.cs: Made method DrawRectangle (Pen , RectangleF) and
2257 FromXDrawable(IntPtr, IntPtr) internal.
2259 2004-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
2260 * Color.cs: work for API compatibilty: private date, todos
2261 * Font.cs: work for API compatibilty: private date, todos
2262 * FontFamily.cs: work for API compatibilty: private date, todos
2263 * Graphics.cs: work for API compatibilty: private date, todos
2264 * Icon.cs: work for API compatibilty: private date, todos
2265 * Image.cs: work for API compatibilty: private date, todos
2266 * ImageAnimator.cs: work for API compatibilty: private date, todos
2267 * Point.cs: work for API compatibilty: private date, todos
2268 * PointF.cs: work for API compatibilty: private date, todos
2269 * Rectangle.cs: work for API compatibilty: private date, todos
2270 * RectangleF.cs: work for API compatibilty: private date, todos
2271 * Region.cs: work for API compatibilty: private date, todos
2272 * Size.cs: work for API compatibilty: private date, todos
2273 * SizeF.cs: work for API compatibilty: private date, todos
2274 * SolidBrush.cs: work for API compatibilty: private date, todos
2275 * StringFormat.cs: work for API compatibilty: private date, todos
2276 * SystemPens.cs: work for API compatibilty: private date, todos
2277 * TextureBrush.cs: work for API compatibilty: private date, todos
2278 * gdipStructs.cs: work for API compatibilty: private date, todos
2280 2004-05-12 Ravindra <rkumar@novell.com>
2282 * Bitmap.cs, Font.cs, FontConverter.cs, Graphics.cs, Icon.cs, Image.cs
2283 ImageAnimator.cs, Point.cs, PointF.cs, Rectangle.cs, RectangleF.cs
2284 Region.cs, Size.cs, SizeF.cs, ToolboxBitmapAttribute.cs, gdipFunctions.cs:
2285 Added missing attributes and some coding style fixes.
2286 * Pen.cs: Implementing CustomStartCap and CustomEndCap properties and
2289 2004-05-11 Sanjay Gupta <gsanjay@novell.com>
2291 * ImageAnimator.cs: Implemented first version.
2293 2004-05-11 Ravindra <rkumar@novell.com>
2295 * gdipFunctions.cs: Implementing AdjustableArrowCap. Added P/Invokes
2298 2004-05-10 Ravindra <rkumar@novell.com>
2300 * gdipFunctions.cs: Implementing CustomLineCap. Added P/Invokes
2301 for the same. Added few related P/Invokes for Pen also.
2303 2004-05-06 Sanjay Gupta <gsanjay@novell.com>
2305 * ImageAnimator.cs: Corrected implementation of CanAnimate() method.
2307 2004-05-06 Ravindra <rkumar@novell.com>
2309 * RectangleConverter.cs: Implemented GetProperties () method.
2310 * SizeConverter.cs: Implemented GetProperties () method.
2311 * PointConverter.cs: Implemented GetProperties () method.
2312 * FontConverter.cs: Implemented some of the methods.
2314 2004-05-06 Ravindra <rkumar@novell.com>
2316 * Color.cs: Fixed Name property.
2317 * ColorTranslator.cs: Fixed the existing methods and implemented
2318 the missing methods.
2319 * ColorConverter.cs: Fixed the existing methods and implemented
2320 the missing methods. Also, fixed coding style.
2322 2004-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
2323 * Bitmap.cs: Let GDI+ calculate the strides, as it does in Win32.
2325 2004-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
2326 * Image.cs: raw_format should be handled by GDI+
2327 * Bitmap.cs: raw_format should be handled by GDI+
2329 2004-05-04 Ravindra <rkumar@novell.com>
2331 * Pen.cs: Modified exception message. Fixed Transform, DashPattern,
2332 and DashCap properties. Implementing CoumpoundArray, StartCap, EndCap
2333 properties and SetLineCap method. In constructors use IntPtr instead
2335 * SolidBrush.cs: Modified exception message.
2336 * TextureBrush.cs: Fixed Transform property.
2337 * gdipFunctions.cs: Fixed P/Invokes for Pen.cs, TextureBrush.cs and
2338 LinearGradientBrush.cs.
2340 2004-04-30 Sanjay Gupta <gsanjay@novell.com>
2342 * Image.cs: Implemented FrameDimensionsList property.
2344 2004-04-30 Ravindra <rkumar@novell.com>
2346 * gdipFunctions.cs: Added few more P/Invoke calls for
2347 lineargradient brush and added one case statement in
2350 2004-04-30 Jordi Mas i Hernandez <jordi@ximian.com>
2352 * Image.cs: takes into account MemoryBmp format when saving
2354 2004-04-30 Ravindra <rkumar@novell.com>
2356 * StringFormat.cs: Added checks for status.
2358 2004-04-30 Sanjay Gupta <gsanjay@novell.com>
2360 * Image.cs: Removed calls which passes byte[] for Guid parameter.
2361 * gdipFunctions.cs: Removed unwanted unix specific function calls.
2363 2004-04-30 Ravindra <rkumar@novell.com>
2365 * Graphics.cs: Added checks for status.
2366 * Image.cs: Added a check for status.
2367 * FontFamily.cs: Added checks for status.
2369 2004-04-29 Peter Bartok <pbartok@novell.com>
2371 * Brushes.cs: Fixed bug #52695. No longer creates a new
2372 brush for every request and behaves Microsoft compatible
2374 2004-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
2376 * Image.cs: fixes Save method. It now retrieves the proper encoder and uses
2377 its ClsID instead of the formatID (as GDI+ expects)
2379 2004-04-29 Ravindra <rkumar@novell.com>
2381 * Font.cs: Added checks for status.
2382 * Bitmap.cs: Added checks for status.
2383 * Pen.cs: Added checks for status.
2385 2004-04-28 Sanjay Gupta <gsanjay@novell.com>
2387 * ColorTranslator.cs, StringFormat.cs, SystemIcons.cs, ToolBoxBitmapAttributes.cs:
2388 Converted to unix format from dos format.
2390 2004-04-28 Sanjay Gupta <gsanjay@novell.com>
2392 * ImageConverter.cs: Implemented GetProperties() and GetPropertiesSupported () methods.
2394 2004-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
2396 * gdipStructs.cs: added GdipImageCodecInfo struct
2398 2004-04-28 Sanjay Gupta <gsanjay@novell.com>
2400 * ImageFormatConverter.cs: Corrected ConvertFrom method.
2402 2004-04-27 Sanjay Gupta <gsanjay@novell.com>
2404 * ImageConverter.cs: Added exception message.
2405 * IconConverter.cs: Added exception message.
2406 * ImageFormatConverter.cs: Implemented first version.
2408 2004-04-27 Sanjay Gupta <gsanjay@novell.com>
2410 * ImageConverter.cs: Implemented first version.
2412 2004-04-27 Sanjay Gupta <gsanjay@novell.com>
2414 * IconConverter.cs: Implemented first version.
2416 2004-04-26 Sanjay Gupta <gsanjay@novell.com>
2418 * Image.cs: Corrected implementation of Property RawFormat.
2419 * gdipFunctions.cs: Corrected declaration of GdipGetImageRawFormat.
2421 2004-04-25 Sanjay Gupta <gsanjay@novell.com>
2423 * Bitmap.cs: Resolved a compile time error.
2424 * Image.cs: Changed the implementation of few methods to progress
2425 with ImageAnimator class.
2426 * gdipFunctions.cs: Added few linux only function calls.
2427 * Icon.cs: Removed unused variable from code.
2429 2004-04-25 Vladimir Vukicevic <vladimir@pobox.com>
2431 * Graphics.cs, gdipFunctions.cs: Added CreateFromXDrawable_linux.
2433 2004-04-23 Vladimir Vukicevic <vladimir@pobox.com>
2435 * Commited patch from pcgod@gmx.net (Bnehamin Jemlich) for
2436 serialization for Bitmaps. (Bugzilla #52568)
2438 2004-04-23 Ravindra <rkumar@novell.com>
2440 * RectangleConverter.cs: Fixed ConvertTo () method.
2441 * SizeConverter.cs: Fixed ConvertTo () method.
2442 * PointConverter.cs: Fixed ConvertTo () method.
2444 2004-04-23 Sanjay Gupta <gsanjay@novell.com>
2445 * ImageAnimator.cs: Implemented CanAnimate() method.
2447 2004-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
2448 * Image.cs: added RotateFlip and RemovePropertyItem calls
2450 2004-04-22 Ravindra <rkumar@novell.com>
2452 * RectangleConverter.cs: Implemented. Also changed file format
2454 * Rectangle.cs: Fixed ToString method.
2455 * RectangleF.cs: Fixed ToString method.
2457 2004-04-22 Ravindra <rkumar@novell.com>
2459 * SizeConverter.cs: Implemented some of the functions.
2460 * PointConveter.cs: Implemented.
2461 * gdipFunctions.cs: Corrected one typo.
2462 * Brushes.cs: Added a comment.
2464 2004-04-22 Vladimir Vukicevic <vladimir@pobox.com>
2466 * gdipFunctions.cs: Fix StreamGetBytesImpl to handle
2467 returning portions of the peek buffer back. Fixes #57379.
2469 2004-04-21 Peter Bartok <pbartok@novell.com>
2470 * Font.cs: Implemented Font.FromHfont method
2471 * gdipStructs.cs: fixed sign for LOGFONTA lfHeight member
2472 * gdipFunctions.cs: Added imports for functions required to support
2473 Font.FromHfont method
2475 2004-04-21 Jordi Mas i Hernandez <jordi@ximian.com>
2476 * RectangleConverter.cs: stubbed out
2477 * Font.cs : added missing members
2479 2004-04-19 Sanjay Gupta <gsanjay@novell.com>
2480 * Icon.cs: Fixed problem in extracting bitmap from Icon.
2482 2004-04-16 Ravindra <rkumar@novell.com>
2484 * Pen.cs: GC should be allowed to collect any pen including
2486 * SolidBrush.cs: GC should be allowed to collect any SolidBrush
2487 including system brushes.
2488 * Brushes.cs: Coding style.
2489 * Pens.cs: Objects created by Pens are not modifiable on
2490 MS.NET, so we are now. Also, coding style fixes.
2491 * SystemPens.cs: Removed static constructor and changed file
2493 * SystemBrushes.cs: Some cosmetic changes.
2495 2004-04-15 Sanjay Gupta <gsanjay@novell.com>
2496 * Icon.cs: Implemented more missing bits and fixed the problem
2497 of icon not getting saved in proper format
2499 2004-04-14 Sanjay Gupta <gsanjay@novell.com>
2500 * Icon.cs: Implemented more missing bits
2502 2004-04-13 Sanjay Gupta <gsanjay@novell.com>
2503 * Icon.cs: Implemented few more missing bits
2505 2004-04-12 Sanjay Gupta <gsanjay@novell.com>
2506 * Icon.cs: Implemented first version
2508 2004-04-11 Peter Bartok <pbartok@novell.com>
2509 * Font.cs: Implemented Font.ToHfont method; used Jordi's suggestion of splitting
2510 the code and using our own private gdiplus function when on Unix and using Win32
2511 functions when running on Windows
2512 * gdipStructs.cs: Added LOGFONTA structure
2513 * gdipFunctions.cs: Added various DllImports required for Font.ToHfont
2515 2004-04-10 Vladimir Vukicevic <vladimir@pobox.com>
2517 * Image.cs: Save should use encoder.FormatID, not Clsid
2519 2004-04-06 Jordi Mas i Hernandez <jordi@ximian.com>
2520 * Region.cs: fixes GdipCombineRegionRect and GdipCombineRegionRectI signature
2521 * gdipFunctions.cs: fixes GdipCombineRegionRect and GdipCombineRegionRectI signature
2523 2004-04-06 Duncan Mak <duncan@ximian.com>
2525 * gdipFunctions.cs (GdipCreatePath2): Fixed signature.
2527 2004-04-06 Jordi Mas i Hernandez <jordi@ximian.com>
2528 * Region.cs: fixes GetRegionScans
2529 * gdipFunctions.cs: fixes GetRegionScans
2531 2004-04-06 Vladimir Vukicevic <vladimir@pobox.com>
2533 * gdipFunctions.cs: Added stream delegate helpers for
2534 stream loading/saving on linux
2536 * Image.cs, Bitmap.cs: Converted to call into GDIPlus for
2537 loading/saving image data.
2539 2004-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
2540 * Region.cs: implemented new methods
2541 * Graphics.cs: implemented new methods
2543 2004-04-02 Jordi Mas i Hernandez <jordi@ximian.com>
2544 * Region.cs: implemented
2546 2004-04-01 Duncan Mak <duncan@ximian.com>
2548 * Graphics.cs (DrawCurve): Call the correct GDI+ wrappers.
2550 * gdipFunctions.cs (GdipAddPathCurveI):
2551 (GdipAddPathCurve2, GdipAddPathCurve2I):
2552 (GdipAddPathCurve3, GdipAddPathCurve3I):
2553 (GdipAddPathClosedCurve, GdipAddPathClosedCurveI):
2554 (GdipAddPathClosedCurve2, GdipAddPathClosedCurve2I): Added new
2557 2004-03-30 Jordi Mas i Hernandez <jordi@ximian.com>
2558 * Image.cs: implemented a few GDI+ wrapper calls
2560 2004-03-30 Jordi Mas i Hernandez <jordi@ximian.com>
2561 * Bitmap.cs: remove redundant data already present at Image.cs
2562 * Image.cs: use GDI+ functions to get image details
2563 * StringFormat.cs: missing constructor and property
2565 2004-03-24 Jordi Mas i Hernandez <jordi@ximian.com>
2566 * FontFamily.cs: added missing members and style clean
2567 * Graphics.cs: fixed signature of DrawArc and DrawPie
2568 * Image.cs: added missing members, fixes
2569 * StringFormat.cs: missing constructor and property
2571 2004-03-24 Jordi Mas i Hernandez <jordi@ximian.com>
2572 * Graphics.cs: Added missing DrawImage GDI+ calls
2573 * gdipFunctions.cs: Added missing DrawImage GDI+ calls
2575 2004-03-23 Ravindra <rkumar@novell.com>
2576 * gdipFunctions.cs: Added few more P/Invoke calls for
2577 LinearGradientBrush.
2579 2004-03-22 Ravindra <rkumar@novell.com>
2580 * gdipFunctions.cs: Added P/Invoke calls for LinearGradientBrush
2581 and did few coding style fixes.
2583 2004-03-18 Ravindra <rkumar@novell.com>
2584 * Brush.cs: Fixed Dispose method.
2585 * SolidBrush.cs: Fixed clone method.
2586 * TextureBrush.cs: Fixed clone method.
2587 * gdipFunctions.cs: Fixed P/Invokes for PathGradientBrush.
2589 2004-03-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2591 * SizeConverter.cs: fixd typo in ConvertFrom that made height be wrong.
2593 2004-03-10 Ravindra <rkumar@novell.com>
2594 * Pen.cs: Implemented PenType property.
2595 * Brush.cs: Coding style.
2597 2004-03-06 Ravindra <rkumar@novell.com>
2598 * gdipFunctions.cs: Added few more GDI+ P/Invoke calls
2599 for PathGradientBrush.
2601 2004-03-06 Ravindra <rkumar@novell.com>
2602 * gdipFunctions.cs: Added GDI+ P/Invoke calls for
2605 2004-03-04 Duncan Mak <duncan@ximian.com>
2607 * Region.cs: Indentation.
2609 * RectangleF.cs: Changed the internal structure from a PointF,
2610 SizeF to floats in order to match the layout from the C API.
2612 2004-03-04 Jordi Mas i Hernandez <jordi@ximian.com>
2613 * StringFormat.cs: DigitSubstitution and TabStob methods, coding-style
2615 2004-03-03 Sanjay Gupta <gsanjay@novell.com>
2616 * gdipFunctions.cs: Added functions for ImageAttributes
2618 2004-03-03 Sanjay Gupta <gsanjay@novell.com>
2619 * Icon.cs: Missing function stubs added
2620 * Icon.cs: Missing function stubs added
2621 * IconConverter.cs: Missing function stubs added
2622 * ImageAnimator.cs: Missing function stubs added
2623 * ImageConverter.cs: Missing function stubs added
2624 * ImageFormatConverter.cs: Missing function stubs added
2626 2004-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
2627 * Font.cs: Allow multiple styles
2629 2004-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
2630 * StringFormat.cs: Clone method
2632 2004-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
2633 * font.cs: fixes, Clone, and ToString
2635 2004-02-21 Jordi Mas i Hernandez <jordi@ximian.com>
2636 * gdipFunctions.cs: MeasureString
2637 * Graphics.cs : MeasureString
2639 2004-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
2640 * Font.cs: destructor and unit conversion
2641 * Graphics.cs : system dpi support
2643 2004-02-13 Ravindra <rkumar@novell.com>
2644 * Pen.cs: Fixed some bugs.
2645 * TextureBrush.cs: Fixed some bugs.
2647 2004-02-13 Sanjay Gupta <gsanjay@novell.com>
2648 * gdipFunctions.cs: Added ImageCodecInfo functions
2649 * Image.cs: Added few methods
2651 2004-02-13 Jordi Mas i Hernandez <jordi@ximian.com>
2652 * FontFamily.cs: remove hardcoded font names, a few bug fixes
2654 2004-02-12 Sanjay Gupta <gsanjay@novell.com>
2655 * gdipFunctions.cs: Added Image class functions
2656 * Image.cs: Added few methods
2658 2004-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
2659 * graphics.cs: fixes parameters for DrawStrings functions
2661 2004-02-07 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2663 * SRDescriptionAttribute.cs: Added and implemented
2664 * ToolboxBitmapAttribute.cs: Implemented a few members
2665 * SystemIcons.cs: Stubbed
2666 * StringFormat.cs: Implemented method
2667 * Region.cs: Added Todo, fixed attribute
2668 * Size.cs: Added attribute
2669 * SizeF.cs: Added attribute
2670 * RectangleF.cs: Added attributes
2671 * Rectangle.cs: Added attributes
2672 * PointF.cs: Added attribute
2673 * Point.cs: Added attribute
2675 2004-02-06 Ravindra <rkumar@novell.com>
2677 * Brush.cs: Renamed GetException method to CheckStatus
2678 and moved it to gdipFunctions.cs.
2679 * gdipFunctions.cs: Added CheckStatus method.
2680 * SolidBrush.cs: Using CheckStatus method.
2681 * TextureBrush.cs: Using CheckStatus method.
2682 * gdipEnums.cs: Added a missing value.
2684 2004-02-05 Ravindra <rkumar@novell.com>
2686 * Brush.cs: Added a missing namespace.
2688 2004-02-05 Ravindra <rkumar@novell.com>
2690 * gdipFunctions.cs: Added methods for HatchBrush and
2692 * SolidBrush.cs: Added checks for status.
2693 * Brush.cs: Added support for HatchBrush and TextureBrush
2694 types in internal CreateBrush() method.
2696 2004-02-03 Jordi Mas <jordi@ximian.com>
2697 * Font.cs: Setup font properties
2699 2004-02-03 Ravindra <rkumar@novell.com>
2701 * TextureBrush.cs and Brush.cs: Moved GetException (Status)
2702 method from TextureBrush.cs to Brush.cs.
2703 * Brush.cs: Made GetException (Status) method internal.
2705 2004-02-03 Sanjay Gupta <gsanjay@novell.com>
2707 * gdipFunctions.cs: Added methods for Image class.
2709 2004-01-30 Ravindra <rkumar@novell.com>
2711 * TextureBrush.cs: Added more methods to complete it.
2712 * gdipFunctions.cs: Added methods for TextureBrush class.
2714 2004-01-30 Ravindra <rkumar@novell.com>
2716 * gdipFunctions.cs: Added methods for TextureBrush class.
2718 2004-01-30 Ravindra <rkumar@novell.com>
2720 * Pen.cs: Modified to handle TextureBrush also.
2721 * Bitmap.cs: Added one internal constructor.
2722 * TextureBrush.cs: Implemented.
2724 2004-01-29 Duncan Mak <duncan@ximian.com>
2727 * Graphics.cs: Indentation fixes, removed long dangling lines and
2730 * Graphics.cs (IsVisible): Renamed variable to not use hungarian
2733 2004-01-29 Sanjay Gupta <gsanjay@novell.com>
2735 * FontFamily.cs: Implemented few methods and a constructor
2737 2004-01-28 Sanjay Gupta <gsanjay@novell.com>
2739 * gdipFunctions.cs: Added FontFamily and FontCollection functions.
2740 * FontFamily.cs: Implemented missing functionalities.
2742 2004-01-24 Duncan Mak <duncan@ximian.com>
2744 * Graphics.cs (DrawPath): Implemented.
2746 2004-01-23 Ravindra <rkumar@novell.com>
2748 * Point.cs: ToString modified.
2749 * PointF.cs: ToString modified.
2750 * Size.cs: ToString modified.
2751 * SizeF.cs: ToString modified. ToPoint and ToSize methods
2754 2004-01-21 Jordi Mas i Hernà ndez
2755 * Bitmap.cs: Several new methods added.
2757 2004-01-21 Duncan Mak <duncan@ximian.com>
2759 * gdipFunctions.cs (GdipGetPathTypes, GdipGetPathPoints): Add
2760 OutAttribute to the array argument. This fixes the PathPoints
2761 property in System.Drawing.Drawing2D.GraphicsPath.
2763 2004-01-20 Ravindra <rkumar@novell.com>
2765 * Pen.cs: Fixed bug #52811 in Pen.Transform property. Setting
2766 this property was hanging and getting was throwing a NullRef
2767 Exception. Earlier we were passing Matrix object to and fro
2768 which was causing the problem. Now, we are using IntPtr.
2769 Thanks to Duncan for helping me.
2770 Also, .NET behavior is to maintain Pen.Color and Pen.Brush
2771 together. If color is set, a SolidBrush automatically gets
2772 set with the same color, Pen loses the old brush object.
2773 If a SolidBrush is set, Pen.Color gets the value same as that
2774 of brush color losing the old value. Pen shows this behavior
2776 * gdipFunctions.cs: Changed the signature of GdipGetPenTransform
2777 and GdipSetPenTransform methods to use IntPtr instead of Matrix.
2779 2004-01-19 Duncan Mak <duncan@ximian.com>
2781 * gdipFunctions.cs: Import functions for GraphicsPath.
2783 2004-01-14 Ravindra <rkumar@novell.com>
2785 * SolidBrush.cs: Made SolidBrush to initialize its color
2788 * gdipFunctions.cs: Added call to GdipGetSolidFillColor GDI+ API.
2790 2004-01-11 Duncan Mak <duncan@ximian.com>
2792 * Bitmap.cs (LockBits):
2793 * Graphics.cs (DrawString): Removed reference to GpRectF.
2795 2004-01-09 Duncan Mak <duncan@ximian.com>
2797 * gdipStructs.cs (GpRectF, GpRect, GpPointF, GpPoint):
2798 Removed. Didn't know that structs are laid out sequentially by
2799 default. We don't need these anymore.
2801 2004-01-12 Ben Maurer <bmaurer@users.sourceforge.net>
2803 * Color.cs: Keep KnownColors in an array so that we avoid ht lookup.
2805 2004-01-11 Daniel Morgan <danielmorgan@verizon.net>
2807 * Graphics.cs: fix compile error on Windows builds for out
2808 parameter state in call to GdipSaveGraphics
2810 2004-01-10 Ravindra <rkumar@novell.com>
2812 * All Enums: Made serializable.
2814 * Image.cs: Corrected signature of Dispose(bool) method.
2816 * Pen.cs, SolidBrush.cs, SystemPens.cs, SystemBrushes.cs:
2817 Corrected coding style mistakes of my previous commit.
2819 * PointConverter.cs, RectangleConverter.cs: Inherit TypeConverter.
2821 * PointF.cs, RectangleF.cs, SizeF.cs: Made serializable.
2823 * StringFormat.cs: Inherits MarshalByRefObject.
2825 * ToolboxBitmapAttribute.cs: Added missing attribute [AttributeUsage].
2827 2004-01-08 Ravindra <rkumar@novell.com>
2829 * Pen.cs: Added isModifiable (bool) variable. It is required to
2830 make Pens created by SystemPens.cs unmodifiable. All property
2831 setters are modified for this.
2833 * SolidBrush.cs: Added isModifiable variable (bool). It is
2834 required to make Brushes created by SystemBrushes.cs unmodifiable.
2835 All property setters are modified for this.
2837 * SystemBrushes.cs: Modified all the properties as per the .NET
2838 specs, so that Brushes are not created every time. Also, missing
2839 properties are added.
2841 * SystemPens.cs: Modified all the properties as per the .NET
2842 specs, so that Brushes are not created every time. Also, missing
2843 properties are added.
2845 2003-12-12 Miguel de Icaza <miguel@ximian.com>
2847 * Rectangle.cs: Patch from Bryan Bulten, fixes Inflate and makes
2850 2004-01-06 Duncan Mak <duncan@ximian.com>
2852 * gdipFunctions.cs: Import GraphicsPath functions from GDI+.
2854 2003-12-21 Duncan Mak <duncan@ximian.com>
2856 * Graphics.cs (DrawArc): Fixed the method signature and hooked it
2857 up to the GDI+ implementation.
2858 (RotateTransform): Uncommented.
2860 * gdipFunctions.cs (DrawArc, DrawArcI): Import from
2863 2003-12-13 Todd Berman <tberman@sevenl.net>
2865 * Font.cs: Implementing a couple things for porting purposes
2866 * SystemBrushes.cs: ^
2867 * StringFormat.cs: ^^
2869 2003-11-28 Duncan Mak <duncan@ximian.com>
2871 * Pen.cs (CompoundArray): Hide this for now.
2873 2003-11-28 Duncan Mak <duncan@ximian.com>
2875 * Brush.cs (CreateBrush): new internal factory method for creating
2876 specific brushes based on the internal (GDI+ C API) BrushType
2878 (Brush (IntPtr)): new internal constructor.
2880 * Pen.cs: Removed all the C# fields. We are using GDI+ completely
2882 (Pen (IntPtr)): new internal constructor.
2883 (Pen (Brush, float)): Use GdipCreateBrush2.
2884 (Clone): Implemented using GdipClonePen.
2885 (Alignment, Brush, Color, Width): Use GDI+ implementations
2887 (CompoundArray, DashCap, DashOffset, DashPattern, DashStyle):
2888 Implemented these properties.
2889 (CustomStartCap, CustomEndCap, StartCap, EndCap, SetLineCap): Stubbed.
2890 (MultiplyTransform, ResetTransform, RotateTransform):
2891 (ScaleTransform, TranslateTransform): Implemented these methods.
2893 * SolidBrush.cs (SolidBrush (IntPtr)): new internal constructor.
2895 * gdipEnums.cs (BrushType): Added new GDI+ enum.
2897 * gdipFunctions.cs: Imported new Brush and Pen functions.
2899 2003-11-22 Duncan Mak <duncan@ximian.com>
2902 (GdipResetWorldTransform, GdipSetWorldTransform):
2903 (GdipGetWorldTransform, GdipScaleWorldTransform): Imported.
2905 * Graphics.cs: Remove unnecessary TODO, and reformatted the code.
2906 (transform): Removed this field. Always use the
2907 matrix associated in the GpGraphics ptr.
2908 (DrawBeziers): Implemented.
2909 (DrawLine): Don't need to manually invoke the transform now.
2910 (MultiplyTransform, ResetTransform):
2911 (ScaleTransform, TranslateTransform): Use GDI+ implementation.
2912 (Transform): Instead of storing a Matrix in managed code, use
2913 equivalent GDI+ functions.
2915 2003-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2917 * SizeConverter.cs: fixed class signature and implemented some methods.
2919 2003-11-17 Duncan Mak <duncan@ximian.com>
2921 * gdipFunctions.cs (GdipGetMatrixElements): Fix signature.
2923 * Graphics.cs (MultiplyTransform): Commented out until my Matrix commit.
2925 2003-11-17 Duncan Mak <duncan@ximian.com>
2927 * Bitmap.cs (LockBits):
2928 * Graphics.cs (DrawString): Use GpRectF.
2930 * gdipFunctions.cs: Updated method signatures.
2932 * Graphics.cs (MultiplyTransform): Implemented using
2933 GdipMultiplyWorldTransform from GDI+.
2935 * gdipStructs.cs (GdipRectF, GdipRect): Renamed to GpRectF and
2936 GpRect, to be more consistent with the C naming.
2938 2003-11-16 Miguel de Icaza <miguel@ximian.com>
2940 * Graphics.cs: Implement the other DrawString overloads .
2942 2003-11-16 Miguel de Icaza <miguel@ximian.com>
2944 * gdipStructs.cs (GdipRectF): Added utility constructor
2946 2003-11-15 Duncan Mak <duncan@ximian.com>
2948 * gdipFunctions.cs: Imported matrix functions.
2950 2003-11-13 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2952 * Bitmap.cs: Added Attributes
2953 * ColorTranslator.cs: Added private constructor
2954 * Font.cs: Added Attributes
2955 * FontFamily.cs: sealed
2956 * Icon.cs: Added Attributes
2957 * IconConverter.cs: Fixed signature
2958 * Image.cs: Added attributes
2960 * ImageConverter.cs:
2961 * ImageFormatConverter.cs:
2968 * TextureBrush.cs: Fixed signature
2969 * Color.cs: Added attributes
2974 * SizeF.cs: Added attributes
2975 * ContentAlignment.cs: Added attribute
2977 2003-11-13 Duncan Mak <duncan@ximian.com>
2979 * Pen.cs (LineCap, LineJoin, MiterLimit, Transform): implemented.
2982 (GdipSetPenMiterLimit, GdipGetPenMiterLimit):
2983 (GdipSetPenLineJoin, GdipGetPenLineJoin):
2984 (GdipSetPenLineJoin, GdipGetPenTransform): imported.
2986 2003-11-12 Alexandre Pigolkine <pigolkine@gmx.de>
2988 * gdipFunctions.cs copy image in Bitmap constructor
2990 2003-11-06 Duncan Mak <duncan@ximian.com>
2991 * Graphics.cs (DrawPie): Use DrawPieI instead of DrawPie and fix
2992 angle parameters for the integer case.
2993 (DrawBezier): Hook it up with GdipDrawBezier.
2994 (DrawEllipse): Fix Width, Height ordering.
2996 2003-11-05 Duncan Mak <duncan@ximian.com>
2998 * Graphics.cs (DrawPie):
2999 * gdipFunctions.cs (GdipDrawPie): Add hooks to the implementation
3002 2003-10-28 Duncan Mak <duncan@ximian.com>
3004 * Graphics.cs (DrawEllipse, DrawLine, DrawPolygon):
3005 (FillEllipse, FillPolygon): implemented.
3006 (RenderingOrigin): implemented.
3008 * gdipFunctions.cs: Added new GDI+ equivalents.
3010 2003-10-25 Alexandre Pigolkine <pigolkine@gmx.de>
3012 * Image.cs small fixes
3014 2003-10-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3016 * Image.cs : renamed 'pallete' to 'colorPallete' for CLS compliance.
3018 2003-10-24 Miguel de Icaza <miguel@ximian.com>
3020 * SystemBrushes.cs: Some more brushe3s.
3022 * SystemPens.cs: More pens.
3024 * Pen.cs: Implement IDisposable, ICloneable.
3026 * Region.cs: Add some more stubs here.
3028 * StringFormat.cs: Add some more code here.
3030 2003-10-23 Miguel de Icaza <miguel@ximian.com>
3032 * Image.cs: Kill the InternalImageInfo, everything is now done in
3033 terms of Image and BitmapData.
3035 * Rectangle.cs: Make this one also sequential, change from using
3036 Point + Size to use x, y, width, height; So we can use GdiPlus.
3038 * gdipFunctions.cs (GdipBitmapLockBits): Remove the ref from the
3039 BitmapData class argument, and instead use the [In,Out]
3040 attributes, which will do struct marshalling on the fields. Now
3041 we can use C#'s BitmapData directly to talk to Gdiplus.
3043 * gdipStructs.cs: Every internal structure that has to talk to
3044 Gdi+ is properly prefixed, to minimize the confussion.
3046 * Bitmap.cs Bitmap (int width, int height, PixelFormat format):
3047 Compute the stride here where we have the BPP information,
3048 allocate a buffer of the proper size, and pass this to
3049 GdipCreateBitmapFromScan0
3051 * Image.cs: Implement Dispose pattern.
3053 2003-10-14 Alexandre Pigolkine <pigolkine@gmx.de>
3056 * gdipStructs.cs DrawString function added
3058 2003-10-12 Alexandre Pigolkine <pigolkine@gmx.de>
3061 * gdipStructs.cs added
3064 2003-10-12 Alexandre Pigolkine <pigolkine@gmx.de>
3073 implementation changed to gdi+
3075 2003-09-08 Duncan Mak <duncan@ximian.com>
3077 * Factories.cs (DefaultImplementationNamespace): Change it from
3078 "XrImpl" to "Cairo".
3080 2003-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3082 * Color.cs: fixed FromArgb to handle alpha value correctly. Closes
3085 2003-08-08 Duncan Mak <duncan@ximian.com>
3087 * Graphics.cs (DrawBezier): Fixed.
3089 2003-08-03 Alexandre Pigolkine <pigolkine@gmx.de>
3090 * Graphics.cs delegate Dispose to implementation
3092 2003-08-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3094 * FontConverter.cs: stub it out so that system.web compiles.
3096 2003-07-30 Alexandre Pigolkine <pigolkine@gmx.de>
3097 * Image.cs InternalImageInfo class improved
3099 2003-07-23 Miguel de Icaza <miguel@ximian.com>
3101 * Factories.cs: If the AppDomain key `Mono.Running.Windows.Forms'
3102 is set, default to Win32Impl
3104 2003-07-22 Alexandre Pigolkine <pigolkine@gmx.de>
3105 * Image.cs implementation added
3107 2003-07-21 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
3109 * Icon.cs: Stubed out (fix for System.Drawing.Design)
3111 2003-07-17 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
3113 * StringFormat.cs: Changes to become CLS-compliant
3115 2003-07-14 Miguel de Icaza <miguel@ximian.com>
3117 * Factories.cs: Remove debugging message.
3119 2003-07-01 Alexandre Pigolkine <pigolkine@gmx.de>
3120 * Color.cs code generation program modified
3122 2003-06-29 Alexandre Pigolkine
3123 * Graphics.cs image drawing
3125 2003-06-28 Alexandre Pigolkine <pigolkine@gmx.de>
3128 supply KnowColor enum value to save Enum.Parse at runtime
3130 2003-06-26 Alexandre Pigolkine <pigolkine@gmx.de>
3131 * Graphics.cs coordinate transformations
3132 * Image.cs small fix
3134 2003-06-22 Alexandre Pigolkine <pigolkine@gmx.de>
3136 * FontFamily.cs more implementation
3138 2003-06-20 Alexandre Pigolkine <pigolkine@gmx.de>
3140 * FontFamily.cs more implementation
3142 2003-06-18 Alexandre Pigolkine <pigolkine@gmx.de>
3143 * Graphics.cs few more calls to implementation
3145 2003-06-15 Alexandre Pigolkine <pigolkine@gmx.de>
3146 * Bitmap.cs BITMAP declaration removed
3147 * Graphics.cs few more calls to implementation
3148 * Image.cs InternalImageInfo structure, image read/write functions
3151 2003-05-26 Alexandre Pigolkine <pigolkine@gmx.de>
3152 * Factories.cs analyse environment variable and machine.config to select implementation
3153 * Image.cs PixelFormat property added
3155 2003-04-30 Nick Drochak <ndrochak@gol.com>
3157 * Factories.cs: Change weird characters that broke build on windows.
3159 2003-04-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3161 * ColorConverter.cs:
3162 (ConvertFrom): return a system or named color if there's one that fits
3163 teh values parsed with Color.FromArgb.
3165 2003-04-26 Alexandre Pigolkine <pigolkine@gmx.de>
3175 delegate function calls to implementation
3177 2003-04-26 Alexandre Pigolkine <pigolkine@gmx.de>
3181 * SystemBrushes.cs switch to Linux style line terminators
3183 2003-03-29 Alan Tam <Tam@SiuLung.com>
3184 * ToolboxBitmapAttribute
3185 stubbed more constructors and fixed base class
3187 2003-03-01 Alexandre Pigolkine <pigolkine@gmx.de>
3189 added stubs to compile SWF
3192 2003-02-21 Alexandre Pigolkine <pigolkine@gmx.de>
3197 small changes to be able to run SWF apps
3199 2003-02-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3201 * Graphics.cs: stubbed out all the methods.
3203 2003-02-08 Piers Haken <piersh@friskit.com>
3205 * fixed case of pens.cs and font.cs
3207 2003-02-07 Alexandre Pigolkine <pigolkine@gmx.de>
3214 2002-11-21 Dennis Hayes (dennish@raytek.com)
3215 * checkin for Matt Stump (mstump@swfo.arizona.edu)
3219 2002-10-19 Rachel Hestilow <hestilow@ximian.com>
3221 * ColorTranslator.cs (FromHtml): Implement.
3223 2002-10-14 Dennis Hayes (dennish@raytek.com)
3225 * changed using namespace from Drawing2d to Drawing2D
3227 2002-9-15 Asier Llano <asierllano@infonegocio.com>
3229 * Fixes the enum values in the following enums
3230 * ContentAlignment.cs:
3234 * RotateFlipType.cs:
3235 * StringAligment.cs:
3236 * StringDigitSubstitute.cs:
3237 * StringFormatFlags.cs:
3238 * StringTrimming.cs:
3240 * SolidBrush.cs: Easy implementation
3241 * Brushes.cs: Implementation based on SolidBrush and Color class.
3242 * Brush.cs: Fixes based on the status web).
3243 * CharacterRange.cs: Implemented the missing Lenth property.
3245 2002-9-14 Dennis Hayes (dennish@raytek.com)
3248 * removed personal template that should not have been checked in
3250 2002-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3252 * ColorConverter.cs: readded MonoTODOs and implemented a couple of
3255 2002-9-14 DennisHayes <dennish@raytek.com>
3263 * ImageFormatConverter.cs
3265 * RectangleConverter.cs
3274 * ToolboxBitmapAttribute.cs
3275 * Added null classes for most/all classes, Many stubs, and some implmentation
3277 2002-9-2 DennisHayes <dennish@raytek.com>
3284 * Added stubs, implmentation
3286 2002-9-2 DennisHayes <dennish@raytek.com>
3288 * Brushes.cs : stubbed, added colors. Not sure how to implement,
3289 but this should at least save someone some typing.
3290 * CharacterRange.cs :Implmented
3291 * Region.cs : stub needed for system.windows.forms
3293 2002-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3295 * ColorTranslator.cs: use Color.Name.
3297 2002-07-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3299 * Color.cs: implemented SystemColors and NamedColors properties that
3300 are used by ColorConverter, removed public constructor, use
3301 SystemColors, and misc. fixes to make it behave as MS (ToString,
3302 parsing names, FromKnownColor,...).
3304 * ColorConverter.cs: use NamedColors and SystemColors from Color when
3305 trying to get the color from its name.
3307 * SystemColors.cs: new file.
3309 2002-07-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3311 * Color.cs: changed static properties to use FromArgbNamed. Also
3312 modified the program included in comments that get the values for
3315 (FromArgbNamed): build named colors.
3316 (FromKnownColor): fixed.
3317 (FromName): use a hash to look up colors by name.
3318 (FillColorNames): create the hash of colors.
3319 (Equals): compare values and name.
3320 (ToString): improved.
3322 * ColorTranslator.cs: implemented ToHtml.
3324 2002-06-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3326 * Color.cs: added TypeConverter attribute.
3328 * ColorConverter.cs: added constructor.
3330 2002-06-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3332 * ColorConverter.cs: implemented minimal set of features needed by xsp.
3334 2002-05-03 Mike Kestner <mkestner@speakeasy.net>
3336 * Bitmap.cs : using System.IO
3337 * ColorTranslator.cs : Stubbed off build breakers.
3338 * Image.cs : Stub off IDisposable and ICloneable.
3340 2002-04-27 Christian Meyer <Christian.Meyer@cs.tum.edu>
3342 * Bitmap.cs: Ximian is the new copyright holder now.
3345 2002-04-05 Christian Meyer <Christian.Meyer@cs.tum.edu>
3347 * Uppercased several files.
3349 2002-04-05 Christian Meyer <Christian.Meyer@cs.tum.edu>
3351 * color.cs: Fixed a typo in GetSaturation ().
3353 2002-02-26 Christian Meyer <Christian.Meyer@cs.tum.edu>
3355 * Bitmap.cs: Added method headers.
3357 2002-02-25 Christian Meyer <Christian.Meyer@cs.tum.edu>
3359 * Bitmap.cs: Added, no implementation's done, yet.
3361 2001-12-15 Mike Kestner <mkestner@speakeasy.net>
3363 * Rectangle.cs : Add a doc comment.
3364 * RectangleF.cs : New struct implementation.
3366 2001-12-15 Mike Kestner <mkestner@speakeasy.net>
3368 * Rectangle.cs : New struct implementation.
3370 2001-08-17 Mike Kestner <mkestner@speakeasy.net>
3372 * PointF.cs, Size.cs, SizeF.cs : New struct implementations.
3374 2001-08-16 Mike Kestner <mkestner@speakeasy.net>
3376 * Point.cs : New. Implementation of System.Drawing.Point struct.