gdiplus: Implement GdipGetImagePaletteSize.

This commit is contained in:
Vincent Povirk 2009-12-11 16:56:08 -06:00 committed by Alexandre Julliard
parent 39dc81cc80
commit 59f45f2cbb
1 changed files with 9 additions and 2 deletions

View File

@ -1465,12 +1465,19 @@ GpStatus WINGDIPAPI GdipGetImageHorizontalResolution(GpImage *image, REAL *res)
GpStatus WINGDIPAPI GdipGetImagePaletteSize(GpImage *image, INT *size)
{
FIXME("%p %p\n", image, size);
TRACE("%p %p\n", image, size);
if(!image || !size)
return InvalidParameter;
return NotImplemented;
if (image->palette_count == 0)
*size = sizeof(ColorPalette);
else
*size = sizeof(UINT)*2 + sizeof(ARGB)*image->palette_count;
TRACE("<-- %u\n", *size);
return Ok;
}
/* FIXME: test this function for non-bitmap types */