FreeRDP
ImageMessage.c
1 
20 #include <winpr/config.h>
21 
22 #include "wlog.h"
23 #include <winpr/image.h>
24 
25 #include "ImageMessage.h"
26 
27 BOOL WLog_ImageMessage_Write(char* filename, void* data, size_t width, size_t height, size_t bpp)
28 {
29  int status = 0;
30 
31  status = winpr_bitmap_write(filename, data, width, height, bpp);
32 
33  if (status < 0)
34  return FALSE;
35 
36  return TRUE;
37 }