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
d8a25fc2
Commit
d8a25fc2
authored
Jul 12, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implemented GdipCreateBitmapFromResource.
parent
90a6fb04
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletion
+22
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
image.c
dlls/gdiplus/image.c
+20
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
d8a25fc2
...
...
@@ -77,7 +77,7 @@
@ stdcall GdipCreateBitmapFromGraphics(long long ptr ptr)
@ stdcall GdipCreateBitmapFromHBITMAP(long long ptr)
@ stub GdipCreateBitmapFromHICON
@ st
ub GdipCreateBitmapFromResource
@ st
dcall GdipCreateBitmapFromResource(long wstr ptr)
@ stdcall GdipCreateBitmapFromScan0(long long long long ptr ptr)
@ stdcall GdipCreateBitmapFromStream(ptr ptr)
@ stdcall GdipCreateBitmapFromStreamICM(ptr ptr)
...
...
dlls/gdiplus/image.c
View file @
d8a25fc2
...
...
@@ -318,6 +318,26 @@ GpStatus WINGDIPAPI GdipCreateBitmapFromFileICM(GDIPCONST WCHAR* filename,
return
GdipCreateBitmapFromFile
(
filename
,
bitmap
);
}
GpStatus
WINGDIPAPI
GdipCreateBitmapFromResource
(
HINSTANCE
hInstance
,
GDIPCONST
WCHAR
*
lpBitmapName
,
GpBitmap
**
bitmap
)
{
HBITMAP
hbm
;
GpStatus
stat
=
InvalidParameter
;
if
(
!
lpBitmapName
||
!
bitmap
)
return
InvalidParameter
;
/* load DIB */
hbm
=
(
HBITMAP
)
LoadImageW
(
hInstance
,
lpBitmapName
,
IMAGE_BITMAP
,
0
,
0
,
LR_CREATEDIBSECTION
);
if
(
hbm
){
stat
=
GdipCreateBitmapFromHBITMAP
(
hbm
,
NULL
,
bitmap
);
DeleteObject
(
hbm
);
}
return
stat
;
}
GpStatus
WINGDIPAPI
GdipCreateHBITMAPFromBitmap
(
GpBitmap
*
bitmap
,
HBITMAP
*
hbmReturn
,
ARGB
background
)
{
...
...
include/gdiplusflat.h
View file @
d8a25fc2
...
...
@@ -336,6 +336,7 @@ GpStatus WINGDIPAPI GdipCreateBitmapFromFile(GDIPCONST WCHAR*,GpBitmap**);
GpStatus
WINGDIPAPI
GdipCreateBitmapFromFileICM
(
GDIPCONST
WCHAR
*
,
GpBitmap
**
);
GpStatus
WINGDIPAPI
GdipCreateBitmapFromGdiDib
(
GDIPCONST
BITMAPINFO
*
,
VOID
*
,
GpBitmap
**
);
GpStatus
WINGDIPAPI
GdipCreateBitmapFromGraphics
(
INT
,
INT
,
GpGraphics
*
,
GpBitmap
**
);
GpStatus
WINGDIPAPI
GdipCreateBitmapFromResource
(
HINSTANCE
,
GDIPCONST
WCHAR
*
,
GpBitmap
**
);
GpStatus
WINGDIPAPI
GdipCreateBitmapFromScan0
(
INT
,
INT
,
INT
,
PixelFormat
,
BYTE
*
,
GpBitmap
**
);
GpStatus
WINGDIPAPI
GdipCreateBitmapFromStream
(
IStream
*
,
GpBitmap
**
);
...
...
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