FreeRDP
dc.c File Reference
#include <freerdp/config.h>
#include <stdio.h>
#include <stdlib.h>
#include <freerdp/freerdp.h>
#include <freerdp/gdi/gdi.h>
#include <freerdp/gdi/region.h>
#include <freerdp/gdi/dc.h>

Functions

HGDI_DC gdi_GetDC (void)
 Get the current device context (a new one is created each time). msdn{dd144871}. More...
 
HGDI_DC gdi_CreateDC (UINT32 format)
 Create a device context. msdn{dd144871}. More...
 
HGDI_DC gdi_CreateCompatibleDC (HGDI_DC hdc)
 Create a new device context compatible with the given device context. msdn{dd183489}. More...
 
HGDIOBJECT gdi_SelectObject (HGDI_DC hdc, HGDIOBJECT hgdiobject)
 Select a GDI object in the current device context. msdn{dd162957}. More...
 
BOOL gdi_DeleteObject (HGDIOBJECT hgdiobject)
 Delete a GDI object. msdn{dd183539}. More...
 
BOOL gdi_DeleteDC (HGDI_DC hdc)
 Delete device context. msdn{dd183533}. More...
 

Function Documentation

◆ gdi_CreateCompatibleDC()

HGDI_DC gdi_CreateCompatibleDC ( HGDI_DC  hdc)

Create a new device context compatible with the given device context. msdn{dd183489}.

Parameters
hdcdevice context
Returns
new compatible device context
Here is the call graph for this function:
Here is the caller graph for this function:

◆ gdi_CreateDC()

HGDI_DC gdi_CreateDC ( UINT32  format)

Create a device context. msdn{dd144871}.

Returns
new device context
Here is the call graph for this function:

◆ gdi_DeleteDC()

BOOL gdi_DeleteDC ( HGDI_DC  hdc)

Delete device context. msdn{dd183533}.

Parameters
hdcdevice context
Returns
nonzero if successful, 0 otherwise
Here is the call graph for this function:
Here is the caller graph for this function:

◆ gdi_DeleteObject()

BOOL gdi_DeleteObject ( HGDIOBJECT  hgdiobject)

Delete a GDI object. msdn{dd183539}.

Parameters
hgdiobjectGDI object
Returns
nonzero if successful, 0 otherwise
Here is the call graph for this function:
Here is the caller graph for this function:

◆ gdi_GetDC()

HGDI_DC gdi_GetDC ( void  )

Get the current device context (a new one is created each time). msdn{dd144871}.

Returns
current device context
Here is the call graph for this function:
Here is the caller graph for this function:

◆ gdi_SelectObject()

HGDIOBJECT gdi_SelectObject ( HGDI_DC  hdc,
HGDIOBJECT  hgdiobject 
)

Select a GDI object in the current device context. msdn{dd162957}.

Parameters
hdcdevice context
hgdiobjectnew selected GDI object
Returns
previous selected GDI object
Here is the caller graph for this function: