Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8cf56080
Commit
8cf56080
authored
Apr 25, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implemented GdipDrawImageRect/GdipDrawImageRectI.
parent
19cc99c3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
3 deletions
+30
-3
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+2
-2
graphics.c
dlls/gdiplus/graphics.c
+26
-1
gdiplusflat.h
include/gdiplusflat.h
+2
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
8cf56080
...
...
@@ -181,8 +181,8 @@
@ stub GdipDrawImagePointsI
@ stdcall GdipDrawImagePointsRect(ptr ptr ptr long long long long long long ptr ptr ptr)
@ stub GdipDrawImagePointsRectI
@ st
ub GdipDrawImageRect
@ st
ub GdipDrawImageRectI
@ st
dcall GdipDrawImageRect(ptr ptr long long long long)
@ st
dcall GdipDrawImageRectI(ptr ptr long long long long)
@ stdcall GdipDrawImageRectRect(ptr ptr long long long long long long long long long ptr long ptr)
@ stdcall GdipDrawImageRectRectI(ptr ptr long long long long long long long long long ptr long ptr)
@ stdcall GdipDrawLine(ptr ptr long long long long)
...
...
dlls/gdiplus/graphics.c
View file @
8cf56080
...
...
@@ -1100,7 +1100,7 @@ GpStatus WINGDIPAPI GdipDrawImagePointsRect(GpGraphics *graphics, GpImage *image
srcx
,
srcy
,
srcwidth
,
srcheight
,
srcUnit
,
imageAttributes
,
callback
,
callbackData
);
if
(
!
graphics
||
!
image
||
!
points
||
!
imageAttributes
||
count
!=
3
)
if
(
!
graphics
||
!
image
||
!
points
||
count
!=
3
)
return
InvalidParameter
;
if
(
srcUnit
==
UnitInch
)
...
...
@@ -1177,6 +1177,31 @@ GpStatus WINGDIPAPI GdipDrawImageRectRectI(GpGraphics *graphics, GpImage *image,
srcwidth
,
srcheight
,
srcUnit
,
imageAttributes
,
callback
,
callbackData
);
}
GpStatus
WINGDIPAPI
GdipDrawImageRect
(
GpGraphics
*
graphics
,
GpImage
*
image
,
REAL
x
,
REAL
y
,
REAL
width
,
REAL
height
)
{
RectF
bounds
;
GpUnit
unit
;
GpStatus
ret
;
if
(
!
graphics
||
!
image
)
return
InvalidParameter
;
ret
=
GdipGetImageBounds
(
image
,
&
bounds
,
&
unit
);
if
(
ret
!=
Ok
)
return
ret
;
return
GdipDrawImageRectRect
(
graphics
,
image
,
x
,
y
,
width
,
height
,
bounds
.
X
,
bounds
.
Y
,
bounds
.
Width
,
bounds
.
Height
,
unit
,
NULL
,
NULL
,
NULL
);
}
GpStatus
WINGDIPAPI
GdipDrawImageRectI
(
GpGraphics
*
graphics
,
GpImage
*
image
,
INT
x
,
INT
y
,
INT
width
,
INT
height
)
{
return
GdipDrawImageRect
(
graphics
,
image
,
(
REAL
)
x
,
(
REAL
)
y
,
(
REAL
)
width
,
(
REAL
)
height
);
}
GpStatus
WINGDIPAPI
GdipDrawLine
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
REAL
x1
,
REAL
y1
,
REAL
x2
,
REAL
y2
)
{
...
...
include/gdiplusflat.h
View file @
8cf56080
...
...
@@ -87,6 +87,8 @@ GpStatus WINGDIPAPI GdipDrawImageRectRect(GpGraphics*,GpImage*,REAL,REAL,REAL,
GpStatus
WINGDIPAPI
GdipDrawImageRectRectI
(
GpGraphics
*
,
GpImage
*
,
INT
,
INT
,
INT
,
INT
,
INT
,
INT
,
INT
,
INT
,
GpUnit
,
GDIPCONST
GpImageAttributes
*
,
DrawImageAbort
,
VOID
*
);
GpStatus
WINGDIPAPI
GdipDrawImageRect
(
GpGraphics
*
,
GpImage
*
,
REAL
,
REAL
,
REAL
,
REAL
);
GpStatus
WINGDIPAPI
GdipDrawImageRectI
(
GpGraphics
*
,
GpImage
*
,
INT
,
INT
,
INT
,
INT
);
GpStatus
WINGDIPAPI
GdipDrawLine
(
GpGraphics
*
,
GpPen
*
,
REAL
,
REAL
,
REAL
,
REAL
);
GpStatus
WINGDIPAPI
GdipDrawLineI
(
GpGraphics
*
,
GpPen
*
,
INT
,
INT
,
INT
,
INT
);
GpStatus
WINGDIPAPI
GdipDrawLines
(
GpGraphics
*
,
GpPen
*
,
GDIPCONST
GpPointF
*
,
INT
);
...
...
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