Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
635fe30e
Commit
635fe30e
authored
May 08, 2010
by
Vincent Povirk
Committed by
Alexandre Julliard
May 10, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Add test for GdipGetImageThumbnail.
parent
0ae0c0c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
73 additions
and
0 deletions
+73
-0
image.c
dlls/gdiplus/tests/image.c
+73
-0
No files found.
dlls/gdiplus/tests/image.c
View file @
635fe30e
...
...
@@ -1212,6 +1212,78 @@ static void test_createhbitmap(void)
expect
(
Ok
,
stat
);
}
static
void
test_getthumbnail
(
void
)
{
GpStatus
stat
;
GpImage
*
bitmap1
,
*
bitmap2
;
UINT
width
,
height
;
stat
=
GdipGetImageThumbnail
(
NULL
,
0
,
0
,
&
bitmap2
,
NULL
,
NULL
);
todo_wine
expect
(
InvalidParameter
,
stat
);
stat
=
GdipCreateBitmapFromScan0
(
128
,
128
,
0
,
PixelFormat32bppRGB
,
NULL
,
(
GpBitmap
**
)
&
bitmap1
);
expect
(
Ok
,
stat
);
stat
=
GdipGetImageThumbnail
(
bitmap1
,
0
,
0
,
NULL
,
NULL
,
NULL
);
todo_wine
expect
(
InvalidParameter
,
stat
);
stat
=
GdipGetImageThumbnail
(
bitmap1
,
0
,
0
,
&
bitmap2
,
NULL
,
NULL
);
todo_wine
expect
(
Ok
,
stat
);
if
(
stat
==
Ok
)
{
stat
=
GdipGetImageWidth
(
bitmap2
,
&
width
);
expect
(
Ok
,
stat
);
expect
(
120
,
width
);
stat
=
GdipGetImageHeight
(
bitmap2
,
&
height
);
expect
(
Ok
,
stat
);
expect
(
120
,
height
);
GdipDisposeImage
(
bitmap2
);
}
GdipDisposeImage
(
bitmap1
);
stat
=
GdipCreateBitmapFromScan0
(
64
,
128
,
0
,
PixelFormat32bppRGB
,
NULL
,
(
GpBitmap
**
)
&
bitmap1
);
expect
(
Ok
,
stat
);
stat
=
GdipGetImageThumbnail
(
bitmap1
,
32
,
32
,
&
bitmap2
,
NULL
,
NULL
);
todo_wine
expect
(
Ok
,
stat
);
if
(
stat
==
Ok
)
{
stat
=
GdipGetImageWidth
(
bitmap2
,
&
width
);
expect
(
Ok
,
stat
);
expect
(
32
,
width
);
stat
=
GdipGetImageHeight
(
bitmap2
,
&
height
);
expect
(
Ok
,
stat
);
expect
(
32
,
height
);
GdipDisposeImage
(
bitmap2
);
}
stat
=
GdipGetImageThumbnail
(
bitmap1
,
0
,
0
,
&
bitmap2
,
NULL
,
NULL
);
todo_wine
expect
(
Ok
,
stat
);
if
(
stat
==
Ok
)
{
stat
=
GdipGetImageWidth
(
bitmap2
,
&
width
);
expect
(
Ok
,
stat
);
expect
(
120
,
width
);
stat
=
GdipGetImageHeight
(
bitmap2
,
&
height
);
expect
(
Ok
,
stat
);
expect
(
120
,
height
);
GdipDisposeImage
(
bitmap2
);
}
GdipDisposeImage
(
bitmap1
);
}
static
void
test_getsetpixel
(
void
)
{
GpStatus
stat
;
...
...
@@ -2099,6 +2171,7 @@ START_TEST(image)
test_createfromwmf
();
test_resolution
();
test_createhbitmap
();
test_getthumbnail
();
test_getsetpixel
();
test_palette
();
test_colormatrix
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment