Commit Graph
153 Commits
Author SHA1 Message Date
Alexander Köplinger 48e112d652 [Cleanup] Removed TARGET_JVM
It was once part of a special Java target profile, but this is no longer used today.
2014-08-08 03:28:34 +02:00
Alexander Köplinger a8b2f07578 [Cleanup] Removed .jvm.cs files that are no longer used
They were once part of a special Java target profile, but this is no longer used today.
2014-08-07 23:01:51 +02:00
Raja R Harinath cd51491631 Fix a few cases of mixed line-endings
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.
2010-07-26 02:20:13 +05:30
Raja R Harinath b293948fb7 EOL handling
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.
2010-07-25 20:17:39 +05:30
Andreia Gaita 0605c47f81 * System.Drawing/Image.cs: On win32, when cloning images initialized from
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
2008-11-21 05:39:11 +00:00
Sebastien Pouliot 144ccc1623 2008-10-12 Sebastien Pouliot <[email protected]>
* ColorPalette.cs, ImageFormat.cs: Remove unneeded field 
	initialization to their default values.
	[Found using Gendarme AvoidUnneededFieldInitializationRule]


svn path=/trunk/mcs/; revision=115566
2008-10-12 14:52:16 +00:00
Marek Safar b2d5552461 Warnings cleanup
svn path=/trunk/mcs/; revision=111848
2008-08-28 17:45:48 +00:00
Sebastien Pouliot 2e9111b618 2008-08-06 Sebastien Pouliot <[email protected]>
* 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
2008-08-07 00:18:04 +00:00
Sebastien Pouliot ab3fe05892 2008-07-14 Sebastien Pouliot <[email protected]>
* ImageAttributes.cs: Fix GetAdjustedPalette using new (and correct)
	signature.


svn path=/trunk/mcs/; revision=107877
2008-07-14 12:36:11 +00:00
Sebastien Pouliot 25a0ffc9f0 2008-06-23 Sebastien Pouliot <[email protected]>
* 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
2008-06-24 13:17:05 +00:00
Sebastien Pouliot 233f3615b3 revert big, unreviewed, broken changes from r104029/30/31
svn path=/trunk/mcs/; revision=104043
2008-05-25 23:11:32 +00:00
Gert Driesen a120fa7036 * ColorMatrix.cs: Changed argument names to match MS. Changed spaces
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
2008-05-25 17:05:43 +00:00
Sebastien Pouliot 9324546ee3 2008-05-14 Sebastien Pouliot <[email protected]>
* EncoderParameters.cs: Don't downcast an IntPtr to an Int32.
	[Found using Gendarme]


svn path=/trunk/mcs/; revision=103239
2008-05-15 00:49:59 +00:00
Vladimir Krasnov fca1f2f3dc * ImageCodec.jvm.cs: fixed bitmap resolution
svn path=/trunk/mcs/; revision=91222
2007-12-13 12:02:27 +00:00
Sebastien Pouliot 5cef71746d In Test/System.Drawing:
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
2007-11-05 21:11:32 +00:00
Sebastien Pouliot 5bfa270323 2007-05-30 Sebastien Pouliot <[email protected]>
* 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
2007-05-30 12:05:53 +00:00
Konstantin Triger 68dd62dea1 refactoring: fix documentation attributes
svn path=/trunk/mcs/; revision=78173
2007-05-30 08:52:13 +00:00
Igor Zelmanovich 3e2972ecb0 2007-05-09 Igor Zelmanovich <[email protected]>
* FontConverter.cs: for TARGET_JVM destructor is not used.

	* AdjustableArrowCap.jvm.cs:
	* CustomLineCap.jvm.cs:
	* GraphicsPath.jvm.cs:
	added MonoNotSupported attributes.			

	* EncoderParameter.jvm.cs: removed destructor, 
	Dispose doesn't throw exception.


svn path=/trunk/mcs/; revision=76989
2007-05-09 08:29:29 +00:00
Sebastien Pouliot c3e8e8b70a 2007-04-26 Sebastien Pouliot <[email protected]>
* 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
2007-04-26 15:44:51 +00:00
Sebastien Pouliot fbac6ec9e9 2007-04-26 Sebastien Pouliot <[email protected]>
* Metafile.cs: Complete all ctors (except for stream-based one outside
	Windows) with calls into GDI+.


