 |
 |
 |
|
|  |  |
 |
GradientFill ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The GradientFill function fills rectangle and triangle structures. |
 |  | | Code examples: |  | |
|
 |  | | Declaration: |  |  |
BOOL GradientFill(
HDC hdc, // handle to DC
PTRIVERTEX pVertex, // array of vertices
ULONG dwNumVertex, // number of vertices
PVOID pMesh, // array of gradients
ULONG dwNumMesh, // size of gradient array
ULONG dwMode // gradient fill mode
);
|
 |  |  | | FoxPro declaration: |  |  |
DECLARE INTEGER GradientFill IN Msimg32;
INTEGER hdc,;
STRING @ pVertex,;
LONG dwNumVertex,;
STRING @ pMesh,;
LONG dwNumMesh,;
LONG dwMode
|
 |  |  | | Parameters: |  | hdc
[in] Handle to the destination device context.
pVertex
[in] Pointer to an array of TRIVERTEX structures that each define a triangle vertex.
dwNumVertex
[in] The number of vertices in pVertex.
pMesh
[in] Array of GRADIENT_TRIANGLE structures in triangle mode, or an array of GRADIENT_RECT structures in rectangle mode.
dwNumMesh
[in] The number of elements (triangles or rectangles) in pMesh.
dwMode
[in] Specifies gradient fill mode. This parameter can be one of the following values. |
 |  | | Return value: |  | | If the function succeeds, the return value is TRUE. |
 |  | | My comment: |  | To add smooth shading to a rectangle, call GradientFill with the upper-left and lower-right coordinates of the rectangle. There are two shading modes used when drawing a rectangle. In horizontal mode, the rectangle is shaded from left-to-right. In vertical mode, the rectangle is shaded from top-to-bottom.
|
 |  | | Translate this page: |  | |  |  | | • |  | | Created: | 2002-12-23 13:27:18 | | Modified: | 2002-12-23 13:29:42 | Visited in last 7 days: 21 |
|
 |
 |
 |
 |
Copyright © 2001-2013
News2News, Inc.
Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use.
The information on this page is presented AS IS, meaning that you may use it at your own risk.
Microsoft Visual FoxPro
and Windows are trade marks
of Microsoft Corp.
All other trademarks are the property of their respective owners.
Privacy policy
|
 |
 |
 |
Credits: PHP (4.4.9), an HTML-embedded scripting language,
MySQL (5.1.55-log), the Open Source standard SQL database,
AceHTML Freeware
Version 4, freeware HTML Editor of choice. Hosted by Korax Online Inc. |
 |
 |
|
 |
 |
|
|