Commit Graph

1356 Commits

Author SHA1 Message Date
Francois Gouget 1051a107a4 gdiplus/tests: Make pixels_to_units() static. 2012-08-16 17:08:00 +02:00
Dmitry Timoshkov e3d27c42d9 gdiplus: Make GdipSetPropertyItem return Ok. 2012-08-16 11:59:12 +02:00
Dmitry Timoshkov 7c8e8fc5e2 gdiplus: Dump the matrix passed to GdipSetWorldTransform. 2012-08-16 11:58:57 +02:00
Dmitry Timoshkov e7b5e69843 gdiplus: Properly convert source coordinates to device units in GdipDrawImagePointsRect. 2012-08-16 11:58:51 +02:00
Dmitry Timoshkov 938d42c148 gdiplus: When there is no target rectangle specified DrawImage should scale image to device dpi. 2012-08-16 11:58:42 +02:00
Dmitry Timoshkov 7f1cb3bca2 gdiplus: Destination points passed to GdipDrawImagePointsRect should be in device units. 2012-08-16 11:58:34 +02:00
Dmitry Timoshkov fa7a34b907 gdiplus: Forward GdipDrawImage to GdipDrawImagePointRect. 2012-08-15 13:55:11 +02:00
Dmitry Timoshkov 3b8f437f44 gdiplus: Add a test for GdipDrawImage scaling. 2012-08-15 13:54:59 +02:00
Dmitry Timoshkov 50931d8985 gdiplus: Add a test for font height scaling. 2012-08-15 13:54:55 +02:00
Dmitry Timoshkov 6bb353858e gdiplus: Replace convert_unit() by a clearer units_to_pixels() helper. 2012-08-15 13:53:31 +02:00
Dmitry Timoshkov 6f4625559e gdiplus: GdipMeasureString should apply its internal scaling factors to layout rectangle. 2012-08-15 13:52:52 +02:00
Dmitry Timoshkov 889be9d447 gdiplus: get_font_hfont helper should transform returned font height using font and device unit/resolution/scale. 2012-08-14 16:41:56 +02:00
Dmitry Timoshkov f8b1154226 gdiplus: GdipGetLogFontW should transform returned font height using font and device unit/resolution/scale. 2012-08-14 16:41:55 +02:00
Dmitry Timoshkov e9af648aeb Revert commit b20a1f56b0. 2012-08-14 16:41:55 +02:00
Dmitry Timoshkov b953011f9e gdiplus: Add more tests for GdipMeasureString using device with custom resolution. 2012-08-14 16:41:53 +02:00
Michael Stefaniuc 60bef14094 gdiplus: Remove unreachable break after return (Smatch). 2012-08-13 12:07:46 +02:00
Dmitry Timoshkov af042f2754 gdiplus: Correct GdipSaveImageToFile spec entry. 2012-08-13 11:49:27 +02:00
Dmitry Timoshkov 3298a30211 gdiplus: Improve precision of calculated pixel to units transformation. 2012-07-31 17:59:12 +02:00
Dmitry Timoshkov e6c69e9685 gdiplus: Add some GdipTransformPoints tests for a device with different x/y resolutions. 2012-07-26 11:08:02 +02:00
Dmitry Timoshkov e536a128f7 gdiplus: Store device resolution in the graphics object. 2012-07-26 11:07:41 +02:00
Dmitry Timoshkov 9697829511 gdiplus: Add missing 'break'. 2012-07-26 11:07:24 +02:00
Dmitry Timoshkov c67951c70a gdiplus: Handle image loading failures under some XP versions. 2012-07-25 20:14:57 +02:00
Dmitry Timoshkov 0b40df2990 gdiplus: Make get_palette() usable for generating predefined palettes. 2012-07-25 20:13:58 +02:00
Dmitry Timoshkov f165e2725f gdiplus: Add 8bppGray to the list of supported formats. 2012-07-25 20:13:55 +02:00
Dmitry Timoshkov 271d801ea4 gdiplus: Use predefined palette if an image doesn't provide one. 2012-07-25 20:13:52 +02:00
Dmitry Timoshkov 45cdafc5e8 gdiplus: Add 8bppIndexed to the list of supported formats. 2012-07-25 20:13:18 +02:00
Dmitry Timoshkov dce93479ea gdiplus: Retrieve image palette from WIC. 2012-07-25 20:13:07 +02:00
Dmitry Timoshkov 7bcfb02169 gdiplus: Set actual resolution of an image being encoded. 2012-07-20 21:30:03 +02:00
Dmitry Timoshkov b20a1f56b0 gdiplus: GdipMeasureString operates internally in pixels but in/out rectangles are in device units. 2012-07-18 17:17:46 +02:00
Dmitry Timoshkov 9288acda1d gdiplus: GdipGetFontHeight should convert height from font to device units. 2012-07-18 17:17:38 +02:00
Dmitry Timoshkov ed8a3304c4 gdiplus: Factor out units_to_pixels() helper. 2012-07-18 17:17:31 +02:00
Dmitry Timoshkov 9da37c769e gdiplus: Add a test for font and graphics using different base units. 2012-07-18 17:17:14 +02:00
Dmitry Timoshkov d104741a3c gdiplus: Add support for converting RGB formats to 1bpp indexed. 2012-07-17 13:09:41 +02:00
Dmitry Timoshkov 2ed1aaa930 gdiplus: Add support for converting RGB formats to 8bpp indexed. 2012-07-17 13:09:41 +02:00
Dmitry Timoshkov d9f4df0619 gdiplus: Pass palette instead of bitmap to setpixel helpers. 2012-07-17 13:09:40 +02:00
Dmitry Timoshkov 87f8e560c2 gdiplus: Pass complete palette info to convert_pixels(). 2012-07-17 13:09:40 +02:00
Dmitry Timoshkov a46c1f780a gdiplus: Use public ColorPalette structure to store image palette. 2012-07-17 13:09:39 +02:00
Dmitry Timoshkov 85d3d760d7 gdiplus: Add some tests for GdipBitmapLockBits/GdipBitmapUnlockBits. 2012-07-17 13:09:21 +02:00
Dmitry Timoshkov c108fd6bf9 gdiplus: Make sure that GdipBitmapLockBits stores valid lockmode. 2012-07-17 12:54:20 +02:00
Dmitry Timoshkov ebf31c0ac6 gdiplus: Fix palette flags for a not indexed 1-bpp image. 2012-07-16 18:19:46 +02:00
Dmitry Timoshkov eca107412c gdiplus: Make sure that 1bpp bitmap images get loaded in native format. 2012-07-16 18:19:38 +02:00
Alexandre Julliard 9ff2bbc3c8 gdiplus: Avoid out of bounds access warning. 2012-07-16 14:28:31 +02:00
Vincent Povirk 12f1ed2b3e gdiplus: Accept a transformation matrix in GdipFlattenPath. 2012-07-12 14:07:39 -05:00
Vincent Povirk cbfc79aae5 gdiplus: Implement LineJoinMiterClipped and partially implement LineJoinMiter. 2012-07-12 14:07:33 -05:00
Vincent Povirk 198fb25d17 gdiplus: Fix memory leak in GdipImageRotateFlip. 2012-07-12 11:48:56 -05:00
Vincent Povirk 577740f0d7 gdiplus: Fix GdipImageRotateFlip for images from streams. 2012-07-12 11:48:52 -05:00
Dmitry Timoshkov dfefd3a3b4 gdiplus: Add a test for palette associated with black&white TIFF image. 2012-07-12 11:48:27 -05:00
Dmitry Timoshkov 1f3b53c5d8 gdiplus: Fix the convert_unit() comment to reflect its functionality. 2012-07-03 12:59:01 +02:00
Dmitry Timoshkov 56621638df gdiplus: Add parameter checks to GdipSetPropertyItem, print item contents in the trace. 2012-07-03 12:58:56 +02:00
Dmitry Timoshkov b61a1ba322 gdiplus: Add some tests for GdipGetPropertySize and GdipGetAllPropertyItems. 2012-07-02 11:00:37 +02:00