svn path=/trunk/mcs/; revision=76310
2007-04-26 11:51:50 +00:00
Sebastien Pouliot bfcb419bf9 2007-03-28 Sebastien Pouliot <[email protected]>
* MetaHeader.cs: Make workaround (#81254) permanent and return correct
	values on big endian architectures.


svn path=/trunk/mcs/; revision=75096
2007-03-28 18:37:40 +00:00
Sebastien Pouliot 9469dfb663 2007-03-28 Sebastien Pouliot <[email protected]>
* 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
2007-03-28 13:22:49 +00:00
Sebastien Pouliot 60478f7861 2007-03-14 Sebastien Pouliot <[email protected]>
* MetafileHeader.cs: WmfHeader is available on non-placeable WMF too.


svn path=/trunk/mcs/; revision=74303
2007-03-14 20:57:24 +00:00
Sebastien Pouliot 139ffbc38c 2007-03-09 Sebastien Pouliot <[email protected]>
* MetafileHeader.cs: WmfHeader throws if the metafile isn't a WMF (e.g. 
	EMF, EMF+ or EMF dual).


svn path=/trunk/mcs/; revision=74023
2007-03-09 19:36:05 +00:00
Sebastien Pouliot a0f2151fdf 2007-03-09 Sebastien Pouliot <[email protected]>
* MetafileHeader.cs: Fix offset to match correct C definition.


svn path=/trunk/mcs/; revision=74013
2007-03-09 16:54:47 +00:00
Sebastien Pouliot 8b74e8bb9f 2007-02-21 Sebastien Pouliot <[email protected]>
* Metafile.cs: Implement a few cases required to playback metafiles.
	* MetafileHeader.cs: Implemented.
	* MetaHeader.cs: Implemented.
	* WmfPlaceableFileHeader.cs: Adjust packing.


svn path=/trunk/mcs/; revision=73256
2007-02-21 16:16:38 +00:00
Sebastien Pouliot 6e45b43aa9 ImageAttribute.cs: Reuse code in SetColorMatrix overloads.
svn path=/trunk/mcs/; revision=70935
2007-01-12 18:54:38 +00:00
Sebastien Pouliot 1d9fe5bef1 ImageCodecInfo.cs: Remove MonoTODO on SignaturePatterns.
svn path=/trunk/mcs/; revision=70674
2007-01-08 20:54:56 +00:00
Sebastien Pouliot e214dca885 2006-11-22 Sebastien Pouliot <[email protected]>
* 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
2006-11-22 19:43:27 +00:00
Konstantin Triger 0cef0eeb1d TARGET_JVM: correct configuration pathes
svn path=/trunk/mcs/; revision=68255
2006-11-21 15:10:44 +00:00
Sebastien Pouliot 6ebe4e0c3b 2006-10-31 Sebastien Pouliot <[email protected]>
* 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
2006-10-31 15:29:52 +00:00
Raja R Harinath 9bdec12456 Kill all executable flags on *.cs and ChangeLog files.
AKA: fun with find(1)+xargs(1)
AKA: find . -name \*.cs -and -perm /a+x | xargs svk propdel svn:executable

svn path=/trunk/mcs/; revision=66131
2006-09-30 18:29:13 +00:00
Sebastien Pouliot 8237aaef85 2006-09-14 Sebastien Pouliot <[email protected]>
* 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
2006-09-14 17:35:18 +00:00
Kornél Pál 546a1134d2 Converted source files to UTF-8 (without byte order mark). Use UTF-8 as the default encoding for compilers.
svn path=/trunk/mcs/; revision=64941
2006-09-05 13:54:12 +00:00
Sebastien Pouliot 330b8c92c4 2006-09-01 Sebastien Pouliot <[email protected]>
* BitmapData.cs: Invert left and top fields to be in sync with gdip.h


svn path=/trunk/mcs/; revision=64710
2006-09-01 15:17:06 +00:00
Sebastien Pouliot a80410d9e8 2006-08-25 Sebastien Pouliot <[email protected]>
* 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
2006-08-25 17:24:40 +00:00
Sebastien Pouliot 09ad7f497a 2006-07-19 Sebastien Pouliot <[email protected]>
* 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
2006-07-20 01:12:42 +00:00
Sebastien Pouliot c83861d9cd 2006-05-30 Sebastien Pouliot <[email protected]>
* ImageFormat.cs: Avoid double-cast in Equals method.


