Bevel Function

Microchip Graphics Library

Microchip Graphics Library
Bevel Function
C
WORD Bevel(
    SHORT x1, 
    SHORT y1, 
    SHORT x2, 
    SHORT y2, 
    SHORT rad
);
Overview

Draws a beveled figure on the screen. When x1 = x2 and y1 = y2, a circular object is drawn. When x1 < x2 and y1 < y2 and rad (radius) = 0, a rectangular object is drawn.

Description

Input Parameters
Input Parameters 
Description 
SHORT x1 
x coordinate position of the upper left center of the circle that draws the rounded corners. 
SHORT y1 
y coordinate position of the upper left center of the circle that draws the rounded corners. 
SHORT x2 
x coordinate position of the lower right center of the circle that draws the rounded corners. 
SHORT y2 
y coordinate position of the lower right center of the circle that draws the rounded corners. 
SHORT rad 
defines the redius of the circle, that draws the rounded corners. 
Returns

For NON-Blocking configuration:

  • Returns 0 when device is busy and the shape is not yet completely drawn.
  • Returns 1 when the shape is completely drawn.
For Blocking configuration:
  • Always return 1.

Side Effects

none

Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved