2 * Copyright (C) 2007 Google (Evan Stade)
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
29 #include "gdiplus_private.h"
30 #include "wine/debug.h"
32 WINE_DEFAULT_DEBUG_CHANNEL(gdiplus
);
34 GpStatus WINGDIPAPI
GdipDisposeImage(GpImage
*image
)
37 return InvalidParameter
;
39 IPicture_Release(image
->picture
);
45 GpStatus WINGDIPAPI
GdipGetImageBounds(GpImage
*image
, GpRectF
*srcRect
,
48 if(!image
|| !srcRect
|| !srcUnit
)
49 return InvalidParameter
;
50 if(image
->type
== ImageTypeMetafile
){
51 memcpy(srcRect
, &((GpMetafile
*)image
)->bounds
, sizeof(GpRectF
));
52 *srcUnit
= ((GpMetafile
*)image
)->unit
;
55 FIXME("not implemented for bitmaps\n");
56 return NotImplemented
;
62 GpStatus WINGDIPAPI
GdipGetImageHeight(GpImage
*image
, UINT
*height
)
67 return InvalidParameter
;
70 FIXME("not implemented\n");
72 return NotImplemented
;
75 GpStatus WINGDIPAPI
GdipGetImageHorizontalResolution(GpImage
*image
, REAL
*res
)
80 return InvalidParameter
;
83 FIXME("not implemented\n");
85 return NotImplemented
;
88 GpStatus WINGDIPAPI
GdipGetImageRawFormat(GpImage
*image
, GUID
*format
)
93 return InvalidParameter
;
96 FIXME("not implemented\n");
98 return NotImplemented
;
101 GpStatus WINGDIPAPI
GdipGetImageType(GpImage
*image
, ImageType
*type
)
104 return InvalidParameter
;
111 GpStatus WINGDIPAPI
GdipGetImageVerticalResolution(GpImage
*image
, REAL
*res
)
116 return InvalidParameter
;
119 FIXME("not implemented\n");
121 return NotImplemented
;
124 GpStatus WINGDIPAPI
GdipGetImageWidth(GpImage
*image
, UINT
*width
)
129 return InvalidParameter
;
132 FIXME("not implemented\n");
134 return NotImplemented
;
137 GpStatus WINGDIPAPI
GdipImageGetFrameCount(GpImage
*image
,
138 GDIPCONST GUID
* dimensionID
, UINT
* count
)
142 if(!image
|| !dimensionID
|| !count
)
143 return InvalidParameter
;
146 FIXME("not implemented\n");
148 return NotImplemented
;
151 GpStatus WINGDIPAPI
GdipLoadImageFromStreamICM(IStream
* stream
, GpImage
**image
)
155 if(!stream
|| !image
)
156 return InvalidParameter
;
159 FIXME("not implemented\n");
161 return NotImplemented
;