svn path=/trunk/mcs/; revision=61276
2006-05-30 18:54:32 +00:00
Sebastien Pouliot 1c06dcfcc1 2006-05-24 Sebastien Pouliot <[email protected]>
* ImageFormat.cs: Fixed ToString method to match MS output.


svn path=/trunk/mcs/; revision=61080
2006-05-24 20:11:52 +00:00
Sebastien Pouliot 9ee85364cf 2006-05-21 Sebastien Pouliot <[email protected]>
* ColorAdjustType.cs: Removed [Serializable] from 2.0 profile.
	* ColorChannelFlag.cs: Removed [Serializable] from 2.0 profile.
	* ColorMapType.cs: Removed [Serializable] from 2.0 profile.
	* ColorMatrixFlag.cs: Removed [Serializable] from 2.0 profile.
	* ColorMode.cs: Removed [Serializable] from 2.0 profile.
	* EmfPlusRecordType.cs: Removed [Serializable] from 2.0 profile.
	* EmfType.cs: Removed [Serializable] from 2.0 profile.
	* EncoderParameterValueType.cs: Removed [Serializable] from 2.0 
	profile.
	* EncoderValue.cs: Removed [Serializable] from 2.0 profile.
	* ImageCodecFlags.cs: Removed [Serializable] from 2.0 profile.
	* ImageCodecInfo.cs: Removed [Serializable] from 2.0 profile.
	* ImageFlags.cs: Removed [Serializable] from 2.0 profile.
	* ImageLockMode.cs: Removed [Serializable] from 2.0 profile.
	* Metafile.cs: Removed [Serializable] from 2.0 profile.
	* MetafileFrameUnit.cs: Removed [Serializable] from 2.0 profile.
	* MetafileType.cs: Removed [Serializable] from 2.0 profile.
	* PixelFormat.cs: Removed [Serializable] from 2.0 profile.
	* PlayRecordCallback.cs: Removed [Serializable] from 2.0 profile.


svn path=/trunk/mcs/; revision=60925
2006-05-21 14:34:22 +00:00
Sebastien Pouliot 93ea76234c 2006-05-05 Sebastien Pouliot <[email protected]>
* PaletteFlags.cs: corcompare fixes for 2.0. Add [Flags] and remove
	[Serializable]


svn path=/trunk/mcs/; revision=60334
2006-05-05 19:51:02 +00:00
Peter Dennis Bartok 2f7aa099bf 2006-04-20 Peter Dennis Bartok <[email protected]>
* BitmapData.cs: Updated to match the BitmapData structure
	  from libgdiplus r59689.


svn path=/trunk/mcs/; revision=59709
2006-04-20 20:02:59 +00:00
Peter Dennis Bartok 6c0c4dbb7a 2006-04-19 Peter Dennis Bartok <[email protected]>
* BitmapData.cs: Updated to match the BitmapData structure
	  from libgdiplus r59661.


svn path=/trunk/mcs/; revision=59662
2006-04-19 19:46:35 +00:00
Gonzalo Paniagua Javier 1503c2542c 2006-04-03 Gonzalo Paniagua Javier <[email protected]>
* ImageAttributes.cs: SetColorKey(color, color) now calls the
	color,color,ColorAdjustType.


svn path=/trunk/mcs/; revision=58973
2006-04-03 18:51:29 +00:00
Peter Dennis Bartok 8540a01cb1 2006-02-09 Peter Dennis Bartok <[email protected]>
* 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
2006-02-09 23:58:23 +00:00
Sebastien Pouliot a501449550 2006-01-27 Sebastien Pouliot <[email protected]>
* 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
2006-01-27 19:29:31 +00:00
Konstantin Triger 967f94ede2 merge -r 55606:55607
svn path=/trunk/mcs/; revision=55608
2006-01-15 21:19:19 +00:00
Konstantin Triger de2b15509b refactoring
svn path=/trunk/mcs/; revision=54961
2006-01-02 17:58:20 +00:00
Konstantin Triger 5fc73e22d7 correcting support level under TARGET_JVM
svn path=/trunk/mcs/; revision=54959
2006-01-02 17:52:09 +00:00
Konstantin Triger 1e91d39d0d merge -r 54656:54658
svn path=/trunk/mcs/; revision=54659
2005-12-20 17:06:26 +00:00