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:
GdipDrawImageI
..msdn    Add comment     W32 Constants      Translate this page
Draws an image at a specified location.
Code examples:
Declaration:
GpStatus WINGDIPAPI GdipDrawImageI(
    GpGraphics *graphics,
    GpImage *image,
    INT x,
    INT y
)

FoxPro declaration:
DECLARE INTEGER GdipDrawImageI IN gdiplus;
    INTEGER graphics,;
    INTEGER img,;
    INTEGER x,;
    INTEGER y
Parameters:
graphics
[in] Pointer to a Graphics object.

image
[in] Pointer to an Image object that specifies the image to be drawn.

x
[in] Integer that specifies the x-coordinate of the upper-left corner of the rendered image.

y
[in] Integer that specifies the y-coordinate of the upper-left corner of the rendered image.
Return value:
If succeeds, it returns Ok, which is an element of the Status enumeration.
My comment:
This function can be used for cropping images:
  • load a source image
  • create a blank image the size of the valid part of the source image
  • use negative x and y offsets to draw the source image on the target image
  • Word Index links for the GdipDrawImageI :
    Translate this page:
      Spanish    Portuguese    German    French    Italian  
    FreeTranslation.com offers instant, free translations of text or web pages.
    Created: 2004-07-08 11:01:19
    Modified: 2006-05-17 11:25:11
    Visited in last 7 days: 18
    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.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
    Last Topics Visited (54.156.76.240)
    3 sec.Function: 'CreateEvent'
    7 sec.Function: 'GdipCreateStringFormat'
    12 sec.
    Function group: 'HTTP Functions (WinHTTP)'
    16 sec.Function: 'GetFileVersionInfo'
    20 sec.Function: 'CryptReleaseContext'
    24 sec.Function: 'DeleteMenu'
    29 sec.Function: 'FatalAppExit'
    34 sec.Function: 'BeginUpdateResource'
    40 sec.Function: 'DefWindowProc'
    45 sec.Function: 'GetAdaptersAddresses'
    Google
    Advertise here!