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
8128aeb0
Commit
8128aeb0
authored
Aug 03, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Aug 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added GdipCreateBitmapFromStream.
parent
81c0865b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
5 deletions
+30
-5
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+2
-2
image.c
dlls/gdiplus/image.c
+26
-3
gdiplusflat.h
include/gdiplusflat.h
+2
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
8128aeb0
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
@ stub GdipCreateBitmapFromHICON
@ stub GdipCreateBitmapFromHICON
@ stub GdipCreateBitmapFromResource
@ stub GdipCreateBitmapFromResource
@ stdcall GdipCreateBitmapFromScan0(long long long long ptr ptr)
@ stdcall GdipCreateBitmapFromScan0(long long long long ptr ptr)
@ st
ub GdipCreateBitmapFromStream
@ st
dcall GdipCreateBitmapFromStream(ptr ptr)
@ stdcall GdipCreateBitmapFromStreamICM(ptr ptr)
@ stdcall GdipCreateBitmapFromStreamICM(ptr ptr)
@ stub GdipCreateCachedBitmap
@ stub GdipCreateCachedBitmap
@ stdcall GdipCreateCustomLineCap(ptr ptr long long ptr)
@ stdcall GdipCreateCustomLineCap(ptr ptr long long ptr)
...
@@ -437,7 +437,7 @@
...
@@ -437,7 +437,7 @@
@ stub GdipIsVisibleRegionRectI
@ stub GdipIsVisibleRegionRectI
@ stub GdipLoadImageFromFile
@ stub GdipLoadImageFromFile
@ stub GdipLoadImageFromFileICM
@ stub GdipLoadImageFromFileICM
@ st
ub GdipLoadImageFromStream
@ st
dcall GdipLoadImageFromStream(ptr ptr)
@ stdcall GdipLoadImageFromStreamICM(ptr ptr)
@ stdcall GdipLoadImageFromStreamICM(ptr ptr)
@ stub GdipMeasureCharacterRanges
@ stub GdipMeasureCharacterRanges
@ stub GdipMeasureDriverString
@ stub GdipMeasureDriverString
...
...
dlls/gdiplus/image.c
View file @
8128aeb0
...
@@ -149,6 +149,24 @@ GpStatus WINGDIPAPI GdipCreateBitmapFromScan0(INT width, INT height, INT stride,
...
@@ -149,6 +149,24 @@ GpStatus WINGDIPAPI GdipCreateBitmapFromScan0(INT width, INT height, INT stride,
return
Ok
;
return
Ok
;
}
}
GpStatus
WINGDIPAPI
GdipCreateBitmapFromStream
(
IStream
*
stream
,
GpBitmap
**
bitmap
)
{
GpStatus
stat
;
stat
=
GdipLoadImageFromStream
(
stream
,
(
GpImage
**
)
bitmap
);
if
(
stat
!=
Ok
)
return
stat
;
/* FIXME: make sure it's actually a bitmap */
(
*
bitmap
)
->
image
.
type
=
ImageTypeBitmap
;
(
*
bitmap
)
->
width
=
ipicture_pixel_width
((
*
bitmap
)
->
image
.
picture
);
(
*
bitmap
)
->
height
=
ipicture_pixel_height
((
*
bitmap
)
->
image
.
picture
);
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipCreateBitmapFromStreamICM
(
IStream
*
stream
,
GpStatus
WINGDIPAPI
GdipCreateBitmapFromStreamICM
(
IStream
*
stream
,
GpBitmap
**
bitmap
)
GpBitmap
**
bitmap
)
{
{
...
@@ -344,8 +362,7 @@ GpStatus WINGDIPAPI GdipImageGetFrameCount(GpImage *image,
...
@@ -344,8 +362,7 @@ GpStatus WINGDIPAPI GdipImageGetFrameCount(GpImage *image,
return
NotImplemented
;
return
NotImplemented
;
}
}
/* FIXME: no ICM */
GpStatus
WINGDIPAPI
GdipLoadImageFromStream
(
IStream
*
stream
,
GpImage
**
image
)
GpStatus
WINGDIPAPI
GdipLoadImageFromStreamICM
(
IStream
*
stream
,
GpImage
**
image
)
{
{
if
(
!
stream
||
!
image
)
if
(
!
stream
||
!
image
)
return
InvalidParameter
;
return
InvalidParameter
;
...
@@ -360,12 +377,18 @@ GpStatus WINGDIPAPI GdipLoadImageFromStreamICM(IStream* stream, GpImage **image)
...
@@ -360,12 +377,18 @@ GpStatus WINGDIPAPI GdipLoadImageFromStreamICM(IStream* stream, GpImage **image)
return
GenericError
;
return
GenericError
;
}
}
/* FIXME: use IPicture_get_Type to get image type */
/* FIXME: use IPicture_get_Type to get image type
?
*/
(
*
image
)
->
type
=
ImageTypeUnknown
;
(
*
image
)
->
type
=
ImageTypeUnknown
;
return
Ok
;
return
Ok
;
}
}
/* FIXME: no ICM */
GpStatus
WINGDIPAPI
GdipLoadImageFromStreamICM
(
IStream
*
stream
,
GpImage
**
image
)
{
return
GdipLoadImageFromStream
(
stream
,
image
);
}
GpStatus
WINGDIPAPI
GdipRemovePropertyItem
(
GpImage
*
image
,
PROPID
propId
)
GpStatus
WINGDIPAPI
GdipRemovePropertyItem
(
GpImage
*
image
,
PROPID
propId
)
{
{
static
int
calls
;
static
int
calls
;
...
...
include/gdiplusflat.h
View file @
8128aeb0
...
@@ -166,6 +166,7 @@ GpStatus WINGDIPAPI GdipDeleteCustomLineCap(GpCustomLineCap*);
...
@@ -166,6 +166,7 @@ GpStatus WINGDIPAPI GdipDeleteCustomLineCap(GpCustomLineCap*);
GpStatus
WINGDIPAPI
GdipBitmapGetPixel
(
GpBitmap
*
,
INT
,
INT
,
ARGB
*
);
GpStatus
WINGDIPAPI
GdipBitmapGetPixel
(
GpBitmap
*
,
INT
,
INT
,
ARGB
*
);
GpStatus
WINGDIPAPI
GdipCreateBitmapFromScan0
(
INT
,
INT
,
INT
,
PixelFormat
,
BYTE
*
,
GpStatus
WINGDIPAPI
GdipCreateBitmapFromScan0
(
INT
,
INT
,
INT
,
PixelFormat
,
BYTE
*
,
GpBitmap
**
);
GpBitmap
**
);
GpStatus
WINGDIPAPI
GdipCreateBitmapFromStream
(
IStream
*
,
GpBitmap
**
);
GpStatus
WINGDIPAPI
GdipCreateBitmapFromStreamICM
(
IStream
*
,
GpBitmap
**
);
GpStatus
WINGDIPAPI
GdipCreateBitmapFromStreamICM
(
IStream
*
,
GpBitmap
**
);
GpStatus
WINGDIPAPI
GdipDisposeImage
(
GpImage
*
);
GpStatus
WINGDIPAPI
GdipDisposeImage
(
GpImage
*
);
GpStatus
WINGDIPAPI
GdipGetImageBounds
(
GpImage
*
,
GpRectF
*
,
GpUnit
*
);
GpStatus
WINGDIPAPI
GdipGetImageBounds
(
GpImage
*
,
GpRectF
*
,
GpUnit
*
);
...
@@ -178,6 +179,7 @@ GpStatus WINGDIPAPI GdipGetImageWidth(GpImage*,UINT*);
...
@@ -178,6 +179,7 @@ GpStatus WINGDIPAPI GdipGetImageWidth(GpImage*,UINT*);
GpStatus
WINGDIPAPI
GdipGetMetafileHeaderFromMetafile
(
GpMetafile
*
,
MetafileHeader
*
);
GpStatus
WINGDIPAPI
GdipGetMetafileHeaderFromMetafile
(
GpMetafile
*
,
MetafileHeader
*
);
GpStatus
WINGDIPAPI
GdipGetPropertyItemSize
(
GpImage
*
,
PROPID
,
UINT
*
);
GpStatus
WINGDIPAPI
GdipGetPropertyItemSize
(
GpImage
*
,
PROPID
,
UINT
*
);
GpStatus
WINGDIPAPI
GdipImageGetFrameCount
(
GpImage
*
,
GDIPCONST
GUID
*
,
UINT
*
);
GpStatus
WINGDIPAPI
GdipImageGetFrameCount
(
GpImage
*
,
GDIPCONST
GUID
*
,
UINT
*
);
GpStatus
WINGDIPAPI
GdipLoadImageFromStream
(
IStream
*
,
GpImage
**
);
GpStatus
WINGDIPAPI
GdipLoadImageFromStreamICM
(
IStream
*
,
GpImage
**
);
GpStatus
WINGDIPAPI
GdipLoadImageFromStreamICM
(
IStream
*
,
GpImage
**
);
GpStatus
WINGDIPAPI
GdipRemovePropertyItem
(
GpImage
*
,
PROPID
);
GpStatus
WINGDIPAPI
GdipRemovePropertyItem
(
GpImage
*
,
PROPID
);
GpStatus
WINGDIPAPI
GdipSaveImageToStream
(
GpImage
*
,
IStream
*
,
GpStatus
WINGDIPAPI
GdipSaveImageToStream
(
GpImage
*
,
IStream
*
,
...
...
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