Using Win32 functions in Visual FoxPro Image Gallery
GDI+ Pen
Code examples:
Custom GDI+ class
..msdn    Add comment     W32 Constants      Translate this page
Creates a Pen object that uses a specified color and width.
Code examples:
Custom GDI+ class
GpStatus WINGDIPAPI GdipCreatePen1(
    ARGB color,
    REAL width,
    GpUnit unit,
    GpPen **pen

FoxPro declaration:
DECLARE INTEGER GdipCreatePen1 IN gdiplus;
    INTEGER   color,;
    SINGLE    penwidth,;
    INTEGER   unit,;
    INTEGER @ gdipen

[in] ARGB color value.

[in] Real number that specifies the width of this pen"s stroke.

[in] Member of the Unit enumeration.

[out] Handle to the Pen object.
Return value:
Returns 0 on success.
My comment:
When you no longer need the Pen handle, call the GdipDeletePen function.
Word Index links for the GdipCreatePen1 :
Translate this page:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
Created: 2004-07-26 17:41:42
Modified: 2004-07-26 17:47:23
Visited in last 7 days: 17
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 (
10 sec.Function: 'HeapAlloc'
21 sec.Function: 'EndPath'
32 sec.Function: 'GdipGetImageEncodersSize'
44 sec.Function: 'GetFileTitle'
54 sec.Function: 'BringWindowToTop'
1.12 min.Function: 'CeRegDeleteKey'
1.32 min.Function: 'EnumDeviceDrivers'
1.53 min.Function: 'waveInAddBuffer'
1.73 min.Function: 'MQDeleteQueue'
2.02 min.Function: 'CopyIcon'
Advertise here!