Using Win32 functions in Visual FoxPro Image Gallery
GDI+ Graphics
..msdn
GdipCreateFromHDC
GdipCreateFromHDC2
GdipCreateFromHWND
GdipDeleteGraphics
GdipDrawImageI
GdipDrawImageRectI
GdipDrawImageRectRectI
GdipDrawLineI
GdipDrawPieI
GdipDrawRectangle
GdipFillPieI
GdipFillRectangle
GdipGetDC
GdipGetDpiX
GdipGetDpiY
GdipGetPageScale
GdipGetPageUnit
GdipGetSmoothingMode
GdipReleaseDC
GdipResetWorldTransform
GdipRotateWorldTransform
GdipSetClipRectI
GdipSetPageScale
GdipSetPageUnit
GdipSetSmoothingMode
GdipSetTextRenderingHint
GdipSetWorldTransform
GdipTranslateWorldTransform
Code examples:
GdipGetPageUnit
..msdn    Add comment     W32 Constants      Translate this page
Returns an element of the Unit enumeration that indicates the unit of measure currently set for this Graphics handle.
Code examples:
Declaration:
GpStatus WINGDIPAPI GdipGetPageUnit(
    GpGraphics *graphics, 
    GpUnit *unit
)
FoxPro declaration:
DECLARE INTEGER GdipGetPageUnit IN gdiplus;
    INTEGER graphics,;
    INTEGER @unit
Parameters:
graphics
[in] Handle to the Graphics object.

unit
[out] Element of the Unit enumeration that specifies the unit of measure currently set for this Graphics handle.
Return value:
Returns GpStatus value, 0 means success.
Usage:
nUnit=0
? GdipGetPageUnit(gdip.graphics, @nUnit), nUnit
My comment:
Unit Enumerated Type
typedef enum {
        UnitWorld = 0,
        UnitDisplay = 1,
        UnitPixel = 2,
        UnitPoint = 3,
        UnitInch = 4,
        UnitDocument = 5,
        UnitMillimeter = 6
} Unit;

1 Point Unit = 1/72 inch.
1 Document Unit = 1/300 inch.

See also: GdipSetPageUnit
Word Index links for the GdipGetPageUnit :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2009-09-18 10:43:34
Modified: 2009-09-18 10:54:10
Visited in last 7 days: 6
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2014 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.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.196.168.236)
1 sec.Example: 'Displaying bitmap using the AlphaBlend function'
4 sec.Function: 'GetMonitorContrast'
7 sec.Example: 'Printing text on the main VFP window'
10 sec.Example: 'Enumerating ODBC drivers available on the local computer'
12.35 hrs.Function: 'CryptDeriveKey'
 Function: 'CryptDestroyKey'
 Function: 'NetScheduleJobEnum'
Function group: 'Network Management'
 
Function group: 'Service'
 Function: 'JetCommitTransaction'
Function group: 'Extensible Storage Engine (ESE, Jet Blue)'
12.36 hrs.Function: 'IpRenewAddress'
Function group: 'IP Helper'
Google
Advertise here!