Commit Graph

310 Commits

Author SHA1 Message Date
Nathan Beckmann 2824aa2d33 gdiplus: Fix test crash in GdipSaveImageToStream.
Correctly initialized parameters to GetDIBits (based on
GdipLockBitmapBits).
2008-03-17 15:09:53 +01:00
Michael Stefaniuc 0745ccb926 gdiplus/tests: Remove redundant NULL check before GdipFree(). 2008-03-12 11:59:15 +01:00
Nathan Beckmann 67e811cc3c gdiplus: Add more sophisticated tests for GdipSaveImageToFile.
Add a test to make sure the saved image has the same dimensions as
original. Delete the test file when finished.
2008-03-10 20:22:56 +01:00
Nathan Beckmann 75841d8323 gdiplus: Implement BMP encoding.
Implement the encoding function for GDI+ images so that
GdipSaveImageToStream can encode images as BMP files.
2008-03-10 20:22:43 +01:00
Nathan Beckmann 9475e3f53b gdiplus: Implement GdipSaveImageToStream using encoders.
Add the correct framework for a fully-functional implementation of
image encoding (not a hack like before). Currently, only a stub for
BMP encoding is supported. New tests added as well.
2008-03-10 20:22:27 +01:00
Nathan Beckmann 7900947ce3 gdiplus: Implement GdipSaveImageToFile via GdipSaveImageToStream.
Still need to implement saving the image based on the encoder
parameter.
Basic tests included.
2008-03-10 20:21:14 +01:00
Nathan Beckmann f4b4d03a19 gdiplus: Remove unnecessary IStream_AddRef from GdipLoadImageFromFile. 2008-03-10 20:20:50 +01:00
Nathan Beckmann e3f8f30a21 gdiplus: Return an error for consecutive GdipLockBitmapBit calls. 2008-03-10 12:09:50 +01:00
Nathan Beckmann eabc62db00 gdiplus: Update bitmap state in GdipUnlockBitmapBits. 2008-03-10 12:09:40 +01:00
Nathan Beckmann 08d49d3e33 gdiplus: Fix memory leak in GdipLockBitmapBits. 2008-03-10 12:09:32 +01:00
Nathan Beckmann 738e74a14b gdiplus: Tests for GdipLockBitmapBits/GdipUnlockBitmapBits. 2008-03-10 12:09:18 +01:00
Nathan Beckmann 366854a7cc gdiplus: Implement GdipGetImageEncoders. 2008-03-07 11:29:05 +01:00
Ethan Chen e0552c1bc6 gdiplus: Implemented GdipCreateBitmapFromFileICM. 2008-03-06 17:38:54 +01:00
Nathan Beckmann 66067423d1 gdiplus: Fix errors in image dimensions. 2008-03-06 13:19:29 +01:00
Rob Shearman 48000893f9 makefiles: Simplify the use of the IMPORTLIB variable in the DLL makefiles.
Only specify the root to keep platform-specifics out of the individual 
DLL makefiles.
2008-03-04 20:55:01 +01:00
Nathan Beckmann 484abd472e gdiplus: Implement GdipLoadImageFromFile. 2008-03-03 12:20:29 +01:00
Nathan Beckmann 3d802924cb gdiplus: Add tests for GdipCreateBitmapFromFile. 2008-03-03 12:20:15 +01:00
Nathan Beckmann f49c7bb450 gdiplus: Fix IStream_Release in GdipCreateBitmapFromFile. 2008-03-03 12:19:59 +01:00
Francois Gouget a764731983 gdiplus/tests: Add the trailing '\n' to a couple of ok() calls. 2008-03-03 12:03:58 +01:00
Jon Yang 29bc9ba14e gdiplus: Implemented GdipDrawImageRectRectI. 2008-03-01 12:21:19 +01:00
Andrew Talbot 5e8253aaf9 gdiplus: Assign to structs instead of using memcpy. 2008-03-01 12:02:26 +01:00
Royal Chan 6e7b5347e3 gdiplus: Implement GdipDrawLinesI based on GdipDrawLines. 2008-02-29 20:07:13 +01:00
Jon Yang 84d260ec60 gdiplus: Implemented and tested GdipGetImageDimension(). 2008-02-29 12:49:26 +01:00
Royal Chan b83abb6122 gdiplus: Added conformance tests for GdipDrawLineI. 2008-02-26 11:23:29 +01:00
Royal Chan ea92872af0 gdiplus: GdipDrawArc should return InvalidParameter for non-positive values of height and width. 2008-02-26 11:23:16 +01:00
Royal Chan fc31303780 diplus: Implemented GdipDrawArcI based on GdipDrawArc. 2008-02-26 11:22:38 +01:00
Royal Chan da161a50f3 diplus: Implement GdipDrawBezierI based on GdipDrawBezier. 2008-02-26 11:22:26 +01:00
Royal Chan c86f2c29ff gdiplus: draw_polyline never sets status from GenericError to Ok on successful calls. 2008-02-15 11:39:35 +01:00
Reece H. Dunn 571a383d7e gdiplus: Fix the bezier arc path test on all Windows platforms. 2008-02-05 12:19:36 +01:00
Alistair Leslie-Hughes 277817aad3 gdiplus: Add GdipSetStringFormatFlags stub. 2008-02-05 12:06:31 +01:00
Alistair Leslie-Hughes 9f0f97706d gdiplus: Add GdipSetPenMode stub. 2008-02-05 12:06:21 +01:00
Dan Kegel cee693108a gdiplus/tests: Don't free if alloc failed. 2008-01-14 13:10:55 +01:00
Andrew Talbot 507daae427 gdiplus: Remove unneeded casts. 2008-01-08 12:54:06 +01:00
Michael Stefaniuc 1f26b146d1 janitorial: Remove superfluous backslashes at end of lines. 2007-12-31 19:23:45 +01:00
Lei Zhang 003b5de4f2 gdiplus: Add GdipCreatePen2 and test cases. 2007-12-31 16:45:34 +01:00
Lei Zhang b810430f1f gdiplus: Initialize a variable in a test. 2007-12-31 16:45:29 +01:00
Stefan Leichter bfffb4f461 gdiplus: Partly implement GdipCreateFromHDC2 2007-12-23 14:17:12 +01:00
Andrew Riedi ef00028407 gdiplus: Add GdipCreateHBITMAPFromBitmap() stub. 2007-12-20 10:47:11 +01:00
Alexandre Julliard ad9396302d Removed some unneeded imports. 2007-12-06 21:24:24 +01:00
Andrew Talbot dfac0635f6 gdiplus: Fix some memory leaks. 2007-09-27 19:25:00 +02:00
Francois Gouget 2993785f3a Assorted non-ANSI function declaration fixes (missing void). 2007-08-30 11:57:18 +02:00
Francois Gouget b6b97b1efa gdiplus: Add some missing or related prototypes and types.
Fix the GdipDrawRectangles() prototype.
2007-08-30 11:57:18 +02:00
Evan Stade b1237257f0 gdiplus: Fix default value of StringTrimmingCharacter. 2007-08-16 11:41:37 +02:00
Evan Stade f46b779451 gdiplus/tests: Added GpStringFormat tests. 2007-08-16 11:41:27 +02:00
Evan Stade 4e041fe4b9 gdiplus/tests: Added GdipAddPathLineI test. 2007-08-16 11:41:13 +02:00
Evan Stade be66c3c93b gdiplus: Use DrawText instead of TabbedTextOut. 2007-08-16 11:41:03 +02:00
Evan Stade ca94939308 gdiplus: Handle empty layout rectangle in GdipDrawString. 2007-08-16 11:40:55 +02:00
Evan Stade 44e983925a gdiplus: Handle empty layout rectangle in GdipMeasureString. 2007-08-16 11:40:46 +02:00
Evan Stade d4107db6bb gdiplus: Handle StringFormatFlagsNoWrap in GdipMeasureString. 2007-08-16 11:40:36 +02:00
Evan Stade 3f32083ed7 gdiplus: Handle StringFormatFlagsNoWrap in GdipDrawString. 2007-08-16 11:40:29 +02:00