Commit Graph
132 Commits
Author SHA1 Message Date
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
Peter Dennis Bartok 3551ae2d17 2005-10-04 Peter Dennis Bartok <[email protected]>
* Graphics.cs, FontFamily.cs: Calling GC.SuppressFinalize from Dispose,
	  fixes bug #76329

2005-10-04 Peter Dennis Bartok <[email protected]>

	* EncoderParameter.cs, EncoderParameters.cs: Calling GC.SuppressFinalize
	  from the Dispose method; fixes bug #76329


svn path=/trunk/mcs/; revision=51210
2005-10-04 20:56:32 +00:00
Vladimir Krasnov a6cb91c070 Bitmap.jvm.cs: fixed Clone, InternalSave, Initialize, ctor refactoring, remarks refactoring
Image.jvm.cs: fixed GetFrameCount, GetThumbnailImage, SelectActiveFrame, remarks refactoring
PlainImage.jvm.cs: added metadata props, fixed ctor
PlainImageCollection.jvm.cs: fixed class access
ImageCodec.jvm.cs: refactoring of read/write methods, members access levels

svn path=/trunk/mcs/; revision=50386
2005-09-21 16:12:57 +00:00
Vladimir Krasnov 25b3de1035 System.Drawing.vmwcsproj: Added PlainImage.jvm.cs
PlainImageCollection.jvm.cs
Bitmap.jvm.cs: native object refactoring
Image.jvm.cs: native object refactoring
Graphics.jvm.cs: fixed access to image native object
TextureBrush.jvm.cs: fixed access to image native object
ImageCodecInfo.jvm.cs: fixed ImageCodec namespace
ImageCodec.jvm.cs: refactoring of read/write methods

svn path=/trunk/mcs/; revision=50025
2005-09-14 07:26:52 +00:00
Vladimir Krasnov 61a7879505 ImageCodecInfo.jvm.cs: fixed GetValueFromMetadata, SetResolution
svn path=/trunk/mcs/; revision=49640
2005-09-07 15:40:40 +00:00
Vladimir Krasnov d23b6caec3 System.Drawing.vmwcsproj: ImageCodec.jvm.cs
Added Mainsoft.Drawing.Configuration.jvm folder with
ResolutionConfiguration.cs, ResolutionConfigurationCollection.cs, 
ResolutionConfigurationHandler.cs
Bitmap.jvm.cs: fixed bitamp accessors
Image.jvm.cs: fixed image accessors
ImageCodecInfo.jvm.cs: Refactoring
Added ImageCodec.jvm.cs

svn path=/trunk/mcs/; revision=49628
2005-09-07 10:51:13 +00:00
Vladimir Krasnov d88c2074f3 ImageCodecInfo.jvm.cs: Fixed Iterate
svn path=/trunk/mcs/; revision=49018
2005-08-28 10:12:28 +00:00
Andrew Skiba ed4855c56b ./
* System.Drawing.vmwcsproj: use ImageFormat.cs instead of jvm.cs
System.Drawing/
	* Icon.jvm.cs: match Bitmap internal constructor change
	* Image.jvm.cs: use ImageCodecInfo.Clsid as primary format id, not ImageFormat
	* Bitmap.jvm.cs: started changes for supporting ImageCodecInfo System.Drawing.Imaging/
	* ImageCodecInfo.jvm.cs: implement via java imageio, add internal APIs for
	fast read-only requests
	* Methafile.jvm.cs: change in not implemented api to match image.jvm.cs
Test/DrawingTest/Test/
	* Test.dotnet.csproj, Test.vmwcsproj: make Bitmap1.png embedded resource, add Bitmap1.bmp
	* Bitmap1.bmp: added to make tests on java without jai
	* Bitmap.cs: open bitmap from resources, to get rid of dir dependency
	* Color.cs: remove unnecessary using DrawingTestHelper
	* Graphics.cs: naive StringAlignment tests, must be improved later
	* Image.cs: same as Bitmap.cs + use test.bmp instead of test.png (works immediately on java w/o jai)
Test/System.Drawing.Imaging/
	* TestImageCodecInfo.cs: use regular expressions for results that may vary	while still in correct format, so same tests can be used for jvm
Test/
	* Test.dotnet.csproj, Test.vmwcsproj: Embed Bitmap1.png, add Bitmap1.bmp


svn path=/trunk/mcs/; revision=48441
2005-08-16 17:10:59 +00:00
Andrew Skiba 68a46e3c0a System.Drawing compiles on GH!
svn path=/trunk/mcs/; revision=47963
2005-08-03 15:34:40 +00:00