gdiplus: Some TRACE(..) for Image calls.
This commit is contained in:
parent
573aa54a23
commit
d7794170e7
|
@ -294,6 +294,8 @@ GpStatus WINGDIPAPI GdipCreateBitmapFromFile(GDIPCONST WCHAR* filename,
|
||||||
GpStatus stat;
|
GpStatus stat;
|
||||||
IStream *stream;
|
IStream *stream;
|
||||||
|
|
||||||
|
TRACE("(%s) %p\n", debugstr_w(filename), bitmap);
|
||||||
|
|
||||||
if(!filename || !bitmap)
|
if(!filename || !bitmap)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
|
@ -354,6 +356,8 @@ GpStatus WINGDIPAPI GdipCreateBitmapFromGdiDib(GDIPCONST BITMAPINFO* info,
|
||||||
GpStatus WINGDIPAPI GdipCreateBitmapFromFileICM(GDIPCONST WCHAR* filename,
|
GpStatus WINGDIPAPI GdipCreateBitmapFromFileICM(GDIPCONST WCHAR* filename,
|
||||||
GpBitmap **bitmap)
|
GpBitmap **bitmap)
|
||||||
{
|
{
|
||||||
|
TRACE("(%s) %p\n", debugstr_w(filename), bitmap);
|
||||||
|
|
||||||
return GdipCreateBitmapFromFile(filename, bitmap);
|
return GdipCreateBitmapFromFile(filename, bitmap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -363,6 +367,8 @@ GpStatus WINGDIPAPI GdipCreateBitmapFromResource(HINSTANCE hInstance,
|
||||||
HBITMAP hbm;
|
HBITMAP hbm;
|
||||||
GpStatus stat = InvalidParameter;
|
GpStatus stat = InvalidParameter;
|
||||||
|
|
||||||
|
TRACE("%p (%s) %p\n", hInstance, debugstr_w(lpBitmapName), bitmap);
|
||||||
|
|
||||||
if(!lpBitmapName || !bitmap)
|
if(!lpBitmapName || !bitmap)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
|
@ -516,6 +522,8 @@ GpStatus WINGDIPAPI GdipCreateBitmapFromStream(IStream* stream,
|
||||||
{
|
{
|
||||||
GpStatus stat;
|
GpStatus stat;
|
||||||
|
|
||||||
|
TRACE("%p %p\n", stream, bitmap);
|
||||||
|
|
||||||
stat = GdipLoadImageFromStream(stream, (GpImage**) bitmap);
|
stat = GdipLoadImageFromStream(stream, (GpImage**) bitmap);
|
||||||
|
|
||||||
if(stat != Ok)
|
if(stat != Ok)
|
||||||
|
@ -534,6 +542,8 @@ GpStatus WINGDIPAPI GdipCreateBitmapFromStream(IStream* stream,
|
||||||
GpStatus WINGDIPAPI GdipCreateBitmapFromStreamICM(IStream* stream,
|
GpStatus WINGDIPAPI GdipCreateBitmapFromStreamICM(IStream* stream,
|
||||||
GpBitmap **bitmap)
|
GpBitmap **bitmap)
|
||||||
{
|
{
|
||||||
|
TRACE("%p %p\n", stream, bitmap);
|
||||||
|
|
||||||
return GdipCreateBitmapFromStream(stream, bitmap);
|
return GdipCreateBitmapFromStream(stream, bitmap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -541,6 +551,8 @@ GpStatus WINGDIPAPI GdipDisposeImage(GpImage *image)
|
||||||
{
|
{
|
||||||
HDC hdc;
|
HDC hdc;
|
||||||
|
|
||||||
|
TRACE("%p\n", image);
|
||||||
|
|
||||||
if(!image)
|
if(!image)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
|
@ -565,6 +577,8 @@ GpStatus WINGDIPAPI GdipFindFirstImageItem(GpImage *image, ImageItemData* item)
|
||||||
GpStatus WINGDIPAPI GdipGetImageBounds(GpImage *image, GpRectF *srcRect,
|
GpStatus WINGDIPAPI GdipGetImageBounds(GpImage *image, GpRectF *srcRect,
|
||||||
GpUnit *srcUnit)
|
GpUnit *srcUnit)
|
||||||
{
|
{
|
||||||
|
TRACE("%p %p %p\n", image, srcRect, srcUnit);
|
||||||
|
|
||||||
if(!image || !srcRect || !srcUnit)
|
if(!image || !srcRect || !srcUnit)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
if(image->type == ImageTypeMetafile){
|
if(image->type == ImageTypeMetafile){
|
||||||
|
@ -593,6 +607,8 @@ GpStatus WINGDIPAPI GdipGetImageBounds(GpImage *image, GpRectF *srcRect,
|
||||||
GpStatus WINGDIPAPI GdipGetImageDimension(GpImage *image, REAL *width,
|
GpStatus WINGDIPAPI GdipGetImageDimension(GpImage *image, REAL *width,
|
||||||
REAL *height)
|
REAL *height)
|
||||||
{
|
{
|
||||||
|
TRACE("%p %p %p\n", image, width, height);
|
||||||
|
|
||||||
if(!image || !height || !width)
|
if(!image || !height || !width)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
|
@ -626,6 +642,8 @@ GpStatus WINGDIPAPI GdipGetImageGraphicsContext(GpImage *image,
|
||||||
{
|
{
|
||||||
HDC hdc;
|
HDC hdc;
|
||||||
|
|
||||||
|
TRACE("%p %p\n", image, graphics);
|
||||||
|
|
||||||
if(!image || !graphics)
|
if(!image || !graphics)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
|
@ -646,6 +664,8 @@ GpStatus WINGDIPAPI GdipGetImageGraphicsContext(GpImage *image,
|
||||||
|
|
||||||
GpStatus WINGDIPAPI GdipGetImageHeight(GpImage *image, UINT *height)
|
GpStatus WINGDIPAPI GdipGetImageHeight(GpImage *image, UINT *height)
|
||||||
{
|
{
|
||||||
|
TRACE("%p %p\n", image, height);
|
||||||
|
|
||||||
if(!image || !height)
|
if(!image || !height)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
|
@ -683,6 +703,8 @@ GpStatus WINGDIPAPI GdipGetImageHorizontalResolution(GpImage *image, REAL *res)
|
||||||
/* FIXME: test this function for non-bitmap types */
|
/* FIXME: test this function for non-bitmap types */
|
||||||
GpStatus WINGDIPAPI GdipGetImagePixelFormat(GpImage *image, PixelFormat *format)
|
GpStatus WINGDIPAPI GdipGetImagePixelFormat(GpImage *image, PixelFormat *format)
|
||||||
{
|
{
|
||||||
|
TRACE("%p %p\n", image, format);
|
||||||
|
|
||||||
if(!image || !format)
|
if(!image || !format)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
|
@ -709,6 +731,8 @@ GpStatus WINGDIPAPI GdipGetImageRawFormat(GpImage *image, GUID *format)
|
||||||
|
|
||||||
GpStatus WINGDIPAPI GdipGetImageType(GpImage *image, ImageType *type)
|
GpStatus WINGDIPAPI GdipGetImageType(GpImage *image, ImageType *type)
|
||||||
{
|
{
|
||||||
|
TRACE("%p %p\n", image, type);
|
||||||
|
|
||||||
if(!image || !type)
|
if(!image || !type)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
|
@ -732,6 +756,8 @@ GpStatus WINGDIPAPI GdipGetImageVerticalResolution(GpImage *image, REAL *res)
|
||||||
|
|
||||||
GpStatus WINGDIPAPI GdipGetImageWidth(GpImage *image, UINT *width)
|
GpStatus WINGDIPAPI GdipGetImageWidth(GpImage *image, UINT *width)
|
||||||
{
|
{
|
||||||
|
TRACE("%p %p\n", image, width);
|
||||||
|
|
||||||
if(!image || !width)
|
if(!image || !width)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
|
@ -896,6 +922,8 @@ GpStatus WINGDIPAPI GdipLoadImageFromFile(GDIPCONST WCHAR* filename,
|
||||||
GpStatus stat;
|
GpStatus stat;
|
||||||
IStream *stream;
|
IStream *stream;
|
||||||
|
|
||||||
|
TRACE("(%s) %p\n", debugstr_w(filename), image);
|
||||||
|
|
||||||
if (!filename || !image)
|
if (!filename || !image)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
|
@ -914,6 +942,8 @@ GpStatus WINGDIPAPI GdipLoadImageFromFile(GDIPCONST WCHAR* filename,
|
||||||
/* FIXME: no icm handling */
|
/* FIXME: no icm handling */
|
||||||
GpStatus WINGDIPAPI GdipLoadImageFromFileICM(GDIPCONST WCHAR* filename,GpImage **image)
|
GpStatus WINGDIPAPI GdipLoadImageFromFileICM(GDIPCONST WCHAR* filename,GpImage **image)
|
||||||
{
|
{
|
||||||
|
TRACE("(%s) %p\n", debugstr_w(filename), image);
|
||||||
|
|
||||||
return GdipLoadImageFromFile(filename, image);
|
return GdipLoadImageFromFile(filename, image);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -922,6 +952,8 @@ GpStatus WINGDIPAPI GdipLoadImageFromStream(IStream* stream, GpImage **image)
|
||||||
IPicture *pic;
|
IPicture *pic;
|
||||||
short type;
|
short type;
|
||||||
|
|
||||||
|
TRACE("%p %p\n", stream, image);
|
||||||
|
|
||||||
if(!stream || !image)
|
if(!stream || !image)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
|
@ -988,6 +1020,8 @@ GpStatus WINGDIPAPI GdipLoadImageFromStream(IStream* stream, GpImage **image)
|
||||||
/* FIXME: no ICM */
|
/* FIXME: no ICM */
|
||||||
GpStatus WINGDIPAPI GdipLoadImageFromStreamICM(IStream* stream, GpImage **image)
|
GpStatus WINGDIPAPI GdipLoadImageFromStreamICM(IStream* stream, GpImage **image)
|
||||||
{
|
{
|
||||||
|
TRACE("%p %p\n", stream, image);
|
||||||
|
|
||||||
return GdipLoadImageFromStream(stream, image);
|
return GdipLoadImageFromStream(stream, image);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1021,6 +1055,8 @@ GpStatus WINGDIPAPI GdipSaveImageToFile(GpImage *image, GDIPCONST WCHAR* filenam
|
||||||
GpStatus stat;
|
GpStatus stat;
|
||||||
IStream *stream;
|
IStream *stream;
|
||||||
|
|
||||||
|
TRACE("%p (%s) %p %p\n", image, debugstr_w(filename), clsidEncoder, encoderParams);
|
||||||
|
|
||||||
if (!image || !filename|| !clsidEncoder)
|
if (!image || !filename|| !clsidEncoder)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
|
@ -1129,6 +1165,8 @@ GpStatus WINGDIPAPI GdipSaveImageToStream(GpImage *image, IStream* stream,
|
||||||
output = NULL;
|
output = NULL;
|
||||||
output_size = 0;
|
output_size = 0;
|
||||||
|
|
||||||
|
TRACE("%p %p %p %p\n", image, stream, clsid, params);
|
||||||
|
|
||||||
if(!image || !stream)
|
if(!image || !stream)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
|
@ -1243,6 +1281,8 @@ static const ImageCodecInfo codecs[NUM_ENCODERS_SUPPORTED] =
|
||||||
*/
|
*/
|
||||||
GpStatus WINGDIPAPI GdipGetImageEncodersSize(UINT *numEncoders, UINT *size)
|
GpStatus WINGDIPAPI GdipGetImageEncodersSize(UINT *numEncoders, UINT *size)
|
||||||
{
|
{
|
||||||
|
TRACE("%p %p\n", numEncoders, size);
|
||||||
|
|
||||||
if (!numEncoders || !size)
|
if (!numEncoders || !size)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
|
@ -1257,6 +1297,8 @@ GpStatus WINGDIPAPI GdipGetImageEncodersSize(UINT *numEncoders, UINT *size)
|
||||||
*/
|
*/
|
||||||
GpStatus WINGDIPAPI GdipGetImageEncoders(UINT numEncoders, UINT size, ImageCodecInfo *encoders)
|
GpStatus WINGDIPAPI GdipGetImageEncoders(UINT numEncoders, UINT size, ImageCodecInfo *encoders)
|
||||||
{
|
{
|
||||||
|
TRACE("%u %u %p\n", numEncoders, size, encoders);
|
||||||
|
|
||||||
if (!encoders ||
|
if (!encoders ||
|
||||||
(numEncoders != NUM_ENCODERS_SUPPORTED) ||
|
(numEncoders != NUM_ENCODERS_SUPPORTED) ||
|
||||||
(size != sizeof (codecs)))
|
(size != sizeof (codecs)))
|
||||||
|
@ -1276,6 +1318,8 @@ GpStatus WINGDIPAPI GdipCreateBitmapFromHBITMAP(HBITMAP hbm, HPALETTE hpal, GpBi
|
||||||
GpStatus retval;
|
GpStatus retval;
|
||||||
PixelFormat format;
|
PixelFormat format;
|
||||||
|
|
||||||
|
TRACE("%p %p %p\n", hbm, hpal, bitmap);
|
||||||
|
|
||||||
if(!hbm || !bitmap)
|
if(!hbm || !bitmap)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
|
@ -1335,6 +1379,8 @@ GpStatus WINGDIPAPI GdipSetEffectParameters(CGpEffect *effect,
|
||||||
*/
|
*/
|
||||||
GpStatus WINGDIPAPI GdipGetImageFlags(GpImage *image, UINT *flags)
|
GpStatus WINGDIPAPI GdipGetImageFlags(GpImage *image, UINT *flags)
|
||||||
{
|
{
|
||||||
|
TRACE("%p %p\n", image, flags);
|
||||||
|
|
||||||
if(!image || !flags)
|
if(!image || !flags)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue