Using Win32 functions in Visual FoxPro Image Gallery
GDI+ Bitmap
..msdn
GdipBitmapGetPixel
GdipBitmapSetPixel
GdipBitmapSetResolution
GdipCloneBitmapArea
GdipCreateBitmapFromGdiDib
GdipCreateBitmapFromGraphics
GdipCreateBitmapFromHBITMAP
GdipCreateBitmapFromHICON
GdipCreateHBITMAPFromBitmap
GdipCreateHICONFromBitmap
Code examples:
Custom GDI+ class
GdipCloneBitmapArea
..msdn    Add comment     W32 Constants      Translate this page
Creates a new Bitmap object by copying a portion of this bitmap.
Code examples:
Custom GDI+ class
Declaration:
GpStatus WINGDIPAPI GdipCloneBitmapArea(
    REAL x,
    REAL y,
    REAL width,
    REAL height,
    PixelFormat format,
    GpBitmap *srcBitmap,
    GpBitmap **dstBitmap
)

FoxPro declaration:
DECLARE INTEGER GdipCloneBitmapArea IN gdiplus;
    SINGLE    x,;
    SINGLE    y,;
    SINGLE    width,;
    SINGLE    height,;
    INTEGER   fmt,;
    INTEGER   srcBitmap,;
    INTEGER @ dstBitmap

Parameters:
x
[in] Real number that specifies the x-coordinate of the upper-left corner of the rectangle that specifies the portion of this bitmap to copy.

y
[in] Real number that specifies the y-coordinate of the upper-left corner of the rectangle that specifies the portion of this bitmap to copy.

width
[in] Real number that specifies the width of the rectangle that specifies the portion of this bitmap to copy.

height
[in] Real number that specifies the height of the rectangle that specifies the portion of this image to copy.

format
[in] Integer that specifies the pixel format of the new bitmap.

srcbitmap
[in] Handle to source GDI+ bitmap object.

dstbitmap
[out] Handle to new GDI+ bitmap object.
Return value:
Returns 0 on success.
Usage:
#DEFINE PixelFormatUndefined 0x00
#DEFINE PixelFormat24bppRGB 0x00021808

LOCAL dstHImage
dstHImage = 0

THIS.errorcode = GdipCloneBitmapArea(;
    m.x0, m.y0, m.dstwidth, m.dstheight,;
    PixelFormatUndefined, src.himage, @dstHImage)
My comment:
// In-memory pixel data formats:
// bits 0-7 = format index
// bits 8-15 = pixel size (in bits)
// bits 16-23 = flags
// bits 24-31 = reserved
Word Index links for the GdipCloneBitmapArea :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2004-07-27 10:01:29
Modified: 2009-09-09 13:41:56
Visited in last 7 days: 31
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.92.194.75)
16 sec.Function: 'GetMenuItemCount'
33 sec.Function: 'GetKeyboardType'
51 sec.Function: 'StrTrim'
1.15 min.Function: 'JetBeginSession'
1.5 min.Function: 'ConvertSidToStringSid'
1.82 min.Function: 'GetErrorMode'
2.17 min.Function: 'CreateEllipticRgn'
2.53 min.Function: 'WinHttpSetCredentials'
2.98 min.Function: 'DestroyIcon'
5 min.Function: 'MAPIFreeBuffer'
Google
Advertise here!