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
8304765a
Commit
8304765a
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 partial implementation of GdipSaveImageToStream.
parent
6394e315
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
75 additions
and
1 deletion
+75
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
image.c
dlls/gdiplus/image.c
+13
-0
Makefile.in
include/Makefile.in
+1
-0
gdiplus.h
include/gdiplus.h
+2
-0
gdiplusflat.h
include/gdiplusflat.h
+2
-0
gdiplusimaging.h
include/gdiplusimaging.h
+56
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
8304765a
...
...
@@ -495,7 +495,7 @@
@ stub GdipSaveAddImage
@ stdcall GdipSaveGraphics(ptr ptr)
@ stub GdipSaveImageToFile
@ st
ub GdipSaveImageToStream
@ st
dcall GdipSaveImageToStream(ptr ptr ptr)
@ stub GdipScaleLineTransform
@ stdcall GdipScaleMatrix(ptr long long long)
@ stub GdipScalePathGradientTransform
...
...
dlls/gdiplus/image.c
View file @
8304765a
...
...
@@ -273,3 +273,16 @@ GpStatus WINGDIPAPI GdipLoadImageFromStreamICM(IStream* stream, GpImage **image)
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipSaveImageToStream
(
GpImage
*
image
,
IStream
*
stream
,
GDIPCONST
CLSID
*
clsid
,
GDIPCONST
EncoderParameters
*
params
)
{
if
(
!
image
||
!
stream
)
return
InvalidParameter
;
/* FIXME: CLSID, EncoderParameters not used */
IPicture_SaveAsFile
(
image
->
picture
,
stream
,
FALSE
,
NULL
);
return
Ok
;
}
include/Makefile.in
View file @
8304765a
...
...
@@ -167,6 +167,7 @@ SRCDIR_INCLUDES = \
gdiplusenums.h
\
gdiplusflat.h
\
gdiplusgpstubs.h
\
gdiplusimaging.h
\
gdiplusinit.h
\
gdiplusmem.h
\
gdiplusmetaheader.h
\
...
...
include/gdiplus.h
View file @
8304765a
...
...
@@ -33,6 +33,7 @@ namespace Gdiplus
#include "gdiplusinit.h"
#include "gdipluspixelformats.h"
#include "gdiplusmetaheader.h"
#include "gdiplusimaging.h"
#include "gdiplusgpstubs.h"
namespace
DllExports
...
...
@@ -50,6 +51,7 @@ namespace Gdiplus
#include "gdiplusinit.h"
#include "gdipluspixelformats.h"
#include "gdiplusmetaheader.h"
#include "gdiplusimaging.h"
#include "gdiplusgpstubs.h"
#include "gdiplusflat.h"
...
...
include/gdiplusflat.h
View file @
8304765a
...
...
@@ -152,6 +152,8 @@ GpStatus WINGDIPAPI GdipGetMetafileHeaderFromMetafile(GpMetafile*,MetafileHeader
GpStatus
WINGDIPAPI
GdipGetPropertyItemSize
(
GpImage
*
,
PROPID
,
UINT
*
);
GpStatus
WINGDIPAPI
GdipImageGetFrameCount
(
GpImage
*
,
GDIPCONST
GUID
*
,
UINT
*
);
GpStatus
WINGDIPAPI
GdipLoadImageFromStreamICM
(
IStream
*
,
GpImage
**
);
GpStatus
WINGDIPAPI
GdipSaveImageToStream
(
GpImage
*
,
IStream
*
,
GDIPCONST
CLSID
*
,
GDIPCONST
EncoderParameters
*
);
GpStatus
WINGDIPAPI
GdipCreateImageAttributes
(
GpImageAttributes
**
);
GpStatus
WINGDIPAPI
GdipDisposeImageAttributes
(
GpImageAttributes
*
);
...
...
include/gdiplusimaging.h
0 → 100644
View file @
8304765a
/*
* Copyright (C) 2007 Google (Evan Stade)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef _GDIPLUSIMAGING_H
#define _GDIPLUSIMAGING_H
#ifdef __cplusplus
class
EncoderParameter
{
public
:
GUID
Guid
;
ULONG
NumberOfValues
;
ULONG
Type
;
VOID
*
Value
;
};
class
EncoderParameters
{
public
:
UINT
Count
;
EncoderParameter
Parameter
[
1
];
};
#else
/* end of c++ typedefs */
typedef
struct
EncoderParameter
{
GUID
Guid
;
ULONG
NumberOfValues
;
ULONG
Type
;
VOID
*
Value
;
}
EncoderParameter
;
typedef
struct
EncoderParameters
{
UINT
Count
;
EncoderParameter
Parameter
[
1
];
}
EncoderParameters
;
#endif
/* end of c typedefs */
#endif
/* _GDIPLUSIMAGING_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