FreeRDP
drawing.c File Reference
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <freerdp/freerdp.h>
#include <freerdp/gdi/gdi.h>
#include <freerdp/gdi/dc.h>
#include "drawing.h"

Functions

INT32 gdi_GetROP2 (HGDI_DC hdc)
 
INT32 gdi_SetROP2 (HGDI_DC hdc, INT32 fnDrawMode)
 
UINT32 gdi_GetBkColor (HGDI_DC hdc)
 
UINT32 gdi_SetBkColor (HGDI_DC hdc, UINT32 crColor)
 
UINT32 gdi_GetBkMode (HGDI_DC hdc)
 
INT32 gdi_SetBkMode (HGDI_DC hdc, INT32 iBkMode)
 
UINT32 gdi_SetTextColor (HGDI_DC hdc, UINT32 crColor)
 

Function Documentation

UINT32 gdi_GetBkColor ( HGDI_DC  hdc)

Get the current background color.
http://msdn.microsoft.com/en-us/library/dd144852/

Parameters
hdcdevice context
Returns
background color
UINT32 gdi_GetBkMode ( HGDI_DC  hdc)

Get the current background mode.
http://msdn.microsoft.com/en-us/library/dd144853/

Parameters
hdcdevice context
Returns
background mode
INT32 gdi_GetROP2 ( HGDI_DC  hdc)

FreeRDP: A Remote Desktop Protocol Implementation GDI Drawing Functions

Copyright 2010-2011 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com Copyright 2016 Armin Novak armin.nosp@m..nov.nosp@m.ak@th.nosp@m.inca.nosp@m.st.co.nosp@m.m Copyright 2016 Thincast Technologies GmbH

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Set current foreground draw mode.
http://msdn.microsoft.com/en-us/library/dd144922/

Parameters
hdcdevice context
Returns
draw mode

Here is the caller graph for this function:

UINT32 gdi_SetBkColor ( HGDI_DC  hdc,
UINT32  crColor 
)

Set the current background color.
http://msdn.microsoft.com/en-us/library/dd162964/

Parameters
hdcdevice color
crColornew background color
Returns
previous background color

Here is the caller graph for this function:

INT32 gdi_SetBkMode ( HGDI_DC  hdc,
INT32  iBkMode 
)

Set the current background mode.
http://msdn.microsoft.com/en-us/library/dd162965/

Parameters
hdcdevice context
iBkModebackground mode
Returns
previous background mode on success, 0 on failure
INT32 gdi_SetROP2 ( HGDI_DC  hdc,
INT32  fnDrawMode 
)

Set current foreground draw mode.
http://msdn.microsoft.com/en-us/library/dd145088/

Parameters
hdcdevice context
fnDrawModedraw mode
Returns
previous draw mode

Here is the caller graph for this function:

UINT32 gdi_SetTextColor ( HGDI_DC  hdc,
UINT32  crColor 
)

Set the current text color.
http://msdn.microsoft.com/en-us/library/dd145093/

Parameters
hdcdevice context
crColornew text color
Returns
previous text color

Here is the caller graph for this function: