160 Commits
Author SHA1 Message Date
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
Andrew Skiba 16b2d484ec TARGET_JVM flag fix
svn path=/trunk/mcs/; revision=47961
2005-08-03 14:48:53 +00:00
Andrew Skiba 1825fb6ca5 * ColorPalette.cs, FrameDimension.cs, EncoderParameters.cs: TARGET_JVM
exclude not supported internal methods
	* EncoderParameter.jvm.cs, ImageAttributes.jvm.cs, ImageFormat.jvm.cs,
	ImageCodecInfo.jvm.cs: added TARGET_JVM implementation of these classes

svn path=/trunk/mcs/; revision=47959
2005-08-03 13:54:01 +00:00
Ben Maurer 0e8decdb37 remove svn:executable from .cs files
svn path=/trunk/mcs/; revision=46562
2005-06-27 15:51:40 +00:00
Jordi Mas i Hernandez 5ee56869b8 In System.Drawing.Imaging:
2005-03-23 Jordi Mas i Hernandez <[email protected]>

	* ColorPalette.cs: fixes ColorPalette marshaling	

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

	* gdipFunctions.cs: fixes GdipGetImagePalette signature
	* Image.cs: Implements Palette property using gdiplus	  


svn path=/trunk/mcs/; revision=42133
2005-03-23 09:40:43 +00:00
Jordi Mas i Hernandez 49d833f94c 2004-03-21 Jordi Mas i Hernadez <[email protected]>
* ColorMatrix.cs: fixes Matrix00 init 
	* ImageAttributes.cs: fixes dispose method and signature


svn path=/trunk/mcs/; revision=42045
2005-03-21 11:21:50 +00:00
Jordi Mas i Hernandez 9fb6d31fbc 2004-02-25 Jordi Mas i Hernadez <[email protected]>
* ColorMatrix.cs: rewritten to be able to marshall it properly
	

svn path=/trunk/mcs/; revision=41197
2005-02-25 13:16:53 +00:00
Jordi Mas i Hernandez 8f9c22ce10 Zoltan's fixes of SD marshalling in AMD64
svn path=/trunk/mcs/; revision=38108
2004-12-27 17:31:16 +00:00
Marek Safar f405a09600 removed unused variables
svn path=/trunk/mcs/; revision=36532
2004-11-25 10:11:32 +00:00
Miguel de Icaza 26630c5262 2004-11-03 Miguel de Icaza <[email protected]>
* TextureBrush.cs (Clone): While cloning, it is not enough to let
	GDIPlus clone the underlying data, we must alos clone the managed
	information.

	* Pen.cs (Dispose): Set the nativeObject to IntPtr.Zero to catch
	errors in the future, set the lock on the object before doing any
	other tests, not after.

	(Clone): While cloning, it is not enough to let
	GDIPlus clone the underlying data, we must alos clone the managed
	information.

	* Brush.cs (Dispose): Set the nativeObject to IntPtr.Zero to catch
	errors in the future.

	Set the lock in the object before checkign disposed.

	* SolidBrush.cs (Clone): While cloning, it is not enough to let
	GDIPlus clone the underlying data, we must alos clone the managed
	information.

	(Dispose): Set the nativeObject to IntPtr.Zero to catch
	errors in the future.

2004-11-03  Miguel de Icaza  <[email protected]>

	* ColorPalette.cs: Add internal Clone method

svn path=/trunk/mcs/; revision=35607
2004-11-03 20:01:04 +00:00
Ravindra 6dcd8a5283 * BitmapData.cs: Synchronized the class with BitmapData struct in
libgdiplus.

svn path=/trunk/mcs/; revision=34807
2004-10-08 13:37:17 +00:00
Sachin Kumar 15a49e8b92 Add license and copyright to all source files in System.Drawing
svn path=/trunk/mcs/; revision=29667
2004-06-16 06:32:39 +00:00
Gert Driesen f5d2c69c7a * EmfPlusRecordType.cs: fixed mismatches in enum field values
svn path=/trunk/mcs/; revision=29482
2004-06-14 05:47:33 +00:00
Miguel de Icaza f879a12f34 API signature fixes
svn path=/trunk/mcs/; revision=29136
2004-06-09 20:15:14 +00:00
Jordi Mas i Hernandez 62a16ab086 fixes GDI+ parameter call
svn path=/trunk/mcs/; revision=27605
2004-05-18 17:55:45 +00:00
Gert Driesen c76c6cfac3 * EncoderParameterValueType.cs: fix Windows build (CSC),
MCS bug #58571

* EncoderParameter.cs: removed ctors taking int value,
to fix public API

svn path=/trunk/mcs/; revision=27472
2004-05-16 11:28:07 +00:00
Vladimir Vukicevic e932bf2d09 * EncoderParameters.cs: Added ToNativePtr() method to marshal
struct correctly to a native struct.  Resulting data should be
FreeHGlobal'd when finished.

* EncoderParameter.cs: Changed data storage to correspond to
native code layout.  Also changed layout to match native layout.

* EncoderParameterValueType.cs: force EncoderParameterValueType to
be Int32

* gdipFunctions.cs: Fixed prototype for
GdipGetEncoderParameterList

* Image.cs: Reworked Save functions to handle EncoderParameters.
Implemented GetEncoderParameterList.
Also removed unused setGDIPalette internal method.

svn path=/trunk/mcs/; revision=27467
2004-05-15 23:33:15 +00:00
Jordi Mas i Hernandez 28eafe391c make private data private
svn path=/trunk/mcs/; revision=27240
2004-05-13 07:39:14 +00:00
Sanja Gupta 68aa476b9c ChangeLog: Updated ChangeLog
MetafileHeader.cs: Added internal constructor.
PropertyItem.cs: Added internal constructor.

svn path=/trunk/mcs/; revision=27225
2004-05-13 05:17:42 +00:00
Sanja Gupta 460cda8266 ChangeLog: Updated ChangeLog.
Metafile.cs: Added Editor attribute to class Metafile.

svn path=/trunk/mcs/; revision=27214
2004-05-13 03:00:29 +00:00
Sanja Gupta 71f4f40e36 ChangeLog: Updated ChangeLog.
WmfPlaceablleFileHeader.cs: Removed extra property Id.

svn path=/trunk/mcs/; revision=27213
2004-05-13 02:50:09 +00:00
Vladimir Vukicevic 840e2f96ba * BitmapData.cs: re-synchronized with libgdiplus; also
removed memory deallocs here (as the data is always owned
by libgdiplus)

svn path=/trunk/mcs/; revision=26718
2004-05-04 22:19:34 +00:00
Sanja Gupta ef1ee6e268 ImageCodecInfo.cs: Removed unwanted characters which crept in bcos of my carelessness.
svn path=/trunk/mcs/; revision=26148
2004-04-28 13:37:06 +00:00