Using Win32 functions in Visual FoxPro Image Gallery
GDI+ PathGradient Brush
GdipCreatePathGradientI
GdipSetPathGradientCenterColor
GdipSetPathGradientCenterPointI
Code examples:
GDI+: creating a gradient
GdipCreatePathGradientI
..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
Declaration:
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
Parameters:
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.

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

hBrush = 0
GdipCreatePathGradientI(;
    @cPoints, nPointCount, 4, @hBrush)

* later on
GdipDeleteBrush(hBrush)
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  
FreeTranslation.com 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: 42
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.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (23.22.136.56)
12 sec.Function: 'FindClose'
Function group: 'File Management'
24 sec.Function: 'CopyFileTransacted'
37 sec.Function: 'PathFileExists'
50 sec.Function: 'GetMenuItemCount'
1.05 min.Function: 'TrackPopupMenuEx'
1.28 min.Function: 'GetDeviceDriverBaseName'
1.48 min.Function: 'recvfrom'
1.72 min.Function: 'GetTcpStatistics'
1.92 min.Example: 'How to ping a remote site using ICMP API calls'
2.15 min.Example: 'Using the Semaphore object'
Google
Advertise here!