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
GdipReleaseDC
GdipResetWorldTransform
GdipRotateWorldTransform
GdipSetClipRectI
GdipSetPageScale
GdipSetPageUnit
GdipSetTextRenderingHint
GdipSetWorldTransform
GdipTranslateWorldTransform
Code examples:
Custom GDI+ class
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:
Custom GDI+ class
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: 13
User Contributed Notes:
There are no notes on this subject.


Copyright © 2001-2013 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.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.234.42.16)
4 sec.Function: 'LoadBitmap'
6.2 hrs.Function: 'GetMenuBarInfo'
 Example: 'How to find which fonts Windows uses for drawing captions, menus and message boxes'
 Example: 'Copying picture of the active form to the Clipboard using Enhanced Metafile API functions'
8.36 hrs.Example: 'URL: splitting into its component parts'
 Function: 'CeRapiInvoke'
12.3 hrs.Example: 'Printing text on the main VFP window'
12.61 hrs.Function: 'capCreateCaptureWindow'
 Example: 'Enumerating network interfaces on the local computer'
13.11 hrs.Function: 'JetSetColumn'
Function group: 'Extensible Storage Engine (ESE, Jet Blue)'
Google
Advertise here!