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
de351ab9
Commit
de351ab9
authored
Aug 07, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Aug 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added GdipDrawImageI.
parent
0794e5da
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
1 deletion
+29
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
graphics.c
dlls/gdiplus/graphics.c
+27
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
de351ab9
...
...
@@ -174,7 +174,7 @@
@ stub GdipDrawEllipseI
@ stub GdipDrawImage
@ stub GdipDrawImageFX
@ st
ub GdipDrawImageI
@ st
dcall GdipDrawImageI(ptr ptr long long)
@ stub GdipDrawImagePointRect
@ stub GdipDrawImagePointRectI
@ stub GdipDrawImagePoints
...
...
dlls/gdiplus/graphics.c
View file @
de351ab9
...
...
@@ -989,6 +989,33 @@ GpStatus WINGDIPAPI GdipDrawCurve2(GpGraphics *graphics, GpPen *pen,
return
retval
;
}
GpStatus
WINGDIPAPI
GdipDrawImageI
(
GpGraphics
*
graphics
,
GpImage
*
image
,
INT
x
,
INT
y
)
{
UINT
width
,
height
,
srcw
,
srch
;
if
(
!
graphics
||
!
image
)
return
InvalidParameter
;
GdipGetImageWidth
(
image
,
&
width
);
GdipGetImageHeight
(
image
,
&
height
);
srcw
=
width
*
(((
REAL
)
INCH_HIMETRIC
)
/
((
REAL
)
GetDeviceCaps
(
graphics
->
hdc
,
LOGPIXELSX
)));
srch
=
height
*
(((
REAL
)
INCH_HIMETRIC
)
/
((
REAL
)
GetDeviceCaps
(
graphics
->
hdc
,
LOGPIXELSY
)));
if
(
image
->
type
!=
ImageTypeMetafile
){
y
+=
height
;
height
*=
-
1
;
}
IPicture_Render
(
image
->
picture
,
graphics
->
hdc
,
x
,
y
,
width
,
height
,
0
,
0
,
srcw
,
srch
,
NULL
);
return
Ok
;
}
/* FIXME: partially implemented */
GpStatus
WINGDIPAPI
GdipDrawImagePointsRect
(
GpGraphics
*
graphics
,
GpImage
*
image
,
GDIPCONST
GpPointF
*
points
,
INT
count
,
REAL
srcx
,
REAL
srcy
,
REAL
srcwidth
,
...
...
include/gdiplusflat.h
View file @
de351ab9
...
...
@@ -58,6 +58,7 @@ GpStatus WINGDIPAPI GdipDrawArc(GpGraphics*,GpPen*,REAL,REAL,REAL,REAL,REAL,REAL
GpStatus
WINGDIPAPI
GdipDrawBezier
(
GpGraphics
*
,
GpPen
*
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
);
GpStatus
WINGDIPAPI
GdipDrawCurve2
(
GpGraphics
*
,
GpPen
*
,
GDIPCONST
GpPointF
*
,
INT
,
REAL
);
GpStatus
WINGDIPAPI
GdipDrawImageI
(
GpGraphics
*
,
GpImage
*
,
INT
,
INT
);
GpStatus
WINGDIPAPI
GdipDrawImagePointsRect
(
GpGraphics
*
,
GpImage
*
,
GDIPCONST
GpPointF
*
,
INT
,
REAL
,
REAL
,
REAL
,
REAL
,
GpUnit
,
GDIPCONST
GpImageAttributes
*
,
DrawImageAbort
,
VOID
*
);
...
...
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