Using Win32 functions in Visual FoxPro Image Gallery
Bitmap
..msdn
AlphaBlend
BitBlt
CreateCompatibleBitmap
CreateDIBSection
GetDIBits
GradientFill
LoadBitmap
StretchBlt
StretchDIBits
Code examples:
How to put a vertical text scrolling on the form (a movie cast)
Using the GradientFill function
GradientFill
..msdn    Add comment     W32 Constants      Translate this page
The GradientFill function fills rectangle and triangle structures.
Code examples:
How to put a vertical text scrolling on the form (a movie cast)
Using the GradientFill function
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.
Word Index links for the GradientFill :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-12-23 13:27:18
Modified: 2002-12-23 13:29:42
Visited in last 7 days: 19
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 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.6.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.166.150.10)
14 sec.Function: 'WTSEnumerateSessions'
29 sec.Function: 'JetCreateInstance'
41 sec.Function: 'RegDeleteKey'
54 sec.Function: 'waveInUnprepareHeader'
1.12 min.Function: 'InternetGetConnectedStateEx'
1.33 min.Function: 'SetThreadExecutionState'
1.53 min.Function: 'CreateEllipticRgn'
1.77 min.Function: 'mmioClose'
2 min.Function: 'SetParent'
2.23 min.Function: 'EnumClipboardFormats'
Google
Advertise here!