Using Win32 functions in Visual FoxPro Image Gallery
GDI+ Bitmap
..msdn
GdipBitmapGetPixel
GdipBitmapSetPixel
GdipBitmapSetResolution
GdipCloneBitmapArea
GdipCreateBitmapFromGdiDib
GdipCreateBitmapFromGraphics
GdipCreateBitmapFromHBITMAP
GdipCreateBitmapFromHICON
GdipCreateHBITMAPFromBitmap
GdipCreateHICONFromBitmap
Code examples:
GdipBitmapSetResolution
..msdn    Add comment     W32 Constants      Translate this page
Sets the resolution of this Bitmap object.
Code examples:
Declaration:
GpStatus WINGDIPAPI GdipBitmapSetResolution(
    GpBitmap* bitmap,
    REAL xdpi,
    REAL ydpi
)
FoxPro declaration:
DECLARE INTEGER GdipBitmapSetResolution IN gdiplus;
    INTEGER hbm,;
    SINGLE xdpi,;
    SINGLE ydpi
Parameters:
gdibitmap
[in] Handle to a GDI bitmap.

xdpi
[in] Real number that specifies the horizontal resolution in dots per inch.

ydpi
[in] Real number that specifies the vertical resolution in dots per inch.
Return value:
Returns 0 on success.
Usage:
PROCEDURE SetResolution(nDpiX As Single, nDpiY As Single)
    * himage, hbitmap
    LOCAL nDpiXS, nDpiYS
    nDpiXS = nDpiX * 1.0000
    nDpiYS = nDpiY * 1.0000

    THIS.errorcode = GdipBitmapSetResolution(THIS.himage,;
        nDpiXS, nDpiYS)
RETURN (THIS.errorcode=0)
My comment:
See also: GdipGetDpiX, GdipGetDpiY, GdipGetImageHorizontalResolution, GdipGetImageVerticalResolution
Word Index links for the GdipBitmapSetResolution :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2009-09-24 11:40:24
Modified: 2009-09-24 12:07:10
Visited in last 7 days: 16
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 (54.221.93.187)
13 sec.Function: 'SetupGetInfFileList'
26 sec.Function: 'SetForegroundWindow'
40 sec.Function: 'InternetWriteFile'
52 sec.Function: 'CompareString'
1.08 min.Function: 'SetMapMode'
1.33 min.Function: 'WSAGetLastError'
1.58 min.Function: 'DeleteObject'
1.8 min.Function: 'GetNamedSecurityInfo'
2.03 min.Function: 'ImageList_GetIconSize'
2.25 min.Function: 'ReleaseCapture'
Google
Advertise here!