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
8726f5ad
Commit
8726f5ad
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 GdipCreateBitmapFromFile.
parent
3ea77f5c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
1 deletion
+24
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
image.c
dlls/gdiplus/image.c
+22
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
8726f5ad
...
...
@@ -71,7 +71,7 @@
@ stub GdipConvertToEmfPlusToStream
@ stub GdipCreateAdjustableArrowCap
@ stub GdipCreateBitmapFromDirectDrawSurface
@ st
ub GdipCreateBitmapFromFile
@ st
dcall GdipCreateBitmapFromFile(wstr ptr)
@ stub GdipCreateBitmapFromFileICM
@ stub GdipCreateBitmapFromGdiDib
@ stub GdipCreateBitmapFromGraphics
...
...
dlls/gdiplus/image.c
View file @
8726f5ad
...
...
@@ -229,6 +229,28 @@ GpStatus WINGDIPAPI GdipBitmapUnlockBits(GpBitmap* bitmap,
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipCreateBitmapFromFile
(
GDIPCONST
WCHAR
*
filename
,
GpBitmap
**
bitmap
)
{
GpStatus
stat
;
IStream
*
stream
;
if
(
!
filename
||
!
bitmap
)
return
InvalidParameter
;
stat
=
GdipCreateStreamOnFile
(
filename
,
GENERIC_READ
,
&
stream
);
if
(
stat
!=
Ok
)
return
stat
;
stat
=
GdipCreateBitmapFromStream
(
stream
,
bitmap
);
if
(
!
stat
)
IStream_Release
(
stream
);
return
stat
;
}
GpStatus
WINGDIPAPI
GdipCreateBitmapFromScan0
(
INT
width
,
INT
height
,
INT
stride
,
PixelFormat
format
,
BYTE
*
scan0
,
GpBitmap
**
bitmap
)
{
...
...
include/gdiplusflat.h
View file @
8726f5ad
...
...
@@ -167,6 +167,7 @@ GpStatus WINGDIPAPI GdipDeleteCustomLineCap(GpCustomLineCap*);
GpStatus
WINGDIPAPI
GdipBitmapGetPixel
(
GpBitmap
*
,
INT
,
INT
,
ARGB
*
);
GpStatus
WINGDIPAPI
GdipBitmapLockBits
(
GpBitmap
*
,
GDIPCONST
GpRect
*
,
UINT
,
PixelFormat
,
BitmapData
*
);
GpStatus
WINGDIPAPI
GdipCreateBitmapFromFile
(
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