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
8b15fa4b
Commit
8b15fa4b
authored
Nov 24, 2008
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Improve GdipGetImageRawFormat stub.
parent
6122c77b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
2 deletions
+24
-2
image.c
dlls/gdiplus/image.c
+12
-2
gdiplusimaging.h
include/gdiplusimaging.h
+12
-0
No files found.
dlls/gdiplus/image.c
View file @
8b15fa4b
...
...
@@ -28,6 +28,7 @@
#include "olectl.h"
#include "ole2.h"
#include "initguid.h"
#include "gdiplus.h"
#include "gdiplus_private.h"
#include "wine/debug.h"
...
...
@@ -785,9 +786,18 @@ GpStatus WINGDIPAPI GdipGetImageRawFormat(GpImage *image, GUID *format)
return
InvalidParameter
;
if
(
!
(
calls
++
))
FIXME
(
"
not implemented
\n
"
);
FIXME
(
"
stub
\n
"
);
return
NotImplemented
;
/* FIXME: should be detected from embedded picture or stored separately */
switch
(
image
->
type
)
{
case
ImageTypeBitmap
:
*
format
=
ImageFormatBMP
;
break
;
case
ImageTypeMetafile
:
*
format
=
ImageFormatEMF
;
break
;
default:
WARN
(
"unknown type %u
\n
"
,
image
->
type
);
*
format
=
ImageFormatUndefined
;
}
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipGetImageType
(
GpImage
*
image
,
ImageType
*
type
)
...
...
include/gdiplusimaging.h
View file @
8b15fa4b
...
...
@@ -19,6 +19,18 @@
#ifndef _GDIPLUSIMAGING_H
#define _GDIPLUSIMAGING_H
DEFINE_GUID
(
ImageFormatUndefined
,
0xb96b3ca9
,
0x728
,
0x11d3
,
0x9d
,
0x7b
,
0
,
0
,
0xf8
,
0x1e
,
0xf3
,
0x2e
);
DEFINE_GUID
(
ImageFormatMemoryBMP
,
0xb96b3caa
,
0x728
,
0x11d3
,
0x9d
,
0x7b
,
0
,
0
,
0xf8
,
0x1e
,
0xf3
,
0x2e
);
DEFINE_GUID
(
ImageFormatBMP
,
0xb96b3cab
,
0x728
,
0x11d3
,
0x9d
,
0x7b
,
0
,
0
,
0xf8
,
0x1e
,
0xf3
,
0x2e
);
DEFINE_GUID
(
ImageFormatEMF
,
0xb96b3cac
,
0x728
,
0x11d3
,
0x9d
,
0x7b
,
0
,
0
,
0xf8
,
0x1e
,
0xf3
,
0x2e
);
DEFINE_GUID
(
ImageFormatWMF
,
0xb96b3cad
,
0x728
,
0x11d3
,
0x9d
,
0x7b
,
0
,
0
,
0xf8
,
0x1e
,
0xf3
,
0x2e
);
DEFINE_GUID
(
ImageFormatJPEG
,
0xb96b3cae
,
0x728
,
0x11d3
,
0x9d
,
0x7b
,
0
,
0
,
0xf8
,
0x1e
,
0xf3
,
0x2e
);
DEFINE_GUID
(
ImageFormatPNG
,
0xb96b3caf
,
0x728
,
0x11d3
,
0x9d
,
0x7b
,
0
,
0
,
0xf8
,
0x1e
,
0xf3
,
0x2e
);
DEFINE_GUID
(
ImageFormatGIF
,
0xb96b3cb0
,
0x728
,
0x11d3
,
0x9d
,
0x7b
,
0
,
0
,
0xf8
,
0x1e
,
0xf3
,
0x2e
);
DEFINE_GUID
(
ImageFormatTIFF
,
0xb96b3cb1
,
0x728
,
0x11d3
,
0x9d
,
0x7b
,
0
,
0
,
0xf8
,
0x1e
,
0xf3
,
0x2e
);
DEFINE_GUID
(
ImageFormatEXIF
,
0xb96b3cb2
,
0x728
,
0x11d3
,
0x9d
,
0x7b
,
0
,
0
,
0xf8
,
0x1e
,
0xf3
,
0x2e
);
DEFINE_GUID
(
ImageFormatIcon
,
0xb96b3cb5
,
0x728
,
0x11d3
,
0x9d
,
0x7b
,
0
,
0
,
0xf8
,
0x1e
,
0xf3
,
0x2e
);
enum
ImageLockMode
{
ImageLockModeRead
=
1
,
...
...
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