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
484abd47
Commit
484abd47
authored
Feb 24, 2008
by
Nathan Beckmann
Committed by
Alexandre Julliard
Mar 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implement GdipLoadImageFromFile.
parent
3d802924
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
1 deletion
+28
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
image.c
dlls/gdiplus/image.c
+21
-0
image.c
dlls/gdiplus/tests/image.c
+6
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
484abd47
...
@@ -435,7 +435,7 @@
...
@@ -435,7 +435,7 @@
@ stub GdipIsVisibleRegionPointI
@ stub GdipIsVisibleRegionPointI
@ stub GdipIsVisibleRegionRect
@ stub GdipIsVisibleRegionRect
@ stub GdipIsVisibleRegionRectI
@ stub GdipIsVisibleRegionRectI
@ st
ub GdipLoadImageFromFile
@ st
dcall GdipLoadImageFromFile(wstr ptr)
@ stub GdipLoadImageFromFileICM
@ stub GdipLoadImageFromFileICM
@ stdcall GdipLoadImageFromStream(ptr ptr)
@ stdcall GdipLoadImageFromStream(ptr ptr)
@ stdcall GdipLoadImageFromStreamICM(ptr ptr)
@ stdcall GdipLoadImageFromStreamICM(ptr ptr)
...
...
dlls/gdiplus/image.c
View file @
484abd47
...
@@ -697,6 +697,27 @@ GpStatus WINGDIPAPI GdipImageSelectActiveFrame(GpImage *image,
...
@@ -697,6 +697,27 @@ GpStatus WINGDIPAPI GdipImageSelectActiveFrame(GpImage *image,
return
Ok
;
return
Ok
;
}
}
GpStatus
WINGDIPAPI
GdipLoadImageFromFile
(
GDIPCONST
WCHAR
*
filename
,
GpImage
**
image
)
{
GpStatus
stat
;
IStream
*
stream
;
if
(
!
filename
||
!
image
)
return
InvalidParameter
;
stat
=
GdipCreateStreamOnFile
(
filename
,
GENERIC_READ
,
&
stream
);
if
(
stat
!=
Ok
)
return
stat
;
stat
=
GdipLoadImageFromStream
(
stream
,
image
);
IStream_Release
(
stream
);
return
stat
;
}
GpStatus
WINGDIPAPI
GdipLoadImageFromStream
(
IStream
*
stream
,
GpImage
**
image
)
GpStatus
WINGDIPAPI
GdipLoadImageFromStream
(
IStream
*
stream
,
GpImage
**
image
)
{
{
IPicture
*
pic
;
IPicture
*
pic
;
...
...
dlls/gdiplus/tests/image.c
View file @
484abd47
...
@@ -114,6 +114,12 @@ static void test_LoadingImages(void)
...
@@ -114,6 +114,12 @@ static void test_LoadingImages(void)
stat
=
GdipCreateBitmapFromFile
(
0
,
(
GpBitmap
**
)
0xdeadbeef
);
stat
=
GdipCreateBitmapFromFile
(
0
,
(
GpBitmap
**
)
0xdeadbeef
);
expect
(
InvalidParameter
,
stat
);
expect
(
InvalidParameter
,
stat
);
stat
=
GdipLoadImageFromFile
(
0
,
0
);
expect
(
InvalidParameter
,
stat
);
stat
=
GdipLoadImageFromFile
(
0
,
(
GpImage
**
)
0xdeadbeef
);
expect
(
InvalidParameter
,
stat
);
}
}
START_TEST
(
image
)
START_TEST
(
image
)
...
...
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