FreeRDP
line.c File Reference
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <freerdp/freerdp.h>
#include <freerdp/gdi/gdi.h>
#include <freerdp/gdi/pen.h>
#include <freerdp/gdi/bitmap.h>
#include <freerdp/gdi/region.h>
#include "drawing.h"
#include "clipping.h"
#include "line.h"

Functions

static BOOL gdi_rop_color (UINT32 rop, BYTE *pixelPtr, UINT32 pen, UINT32 format)
 
BOOL gdi_LineTo (HGDI_DC hdc, UINT32 nXEnd, UINT32 nYEnd)
 
BOOL gdi_PolylineTo (HGDI_DC hdc, GDI_POINT *lppt, DWORD cCount)
 
BOOL gdi_Polyline (HGDI_DC hdc, GDI_POINT *lppt, UINT32 cPoints)
 
BOOL gdi_PolyPolyline (HGDI_DC hdc, GDI_POINT *lppt, UINT32 *lpdwPolyPoints, DWORD cCount)
 
BOOL gdi_MoveToEx (HGDI_DC hdc, UINT32 X, UINT32 Y, HGDI_POINT lpPoint)
 

Function Documentation

BOOL gdi_LineTo ( HGDI_DC  hdc,
UINT32  nXEnd,
UINT32  nYEnd 
)

FreeRDP: A Remote Desktop Protocol Implementation GDI Line 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.

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL gdi_MoveToEx ( HGDI_DC  hdc,
UINT32  X,
UINT32  Y,
HGDI_POINT  lpPoint 
)

Move pen from the current device context to a new position.

Parameters
hdcdevice context
Xx position
Yy position
Returns
nonzero on success, 0 otherwise

Here is the caller graph for this function:

BOOL gdi_Polyline ( HGDI_DC  hdc,
GDI_POINT *  lppt,
UINT32  cPoints 
)

Draw one or more straight lines

Parameters
hdcdevice context
lpptarray of points
cPointsnumber of points
Returns
nonzero on success, 0 otherwise

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL gdi_PolylineTo ( HGDI_DC  hdc,
GDI_POINT *  lppt,
DWORD  cCount 
)

Draw one or more straight lines

Parameters
hdcdevice context
lpptarray of points
cCountnumber of points
Returns
nonzero on success, 0 otherwise

Here is the call graph for this function:

BOOL gdi_PolyPolyline ( HGDI_DC  hdc,
GDI_POINT *  lppt,
UINT32 lpdwPolyPoints,
DWORD  cCount 
)

Draw multiple series of connected line segments

Parameters
hdcdevice context
lpptarray of points
lpdwPolyPointsarray of numbers of points per series
cCountcount of entries in lpdwPolyPoints
Returns
nonzero on success, 0 otherwise

Here is the call graph for this function:

static BOOL gdi_rop_color ( UINT32  rop,
BYTE pixelPtr,
UINT32  pen,
UINT32  format 
)
static

FreeRDP: A Remote Desktop Protocol Implementation GDI Line 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. Draw a line from the current position to the given position.
http://msdn.microsoft.com/en-us/library/dd145029/

Parameters
hdcdevice context
nXEndending x position
nYEndending y position
Returns
nonzero if successful, 0 otherwise

Here is the call graph for this function:

Here is the caller graph for this function: