Commit Graph
153 Commits
Author SHA1 Message Date
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
Sanja Gupta 6c4e289c38 ChangeLog: Updated ChangeLog
Modified Files: Converted from dos2unix format

 Modified Files:
 	BitmapData.cs ChangeLog ColorAdjustType.cs ColorChannelFlag.cs
 	ColorMap.cs ColorMapType.cs ColorMatrix.cs ColorMatrixFlag.cs
 	ColorMode.cs ColorPalette.cs EmfPlusRecordType.cs EmfType.cs
 	Encoder.cs EncoderParameter.cs EncoderParameterValueType.cs
 	EncoderParameters.cs EncoderValue.cs FrameDimension.cs
 	ImageAttributes.cs ImageCodecFlags.cs ImageCodecInfo.cs
 	ImageFlags.cs ImageFormat.cs ImageLockMode.cs MetaHeader.cs
 	Metafile.cs MetafileFrameUnit.cs MetafileHeader.cs
 	MetafileType.cs PaletteFlags.cs PixelFormat.cs
 	PlayRecordCallback.cs PropertyItem.cs
 	WmfPlaceableFileHeader.cs

svn path=/trunk/mcs/; revision=26145
2004-04-28 13:21:54 +00:00
Jordi Mas i Hernandez 50ef6981e5 remove C sharp based codec info
svn path=/trunk/mcs/; revision=26137
2004-04-28 12:22:16 +00:00
Ravindra a8a1eee996 Implemented ImageAttributes.SetWrapMode method.
svn path=/trunk/mcs/; revision=26125
2004-04-28 09:36:32 +00:00
Jordi Mas i Hernandez acf920e23f Codecs use gdi+ and fixes
svn path=/trunk/mcs/; revision=26123
2004-04-28 09:08:30 +00:00
Sanja Gupta 7a9a226722 ChangeLog: Updated ChangeLog
ImageFormat.cs: Implemented Equals() method

svn path=/trunk/mcs/; revision=26117
2004-04-28 06:47:41 +00:00
Sanja Gupta 0604a6f44d ChangeLog: Updated ChangeLog
ImageFormat.cs: Implemented ToString() method.

svn path=/trunk/mcs/; revision=26053
2004-04-27 11:39:09 +00:00
Vladimir Vukicevic 2a17599938 Note: Some functionality is (temporarily) lost from System.Drawing --
reading bmp files is not yet implemented, and only png files can be
written.  Support for the rest will show up in the next few days.

* gdipFunctions.cs: Added stream delegate helpers for
stream loading/saving on linux

* Image.cs, Bitmap.cs: Converted to call into GDIPlus for
loading/saving image data.

* BitmapData.cs: synced up data structure with libgdiplus

* BmpCodec.cs, JPEGCodec.cs, PNGCodec.cs: Removed codec impls,
left just codecinfo getters; the codecs are in libgdiplus

* ImageCodecInfo.cs: removed encode/decode delegates

svn path=/trunk/mcs/; revision=25083
2004-04-06 09:05:48 +00:00