[18/21] gdiplus: added GdipBitmapGetPixel stub

Evan Stade estade at gmail.com
Tue Jul 31 21:16:13 CDT 2007


Hi,

 dlls/gdiplus/gdiplus.spec |    2 +-
 dlls/gdiplus/image.c      |   17 +++++++++++++++++
 include/gdiplusflat.h     |    1 +
 3 files changed, 19 insertions(+), 1 deletions(-)

-- 
Evan Stade
-------------- next part --------------
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 5c4493c..68e9c16 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -40,7 +40,7 @@
 @ stub GdipBitmapCreateApplyEffect
 @ stub GdipBitmapGetHistogram
 @ stub GdipBitmapGetHistogramSize
-@ stub GdipBitmapGetPixel
+@ stdcall GdipBitmapGetPixel(ptr long long ptr)
 @ stub GdipBitmapLockBits
 @ stub GdipBitmapSetPixel
 @ stub GdipBitmapSetResolution
diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c
index bd11b2e..d23d9bb 100644
--- a/dlls/gdiplus/image.c
+++ b/dlls/gdiplus/image.c
@@ -36,6 +36,23 @@ WINE_DEFAULT_DEBUG_CHANNEL(gdiplus);
 
 typedef void ImageItemData;
 
+GpStatus WINGDIPAPI GdipBitmapGetPixel(GpBitmap* bitmap, INT x, INT y,
+    ARGB *color)
+{
+    static int calls;
+    TRACE("%p %d %d %p\n", bitmap, x, y, color);
+
+    if(!bitmap || !color)
+        return InvalidParameter;
+
+    if(!(calls++))
+        FIXME("not implemented\n");
+
+    *color = 0xdeadbeef;
+
+    return NotImplemented;
+}
+
 GpStatus WINGDIPAPI GdipCreateBitmapFromScan0(INT width, INT height, INT stride,
     PixelFormat format, BYTE* scan0, GpBitmap** bitmap)
 {
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index 122cbfa..4f0d88d 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -138,6 +138,7 @@ GpStatus WINGDIPAPI GdipCreateCustomLine
     GpCustomLineCap**);
 GpStatus WINGDIPAPI GdipDeleteCustomLineCap(GpCustomLineCap*);
 
+GpStatus WINGDIPAPI GdipBitmapGetPixel(GpBitmap*,INT,INT,ARGB*);
 GpStatus WINGDIPAPI GdipCreateBitmapFromScan0(INT,INT,INT,PixelFormat,BYTE*,
     GpBitmap**);
 GpStatus WINGDIPAPI GdipCreateBitmapFromStreamICM(IStream*,GpBitmap**);
-- 
1.4.1



More information about the wine-patches mailing list