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
fb6b27de
Commit
fb6b27de
authored
Jun 25, 2012
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jun 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implement GdipGetPropertyIdList.
parent
b9132b68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
5 deletions
+48
-5
image.c
dlls/gdiplus/image.c
+48
-5
No files found.
dlls/gdiplus/image.c
View file @
fb6b27de
...
...
@@ -2420,16 +2420,59 @@ GpStatus WINGDIPAPI GdipGetPropertyCount(GpImage *image, UINT *num)
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipGetPropertyIdList
(
GpImage
*
image
,
UINT
num
,
PROPID
*
list
)
GpStatus
WINGDIPAPI
GdipGetPropertyIdList
(
GpImage
*
image
,
UINT
num
,
PROPID
*
list
)
{
static
int
calls
;
HRESULT
hr
;
IWICMetadataReader
*
reader
;
IWICEnumMetadataItem
*
enumerator
;
UINT
prop_count
,
i
,
items_returned
;
TRACE
(
"(%p, %u, %p)
\n
"
,
image
,
num
,
list
);
if
(
!
(
calls
++
))
FIXME
(
"not implemented
\n
"
);
if
(
!
image
||
!
list
)
return
InvalidParameter
;
return
InvalidParameter
;
if
(
image
->
type
!=
ImageTypeBitmap
)
{
FIXME
(
"Not implemented for type %d
\n
"
,
image
->
type
);
return
NotImplemented
;
}
reader
=
((
GpBitmap
*
)
image
)
->
metadata_reader
;
if
(
!
reader
)
{
if
(
num
!=
0
)
return
InvalidParameter
;
return
Ok
;
}
hr
=
IWICMetadataReader_GetCount
(
reader
,
&
prop_count
);
if
(
FAILED
(
hr
))
return
hresult_to_status
(
hr
);
if
(
num
!=
prop_count
)
return
InvalidParameter
;
hr
=
IWICMetadataReader_GetEnumerator
(
reader
,
&
enumerator
);
if
(
FAILED
(
hr
))
return
hresult_to_status
(
hr
);
IWICEnumMetadataItem_Reset
(
enumerator
);
for
(
i
=
0
;
i
<
num
;
i
++
)
{
PROPVARIANT
id
;
hr
=
IWICEnumMetadataItem_Next
(
enumerator
,
1
,
NULL
,
&
id
,
NULL
,
&
items_returned
);
if
(
hr
!=
S_OK
)
break
;
if
(
id
.
vt
!=
VT_UI2
)
{
FIXME
(
"not supported propvariant type for id: %u
\n
"
,
id
.
vt
);
list
[
i
]
=
0
;
continue
;
}
list
[
i
]
=
id
.
u
.
uiVal
;
}
IWICEnumMetadataItem_Release
(
enumerator
);
return
hr
==
S_OK
?
Ok
:
hresult_to_status
(
hr
);
}
GpStatus
WINGDIPAPI
GdipGetPropertyItem
(
GpImage
*
image
,
PROPID
id
,
UINT
size
,
...
...
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