Commit Graph
140 Commits
Author SHA1 Message Date
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
Konstantin Triger 9b7e43f370 merge -r 54593:54594
svn path=/trunk/mcs/; revision=54595
2005-12-19 09:27:43 +00:00
Boris Kirzner d8ed92bbca Added MonoTODO attributes.
svn path=/trunk/mcs/; revision=54591
2005-12-19 08:31:35 +00:00
Jordi Mas i Hernandez 4421bc764e In Test/System.Drawing.Design:
2005-12-05 Jordi Mas i Hernandez <[email protected]>

	* TestToolboxItem.cs: New unit test

In Test/System.Drawing:
2005-12-05 Jordi Mas i Hernandez <[email protected]>

	* TestPoint.cs: Test new methods for .Net 2.0
	* TestPointF.cs Test new methods for .Net 2.0
	* ColorConverter.cs: Fixes for .Net 2.0
	* TestSizeF.cs: Test new methods for .Net 2.0
	* TestSize.cs: Test new methods for .Net 2.0

In System.Drawing.Design:
2005-12-05 Jordi Mas i Hernandez <[email protected]>

	* ToolboxItem.cs: Add new methods and properties for .Net and 
	  also moved to an internal properties hashtable implementation

	* IToolboxItemProvider.cs: New .Net 2.0 interface

In .:
2005-12-05 Jordi Mas i Hernandez <[email protected]>

	* MetaHeader.cs: Classes need to specify StructLayout attribute
	* EncoderParameter.cs: Classes need to specify StructLayout attribute
	* ImageAttributes.cs: Classes need to specify StructLayout attribute
	* WmfPlaceableFileHeader.cs: Classes need to specify StructLayout attribute
	* MetafileHeader.cs: Classes need to specify StructLayout attribute

In System.Drawing:
2005-12-05 Jordi Mas i Hernandez <[email protected]>

	* gdipFunctions.cs: DllExports need it to implement 
	  new Graphics.CopyFromScreen .Net 2.0 methods
	* IDeviceContext.cs: New .Net 2.0 interface
	* Color.cs: Fixes for new .Net 2.0 KnowColors
	* PointF.cs: New .Net 2.0 Add/Subtract methods
	* gdipStructs.cs: Structs need it for Graphics.CopyFromScreen
	* SystemBrushes.cs: New standard SystemBrushes for .Net 2.0
	* SizeF.cs: New .Net 2.0 Add/Subtract methods
	* FontConverter.cs: New .Net 2.0 fixes
	* SystemColors.cs: New standard SystemColors for .Net 2.0
	* SizeFConverter.cs: New .Net 2.0 class (based on SizeConverter)
	* CharacterRange.cs: : New .Net 2.0 methods
	* Size.cs: New .Net 2.0 Add/Subtract methods
	* SystemPens.cs: New standard SystemPens for .Net 2.0
	* Bitmap.cs: New .Net 2.0 methods
	* Region.cs: New .Net 2.0 methods
	* Brush.cs: New .Net 2.0 constructor
	* Icon.cs: New .Net 2.0 Constructors and methods
	* Point.cs: New .Net 2.0 Add/Subtract methods
	* BufferedGraphicsManager.cs: New .Net 2.0 class
	* Graphics.cs: New methods for .Net 2.0 and fixes
	* BufferedGraphics.cs: New .Net 2.0 class
	* Font.cs:  New .Net 2.0 properties
	* Image.cs: New .Net 2.0 tag property
	* KnownColor.cs: New .Net 2.0 know colors
	* CopyPixelOperation.cs: New .Net 2.0 enum
	* SystemFonts.cs: New .Net 2.0 class
	* BufferedGraphicsContext.cs: New .Net 2.0 class


svn path=/trunk/mcs/; revision=53938
2005-12-05 18:43:07 +00:00
Vladimir Krasnov 5976aa71a7 ImageCodec.jvm.cs: fixed ProcessOneCodec, sometime it was failed on parsing version of codec
svn path=/trunk/mcs/; revision=53449
2005-11-24 10:47:04 +00:00
Vladimir Krasnov 74d54abd1b Image.jvm.cs: fixed Save, flush output stream
ImageCodec.jvm.cs: fixed WriteImage, removed flush of native output

svn path=/trunk/mcs/; revision=53204
2005-11-17 18:06:58 +00:00
Raja R Harinath 8eb1c1135e * ColorMatrix.cs: Make it have Sequential layout.
Fixes 'make check', and also corcompare.

svn path=/trunk/mcs/; revision=53167
2005-11-17 11:48:02 +00:00
Konstantin Triger b35ed953d4 refactoring.
svn path=/trunk/mcs/; revision=53129
2005-11-16 16:48:38 +00:00
Vladimir Krasnov d33f9e0cf7 * Bitmap.jvm.cs: fixed InternalSave() error handling
* Image.jvm.cs: fixed Save() error handling
* ImageCodec.jvm.cs: Fixed error handling in codecs emumeration flow

svn path=/trunk/mcs/; revision=53006
2005-11-14 10:18:54 +00:00
Kornél Pál 64830f336a ImageFormat.cs: Fixed ToString to use this.Equals to reflect argument changes to ImageFormat objects. Added Exif and Icon strings to ToString and reordered formats to match declaration. TestImageFormat.cs: Added ToStringTest.
svn path=/trunk/mcs/; revision=52975
2005-11-13 16:53:24 +00:00
Konstantin Triger 20f4620526 throw an exception if codec is not found
svn path=/trunk/mcs/; revision=52973
2005-11-13 15:48:49 +00:00
Jordi Mas i Hernandez f3f1d17b2b In Test/System.Drawing.Imaging:
2005-10-31  Jordi Mas i Hernandez <[email protected]>

	*  TestImageFormat.cs: New test unit

In System.Drawing.Imaging:
2005-10-31  Jordi Mas i Hernandez <[email protected]>

	* ImageFormat.cs: Fixes ToString method

In System.Drawing:
2005-10-31 Jordi Mas i Hernandez <[email protected]> 

	* Image.cs: Default format for MemoryBMP should be Png


svn path=/trunk/mcs/; revision=52409
2005-10-31 13:33:10 +00:00
Vladimir Krasnov 46f962df2c svn path=/trunk/mcs/; revision=52388 2005-10-30 08:08:12 +00:00
Konstantin Triger 11cef73fa4 make Clone abstract
svn path=/trunk/mcs/; revision=51972
2005-10-20 09:06:09 +00:00