Using Win32 functions in Visual FoxPro Image Gallery
GDI+ PathGradient Brush
Code examples:
GDI+: creating a gradient
..msdn    Add comment     W32 Constants      Translate this page
Creates a PathGradient Brush object based on an array of points. Initializes the wrap mode of the path gradient brush.
Code examples:
GDI+: creating a gradient
GpStatus WINGDIPAPI GdipCreatePathGradientI(
    GDIPCONST GpPoint* points,
    INT count,
    GpWrapMode wrapMode,
    GpPathGradient **polyGradient)
FoxPro declaration:
DECLARE INTEGER GdipCreatePathGradientI IN gdiplus;
    STRING @points,;
    INTEGER pointcount,;
    INTEGER wrapMode,;
    INTEGER @polyGradient
points [in]
Pointer to an array of points that specifies the boundary path of the path gradient brush.

count [in]
Integer that specifies the number of elements in the points array.

wrapMode [in]
Element of the WrapMode enumeration (0 to 4) that specifies how areas painted with the path gradient brush will be tiled.

[out] Handle of the brush object.
Return value:
Returns 0 on success.
cPoints = num2dword(0) +;
    num2dword(0) +;
    num2dword(0) +;
    num2dword(400) +;
    num2dword(400) +;
    num2dword(400) +;
    num2dword(400) +;

hBrush = 0
    @cPoints, nPointCount, 4, @hBrush)

* later on
My comment:
When you no longer need the handle, call the GdipDeleteBrush function.
Word Index links for the GdipCreatePathGradientI :
Translate this page:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
Created: 2013-12-02 11:20:31
Modified: 2013-12-02 11:29:49
Visited in last 7 days: 27
User Contributed Notes:
There are no notes on this subject.

Copyright 2001-2018 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.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
20 sec.Function: 'InsertMenuItem'
40 sec.
Function group: 'Error Handling'
1.02 min.Function: 'GetSecurityDescriptorOwner'
1.32 min.Function: 'BitBlt'
1.67 min.Function: 'IsValidURL'
2.02 min.Function: 'Beep'
2.4 min.Function: 'CeWriteFile'
2.77 min.Function: 'WNetGetUniversalName'
3.15 min.
Function group: 'Multilingual User Interface'
3.53 min.Function: 'DeviceIoControl'
Advertise here!