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
94a19d1f
Commit
94a19d1f
authored
Aug 09, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Aug 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added GdipGetImageGraphicsContext.
parent
ef7a7794
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
image.c
dlls/gdiplus/image.c
+27
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
94a19d1f
...
...
@@ -287,7 +287,7 @@
@ stub GdipGetImageEncoders
@ stub GdipGetImageEncodersSize
@ stub GdipGetImageFlags
@ st
ub GdipGetImageGraphicsContext
@ st
dcall GdipGetImageGraphicsContext(ptr ptr)
@ stdcall GdipGetImageHeight(ptr ptr)
@ stdcall GdipGetImageHorizontalResolution(ptr ptr)
@ stub GdipGetImageItemData
...
...
dlls/gdiplus/image.c
View file @
94a19d1f
...
...
@@ -384,9 +384,13 @@ GpStatus WINGDIPAPI GdipCreateBitmapFromStreamICM(IStream* stream,
GpStatus
WINGDIPAPI
GdipDisposeImage
(
GpImage
*
image
)
{
HDC
hdc
;
if
(
!
image
)
return
InvalidParameter
;
IPicture_get_CurDC
(
image
->
picture
,
&
hdc
);
DeleteDC
(
hdc
);
IPicture_Release
(
image
->
picture
);
GdipFree
(
image
);
...
...
@@ -429,6 +433,29 @@ GpStatus WINGDIPAPI GdipGetImageBounds(GpImage *image, GpRectF *srcRect,
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipGetImageGraphicsContext
(
GpImage
*
image
,
GpGraphics
**
graphics
)
{
HDC
hdc
;
if
(
!
image
||
!
graphics
)
return
InvalidParameter
;
if
(
image
->
type
!=
ImageTypeBitmap
){
FIXME
(
"not implemented for image type %d
\n
"
,
image
->
type
);
return
NotImplemented
;
}
IPicture_get_CurDC
(
image
->
picture
,
&
hdc
);
if
(
!
hdc
){
hdc
=
CreateCompatibleDC
(
0
);
IPicture_SelectPicture
(
image
->
picture
,
hdc
,
NULL
,
NULL
);
}
return
GdipCreateFromHDC
(
hdc
,
graphics
);
}
GpStatus
WINGDIPAPI
GdipGetImageHeight
(
GpImage
*
image
,
UINT
*
height
)
{
if
(
!
image
||
!
height
)
...
...
include/gdiplusflat.h
View file @
94a19d1f
...
...
@@ -192,6 +192,7 @@ GpStatus WINGDIPAPI GdipCreateBitmapFromStream(IStream*,GpBitmap**);
GpStatus
WINGDIPAPI
GdipCreateBitmapFromStreamICM
(
IStream
*
,
GpBitmap
**
);
GpStatus
WINGDIPAPI
GdipDisposeImage
(
GpImage
*
);
GpStatus
WINGDIPAPI
GdipGetImageBounds
(
GpImage
*
,
GpRectF
*
,
GpUnit
*
);
GpStatus
WINGDIPAPI
GdipGetImageGraphicsContext
(
GpImage
*
,
GpGraphics
**
);
GpStatus
WINGDIPAPI
GdipGetImageHeight
(
GpImage
*
,
UINT
*
);
GpStatus
WINGDIPAPI
GdipGetImageHorizontalResolution
(
GpImage
*
,
REAL
*
);
GpStatus
WINGDIPAPI
GdipGetImagePixelFormat
(
GpImage
*
,
PixelFormat
*
);
...
...
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