Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
de5b4d7c
Commit
de5b4d7c
authored
Jul 01, 2008
by
Adam Petaccia
Committed by
Alexandre Julliard
Jul 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Test GdipCloneImage.
parent
af29f969
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
image.c
dlls/gdiplus/tests/image.c
+30
-0
No files found.
dlls/gdiplus/tests/image.c
View file @
de5b4d7c
...
...
@@ -478,6 +478,35 @@ static void test_GdipGetImageFlags(void)
expect
(
InvalidParameter
,
stat
);
}
static
void
test_GdipCloneImage
(
void
)
{
GpStatus
stat
;
GpRectF
rectF
;
GpUnit
unit
;
GpBitmap
*
bm
;
GpImage
*
image_src
,
*
image_dest
=
NULL
;
const
INT
WIDTH
=
10
,
HEIGHT
=
20
;
/* Create an image, clone it, delete the original, make sure the copy works */
stat
=
GdipCreateBitmapFromScan0
(
WIDTH
,
HEIGHT
,
0
,
PixelFormat24bppRGB
,
NULL
,
&
bm
);
expect
(
Ok
,
stat
);
todo_wine
{
image_src
=
((
GpImage
*
)
bm
);
stat
=
GdipCloneImage
(
image_src
,
&
image_dest
);
expect
(
Ok
,
stat
);
}
stat
=
GdipDisposeImage
((
GpImage
*
)
bm
);
expect
(
Ok
,
stat
);
todo_wine
{
stat
=
GdipGetImageBounds
(
image_dest
,
&
rectF
,
&
unit
);
expect
(
Ok
,
stat
);
stat
=
GdipDisposeImage
(
image_dest
);
expect
(
Ok
,
stat
);
}
}
START_TEST
(
image
)
{
struct
GdiplusStartupInput
gdiplusStartupInput
;
...
...
@@ -499,6 +528,7 @@ START_TEST(image)
test_LockBits
();
test_GdipCreateBitmapFromHBITMAP
();
test_GdipGetImageFlags
();
test_GdipCloneImage
();
GdiplusShutdown
(
gdiplusToken
);
}
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