FreeRDP
image.h File Reference
#include <winpr/winpr.h>
#include <winpr/wtypes.h>
This graph shows which files directly or indirectly include this file:

Data Structures

struct  WINPR_BITMAP_FILE_HEADER
 
struct  WINPR_BITMAP_INFO_HEADER
 
struct  WINPR_BITMAP_CORE_HEADER
 
struct  wImage
 

Macros

#define WINPR_IMAGE_BITMAP   0
 
#define WINPR_IMAGE_PNG   1
 
#define WINPR_IMAGE_BMP_HEADER_LEN   54
 

Functions

WINPR_API int winpr_bitmap_write (const char *filename, const BYTE *data, size_t width, size_t height, size_t bpp)
 
WINPR_API int winpr_bitmap_write_ex (const char *filename, const BYTE *data, size_t stride, size_t width, size_t height, size_t bpp)
 
WINPR_API BYTEwinpr_bitmap_construct_header (size_t width, size_t height, size_t bpp)
 
WINPR_API int winpr_image_write (wImage *image, const char *filename)
 
WINPR_API int winpr_image_read (wImage *image, const char *filename)
 
WINPR_API int winpr_image_read_buffer (wImage *image, const BYTE *buffer, size_t size)
 
WINPR_API wImagewinpr_image_new (void)
 
WINPR_API void winpr_image_free (wImage *image, BOOL bFreeBuffer)
 

Macro Definition Documentation

◆ WINPR_IMAGE_BITMAP

#define WINPR_IMAGE_BITMAP   0

◆ WINPR_IMAGE_BMP_HEADER_LEN

#define WINPR_IMAGE_BMP_HEADER_LEN   54

◆ WINPR_IMAGE_PNG

#define WINPR_IMAGE_PNG   1

Function Documentation

◆ winpr_bitmap_construct_header()

WINPR_API BYTE* winpr_bitmap_construct_header ( size_t  width,
size_t  height,
size_t  bpp 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ winpr_bitmap_write()

WINPR_API int winpr_bitmap_write ( const char *  filename,
const BYTE data,
size_t  width,
size_t  height,
size_t  bpp 
)

Refer to "Compressed Image File Formats: JPEG, PNG, GIF, XBM, BMP" book

Here is the call graph for this function:
Here is the caller graph for this function:

◆ winpr_bitmap_write_ex()

WINPR_API int winpr_bitmap_write_ex ( const char *  filename,
const BYTE data,
size_t  stride,
size_t  width,
size_t  height,
size_t  bpp 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ winpr_image_free()

WINPR_API void winpr_image_free ( wImage image,
BOOL  bFreeBuffer 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ winpr_image_new()

WINPR_API wImage* winpr_image_new ( void  )
Here is the caller graph for this function:

◆ winpr_image_read()

WINPR_API int winpr_image_read ( wImage image,
const char *  filename 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ winpr_image_read_buffer()

WINPR_API int winpr_image_read_buffer ( wImage image,
const BYTE buffer,
size_t  size 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ winpr_image_write()

WINPR_API int winpr_image_write ( wImage image,
const char *  filename 
)
Here is the call graph for this function:
Here is the caller graph for this function: