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
a87ce7ab
Commit
a87ce7ab
authored
Jul 13, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Jul 16, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added interpolation mode.
parent
60cad235
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
2 deletions
+43
-2
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+2
-2
gdiplus_private.h
dlls/gdiplus/gdiplus_private.h
+1
-0
graphics.c
dlls/gdiplus/graphics.c
+24
-0
gdiplusenums.h
include/gdiplusenums.h
+14
-0
gdiplusflat.h
include/gdiplusflat.h
+2
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
a87ce7ab
...
...
@@ -283,7 +283,7 @@
@ stub GdipGetImageType
@ stub GdipGetImageVerticalResolution
@ stub GdipGetImageWidth
@ st
ub GdipGetInterpolationMode
@ st
dcall GdipGetInterpolationMode(ptr ptr)
@ stub GdipGetLineBlend
@ stub GdipGetLineBlendCount
@ stub GdipGetLineColors
...
...
@@ -513,7 +513,7 @@
@ stub GdipSetImageAttributesWrapMode
@ stub GdipSetImagePalette
@ stub GdipSetInfinite
@ st
ub GdipSetInterpolationMode
@ st
dcall GdipSetInterpolationMode(ptr long)
@ stub GdipSetLineBlend
@ stub GdipSetLineColors
@ stub GdipSetLineGammaCorrection
...
...
dlls/gdiplus/gdiplus_private.h
View file @
a87ce7ab
...
...
@@ -56,6 +56,7 @@ struct GpGraphics{
HWND
hwnd
;
SmoothingMode
smoothing
;
CompositingQuality
compqual
;
InterpolationMode
interpolation
;
};
struct
GpBrush
{
...
...
dlls/gdiplus/graphics.c
View file @
a87ce7ab
...
...
@@ -544,6 +544,7 @@ GpStatus WINGDIPAPI GdipCreateFromHDC(HDC hdc, GpGraphics **graphics)
(
*
graphics
)
->
hwnd
=
NULL
;
(
*
graphics
)
->
smoothing
=
SmoothingModeDefault
;
(
*
graphics
)
->
compqual
=
CompositingQualityDefault
;
(
*
graphics
)
->
interpolation
=
InterpolationModeDefault
;
return
Ok
;
}
...
...
@@ -811,6 +812,18 @@ GpStatus WINGDIPAPI GdipGetCompositingQuality(GpGraphics *graphics,
return
Ok
;
}
/* FIXME: Interpolation mode is not used anywhere except the getter/setter. */
GpStatus
WINGDIPAPI
GdipGetInterpolationMode
(
GpGraphics
*
graphics
,
InterpolationMode
*
mode
)
{
if
(
!
graphics
||
!
mode
)
return
InvalidParameter
;
*
mode
=
graphics
->
interpolation
;
return
Ok
;
}
/* FIXME: Smoothing mode is not used anywhere except the getter/setter. */
GpStatus
WINGDIPAPI
GdipGetSmoothingMode
(
GpGraphics
*
graphics
,
SmoothingMode
*
mode
)
{
...
...
@@ -833,6 +846,17 @@ GpStatus WINGDIPAPI GdipSetCompositingQuality(GpGraphics *graphics,
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipSetInterpolationMode
(
GpGraphics
*
graphics
,
InterpolationMode
mode
)
{
if
(
!
graphics
)
return
InvalidParameter
;
graphics
->
interpolation
=
mode
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipSetSmoothingMode
(
GpGraphics
*
graphics
,
SmoothingMode
mode
)
{
if
(
!
graphics
)
...
...
include/gdiplusenums.h
View file @
a87ce7ab
...
...
@@ -109,6 +109,19 @@ enum CompositingQuality
CompositingQualityAssumeLinear
};
enum
InterpolationMode
{
InterpolationModeInvalid
=
QualityModeInvalid
,
InterpolationModeDefault
=
QualityModeDefault
,
InterpolationModeLowQuality
=
QualityModeLow
,
InterpolationModeHighQuality
=
QualityModeHigh
,
InterpolationModeBilinear
,
InterpolationModeBicubic
,
InterpolationModeNearestNeighbor
,
InterpolationModeHighQualityBilinear
,
InterpolationModeHighQualityBicubic
};
#ifndef __cplusplus
typedef
enum
Unit
Unit
;
...
...
@@ -120,6 +133,7 @@ typedef enum LineJoin LineJoin;
typedef
enum
QualityMode
QualityMode
;
typedef
enum
SmoothingMode
SmoothingMode
;
typedef
enum
CompositingQuality
CompositingQuality
;
typedef
enum
InterpolationMode
InterpolationMode
;
#endif
/* end of c typedefs */
...
...
include/gdiplusflat.h
View file @
a87ce7ab
...
...
@@ -46,8 +46,10 @@ GpStatus WINGDIPAPI GdipDrawPie(GpGraphics*,GpPen*,REAL,REAL,REAL,REAL,REAL,REAL
GpStatus
WINGDIPAPI
GdipDrawRectangleI
(
GpGraphics
*
,
GpPen
*
,
INT
,
INT
,
INT
,
INT
);
GpStatus
WINGDIPAPI
GdipFillPie
(
GpGraphics
*
,
GpBrush
*
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
);
GpStatus
WINGDIPAPI
GdipGetCompositingQuality
(
GpGraphics
*
,
CompositingQuality
*
);
GpStatus
WINGDIPAPI
GdipGetInterpolationMode
(
GpGraphics
*
,
InterpolationMode
*
);
GpStatus
WINGDIPAPI
GdipGetSmoothingMode
(
GpGraphics
*
,
SmoothingMode
*
);
GpStatus
WINGDIPAPI
GdipSetCompositingQuality
(
GpGraphics
*
,
CompositingQuality
);
GpStatus
WINGDIPAPI
GdipSetInterpolationMode
(
GpGraphics
*
,
InterpolationMode
);
GpStatus
WINGDIPAPI
GdipSetSmoothingMode
(
GpGraphics
*
,
SmoothingMode
);
GpStatus
WINGDIPAPI
GdipCreateSolidFill
(
ARGB
,
GpSolidFill
**
);
...
...
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