* 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
* 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
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
Updated System.Drawing, lots of cleanups.
Added JPEG encoder/decoder back to Bitmap.
We can load and save images again.
Still need work to support all formats, everywhere
PNG codec broken (but at least its plugged back).
2003-10-23 Miguel de Icaza <[email protected]>
* bitmap.c (GdipCreateBitmapFromScan0): Do not allocate buffer
here, expect that our caller to allocate that.
Do not compute the stride here, expect our caller to do this
properly.
* Use the Mono coding conventions.
2003-10-23 Miguel de Icaza <[email protected]>
* Image.cs: Kill the InternalImageInfo, everything is now done in
terms of Image and BitmapData.
* Rectangle.cs: Make this one also sequential, change from using
Point + Size to use x, y, width, height; So we can use GdiPlus.
* gdipFunctions.cs (GdipBitmapLockBits): Remove the ref from the
BitmapData class argument, and instead use the [In,Out]
attributes, which will do struct marshalling on the fields. Now
we can use C#'s BitmapData directly to talk to Gdiplus.
* gdipStructs.cs: Every internal structure that has to talk to
Gdi+ is properly prefixed, to minimize the confussion.
* Bitmap.cs Bitmap (int width, int height, PixelFormat format):
Compute the stride here where we have the BPP information,
allocate a buffer of the proper size, and pass this to
GdipCreateBitmapFromScan0
* Image.cs: Implement Dispose pattern.
2003-10-23 Miguel de Icaza <[email protected]>
* JPEGCodec.cs (JSAMPARRAY): Do not allocate memory here anymore,
we will just have the JPEG library copy directly into our buffer.
(Encode, Decode): Ported to the new model which avoid copies, and
eliminates InternalImageInfo.
TODO: need to port the PNG coder/decoder, and add support for RGBA
images which got dropped from this version
* BmpCodec.cs: Rework this one to use BitmapData and Image. Do
not use the RawBytes property, instead pull the data one line at a
time, and write that out.
* ImageCodecInfo.cs: Make the encoding and decoding delegates take
a Image parameter;
* BmpCodec.cs:
* BitmapData.cs: Make this one sequential, and also mimic the
layout of GdiPlus.h so we can use this instead of making copies
back and forth.
svn path=/trunk/mcs/; revision=19354
* PropertyItem.cs t
* MetaHeader.cs t
* MetafileHeader.cs t
* Metafile.cs t
* ImageFormat.cs t
* ImageCodecInfo.cs t
* ColorMatrix.cs t
* ColorMap.cs t
* WmfPlaceableFileHeader.cs t
* Added todos back
svn path=/trunk/mcs/; revision=7435