This is a scripted conversion of mixed line-ending files to LF-only or CRLF-only
based on which patch is smaller. I used a threshold of upto a quarter of the
lines to determine whether to keep the patch or not.
This set of .gitattributes was automatically generated from the list of files
that GIT tried to normalize when I enabled automatic EOL conversion.
With this set of attributes, we prevent automated EOL conversion on files that
we know will cause trouble down the road.
resources, also clone the underlying stream, since it needs to stay
around for the life of the image (gdi doesn't clone the underlying
stream when cloning images, so when the gc disposes the original, it
will also dispose the stream, which invalidates the clone).
* System.Drawing/Bitmap.cs: Save the underlying stream when creating bitmaps from a
clone under win32
* System.Drawing.Imaging/Metafile.cs: Save the underlying stream when creating from a
clone under win32
[fixes#438886]
2008-11-21 Andreia Gaita <[email protected]>
svn path=/trunk/mcs/; revision=119580
* ColorPalette.cs, ImageFormat.cs: Remove unneeded field
initialization to their default values.
[Found using Gendarme AvoidUnneededFieldInitializationRule]
svn path=/trunk/mcs/; revision=115566
* FrameDimension.cs: Fix double-cast in Equals (found using Gendarme).
Then fixed a lot of other things while creating unit tests for it.
svn path=/trunk/mcs/; revision=109811
* ImageAttributes.cs: Call CheckStatus in GetAdjustedPalette before
trying to set the palette (since the values could be bad).
[Partial fix for #402172]
svn path=/trunk/mcs/; revision=106499
to tabs, and removed extra tabs.
* EncoderParameter.cs: Changed argument names to match MS. Changed
spaces to tabs, and removed extra tabs.
* ImageAttributes.cs: Changed argument names to match MS. Changed
spaces to tabs, and removed extra tabs.
* Metafile.cs: Changed argument names to match MS. Changes spaces to
tabs, and removed extra tabs. Fixed typo in MonoLimitation text.
svn path=/trunk/mcs/; revision=104031
2007-11-05 Sebastien Pouliot <[email protected]>
* Image.cs: Add test cases for the stream position when loading and
saving bitmaps and metafiles. Some of them are based on Gert Driesen
samples in #338779
In System.Drawing.Imaging:
2007-11-05 Sebastien Pouliot <[email protected]>
* Metafile.cs: Stream position is not moved for metafiles.
In System.Drawing:
2007-11-05 Sebastien Pouliot <[email protected]>
* gdipFunctions.cs: Add a bool parameter to GdiPlusStreamHelper ctor
to move, or not, the stream position to load/save images.
* Image.cs: Stream position is moved to 0 when loading images from
stream but isn't moved for saving an image to a stream. Fix part of
#338779 (except that Image.FromFile behave differently for metafiles)
svn path=/trunk/mcs/; revision=88916
* ImageAttributes.cs: Remove TODO for ColorMatrixFlags and Gray
ColorMatrix support methods. Add TODO on some stuff not supported by
libgdiplus (so MoMA reports gets more accurate). Fix coding style.
svn path=/trunk/mcs/; revision=78195
* Metafile.cs: Reduce size by reusing more complex ctors. Add Linux
support to metafile recoding with the new delegate-based functions.
svn path=/trunk/mcs/; revision=76344
* MetaHeader.cs: Workaround bug #81254 where the SPARC architecture
can't use the misaligned integer in the structure (with Pack=2).
svn path=/trunk/mcs/; revision=75072
* ImageAttributes.cs: Better MonoTODO description.
* ImageCodecInfo.cs: Add MonoTODO description.
* Metafile.cs: Use a single MonoTODO on the class itself. MoMA will
detect and report that every ctors/methods/properties are throwing
NotImplementedException.
* MetafileHeader.cs: Use a single MonoTODO on the class itself. MoMA
will detect and report that every ctors/methods/properties are
throwing NotImplementedException.
svn path=/trunk/mcs/; revision=68365
* MetaHeader.cs: Fix layout (order is important in sequential structs)
and use the struct field names;
* WmfPlaceableFileHeader.cs: Implement all TODO.
svn path=/trunk/mcs/; revision=67179
* BitmapData.cs: Change fields visibility to private as they either
have get/set properties or shouldn't be used in managed code (as they
do not exists when using MS GDI+). Added more warnings comments.
svn path=/trunk/mcs/; revision=65419
* ColorMatrix.cs: Add Alloc and Free method helpers for interop.
* ImageAttributes.cs: Fix all methods accepting a ColorMatrix (i.e.
which calls GdipSetImageAttributesColorMatrix) to use IntPtr instead
of the ColorMatrix itself.
svn path=/trunk/mcs/; revision=64367
* ImageFormat.cs: Re-fixed ToString method to match MS output when
the ImageFormat instance comes from the static properties. Create the
default ImageFormat on demand (and avoid creating 10 instances of
ImageFormat in the static ctor).
svn path=/trunk/mcs/; revision=62781
* ColorPalette.cs, EncoderParameters.cs, EncoderParameter.cs,
ImageAttributes.cs: 64bit cleanup and some simplifications
2006-02-09 Peter Dennis Bartok <[email protected]>
* PrintingServicesWin32.cs: Simplyfied the code, removing the need
for pointer calculations (part of 64bit cleanup)
2006-02-09 Peter Dennis Bartok <[email protected]>
* Image.cs, Bitmap.cs: Removed unneeded casts
* Icon.cs: Fixed code to be 64bit safe
svn path=/trunk/mcs/; revision=56738
* ImageAttributes.cs: Ensure Marshal.FreeHGlobal is called for all
unmanaged memory allocated with AllocHGlobal.
* ImageCodecInfo.cs: Ensure Marshal.FreeHGlobal is called for all
unmanaged memory allocated with AllocHGlobal.
svn path=/trunk/mcs/; revision=56183