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
e91d1245
Commit
e91d1245
authored
Jul 31, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Aug 01, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added GdipGetMetafileHeaderFromMetafile stub.
parent
44412cf1
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
155 additions
and
1 deletion
+155
-1
customlinecap.c
dlls/gdiplus/customlinecap.c
+1
-0
gdiplus.c
dlls/gdiplus/gdiplus.c
+2
-0
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
image.c
dlls/gdiplus/image.c
+14
-0
imageattributes.c
dlls/gdiplus/imageattributes.c
+1
-0
pathiterator.c
dlls/gdiplus/pathiterator.c
+1
-0
gdiplusenums.h
include/gdiplusenums.h
+11
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
gdiplusmetaheader.h
include/gdiplusmetaheader.h
+123
-0
No files found.
dlls/gdiplus/customlinecap.c
View file @
e91d1245
...
...
@@ -20,6 +20,7 @@
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "gdiplus.h"
#include "gdiplus_private.h"
...
...
dlls/gdiplus/gdiplus.c
View file @
e91d1245
...
...
@@ -23,6 +23,8 @@
#include "winbase.h"
#include "winerror.h"
#include "wine/debug.h"
#include "wingdi.h"
#include "gdiplus.h"
#include "gdiplus_private.h"
...
...
dlls/gdiplus/gdiplus.spec
View file @
e91d1245
...
...
@@ -317,7 +317,7 @@
@ stub GdipGetMetafileDownLevelRasterizationLimit
@ stub GdipGetMetafileHeaderFromEmf
@ stub GdipGetMetafileHeaderFromFile
@ st
ub GdipGetMetafileHeaderFromMetafile
@ st
dcall GdipGetMetafileHeaderFromMetafile(ptr ptr)
@ stub GdipGetMetafileHeaderFromStream
@ stub GdipGetMetafileHeaderFromWmf
@ stub GdipGetNearestColor
...
...
dlls/gdiplus/image.c
View file @
e91d1245
...
...
@@ -134,6 +134,20 @@ GpStatus WINGDIPAPI GdipGetImageWidth(GpImage *image, UINT *width)
return
NotImplemented
;
}
GpStatus
WINGDIPAPI
GdipGetMetafileHeaderFromMetafile
(
GpMetafile
*
metafile
,
MetafileHeader
*
header
)
{
static
int
calls
;
if
(
!
metafile
||
!
header
)
return
InvalidParameter
;
if
(
!
(
calls
++
))
FIXME
(
"not implemented
\n
"
);
return
NotImplemented
;
}
GpStatus
WINGDIPAPI
GdipImageGetFrameCount
(
GpImage
*
image
,
GDIPCONST
GUID
*
dimensionID
,
UINT
*
count
)
{
...
...
dlls/gdiplus/imageattributes.c
View file @
e91d1245
...
...
@@ -17,6 +17,7 @@
*/
#include "windef.h"
#include "wingdi.h"
#include "gdiplus.h"
#include "gdiplus_private.h"
...
...
dlls/gdiplus/pathiterator.c
View file @
e91d1245
...
...
@@ -20,6 +20,7 @@
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "gdiplus.h"
#include "gdiplus_private.h"
...
...
include/gdiplusenums.h
View file @
e91d1245
...
...
@@ -173,6 +173,16 @@ enum WrapMode
WrapModeClamp
};
enum
MetafileType
{
MetafileTypeInvalid
,
MetafileTypeWmf
,
MetafileTypeWmfPlaceable
,
MetafileTypeEmf
,
MetafileTypeEmfPlusOnly
,
MetafileTypeEmfPlusDual
};
#ifndef __cplusplus
typedef
enum
Unit
Unit
;
...
...
@@ -191,6 +201,7 @@ typedef enum DashStyle DashStyle;
typedef
enum
MatrixOrder
MatrixOrder
;
typedef
enum
ImageType
ImageType
;
typedef
enum
WrapMode
WrapMode
;
typedef
enum
MetafileType
MetafileType
;
#endif
/* end of c typedefs */
...
...
include/gdiplusflat.h
View file @
e91d1245
...
...
@@ -142,6 +142,7 @@ GpStatus WINGDIPAPI GdipGetImageRawFormat(GpImage*,GUID*);
GpStatus
WINGDIPAPI
GdipGetImageType
(
GpImage
*
,
ImageType
*
);
GpStatus
WINGDIPAPI
GdipGetImageVerticalResolution
(
GpImage
*
,
REAL
*
);
GpStatus
WINGDIPAPI
GdipGetImageWidth
(
GpImage
*
,
UINT
*
);
GpStatus
WINGDIPAPI
GdipGetMetafileHeaderFromMetafile
(
GpMetafile
*
,
MetafileHeader
*
);
GpStatus
WINGDIPAPI
GdipImageGetFrameCount
(
GpImage
*
,
GDIPCONST
GUID
*
,
UINT
*
);
GpStatus
WINGDIPAPI
GdipCreateImageAttributes
(
GpImageAttributes
**
);
...
...
include/gdiplusmetaheader.h
View file @
e91d1245
...
...
@@ -19,6 +19,25 @@
#ifndef _GDIPLUSMETAHEADER_H
#define _GDIPLUSMETAHEADER_H
typedef
struct
{
DWORD
iType
;
DWORD
nSize
;
RECTL
rclBounds
;
RECTL
rclFrame
;
DWORD
dSignature
;
DWORD
nVersion
;
DWORD
nBytes
;
DWORD
nRecords
;
WORD
nHandles
;
WORD
sReserved
;
DWORD
nDescription
;
DWORD
offDescription
;
DWORD
nPalEntries
;
SIZEL
szlDevice
;
SIZEL
szlMillimeters
;
}
ENHMETAHEADER3
;
#include <pshpack2.h>
typedef
struct
...
...
@@ -41,4 +60,108 @@ typedef struct
#include <poppack.h>
#define GDIP_EMFPLUSFLAGS_DISPLAY 0x00000001
#ifdef __cplusplus
class
MetafileHeader
{
public
:
MetafileType
Type
;
UINT
Size
;
UINT
Version
;
UINT
EmfPlusFlags
;
REAL
DpiX
;
REAL
DpiY
;
INT
X
;
INT
Y
;
INT
Width
;
INT
Height
;
union
{
METAHEADER
WmfHeader
;
ENHMETAHEADER3
EmfHeader
;
};
INT
EmfPlusHeaderSize
;
INT
LogicalDpiX
;
INT
LogicalDpiY
;
public
:
MetafileType
GetType
()
const
{
return
Type
;
}
UINT
GetMetafileSize
()
const
{
return
Size
;
}
UINT
GetVersion
()
const
{
return
Version
;
}
UINT
GetEmfPlusFlags
()
const
{
return
EmfPlusFlags
;
}
REAL
GetDpiX
()
const
{
return
DpiX
;
}
REAL
GetDpiY
()
const
{
return
DpiY
;
}
VOID
GetBounds
(
OUT
Rect
*
r
)
const
{
r
->
X
=
X
;
r
->
Y
=
Y
;
r
->
Width
=
Width
;
r
->
Height
=
Height
;
}
BOOL
IsWmf
()
const
{
return
((
Type
==
MetafileTypeWmf
)
||
(
Type
==
MetafileTypeWmfPlaceable
));
}
BOOL
IsWmfPlaceable
()
const
{
return
(
Type
==
MetafileTypeWmfPlaceable
);
}
BOOL
IsEmf
()
const
{
return
(
Type
==
MetafileTypeEmf
);
}
BOOL
IsEmfOrEmfPlus
()
const
{
return
(
Type
>=
MetafileTypeEmf
);
}
BOOL
IsEmfPlus
()
const
{
return
(
Type
>=
MetafileTypeEmfPlusOnly
);
}
BOOL
IsEmfPlusDual
()
const
{
return
(
Type
==
MetafileTypeEmfPlusDual
);
}
BOOL
IsEmfPlusOnly
()
const
{
return
(
Type
==
MetafileTypeEmfPlusOnly
);
}
BOOL
IsDisplay
()
const
{
return
IsEmfPlus
()
&&
((
EmfPlusFlags
&
GDIP_EMFPLUSFLAGS_DISPLAY
)
!=
0
);
}
const
METAHEADER
*
GetWmfHeader
()
const
{
return
IsWmf
()
?
&
WmfHeader
:
NULL
;
}
const
ENHMETAHEADER3
*
GetEmfHeader
()
const
{
return
IsEmfOrEmfPlus
()
?
&
EmfHeader
:
NULL
;
}
};
#else
/* end of c++ typedefs */
typedef
struct
MetafileHeader
{
MetafileType
Type
;
UINT
Size
;
UINT
Version
;
UINT
EmfPlusFlags
;
REAL
DpiX
;
REAL
DpiY
;
INT
X
;
INT
Y
;
INT
Width
;
INT
Height
;
union
{
METAHEADER
WmfHeader
;
ENHMETAHEADER3
EmfHeader
;
}
DUMMYUNIONNAME
;
INT
EmfPlusHeaderSize
;
INT
LogicalDpiX
;
INT
LogicalDpiY
;
}
MetafileHeader
;
#endif
/* end of c typedefs */
#endif
/* _GDIPLUSMETAHEADER_H */
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