Using Win32 functions in Visual FoxPro Image Gallery
GDI+ Bitmap
..msdn
GdipBitmapGetPixel
GdipBitmapSetPixel
GdipBitmapSetResolution
GdipCloneBitmapArea
GdipCreateBitmapFromGdiDib
GdipCreateBitmapFromGraphics
GdipCreateBitmapFromHBITMAP
GdipCreateBitmapFromHICON
GdipCreateHBITMAPFromBitmap
GdipCreateHICONFromBitmap
Code examples:
GDI+: Color Transparency
GdipBitmapGetPixel
..msdn    Add comment     W32 Constants      Translate this page
Gets the color value of an individual pixel.
Code examples:
GDI+: Color Transparency
Declaration:
GpStatus WINGDIPAPI GdipBitmapGetPixel(
    GpBitmap* bitmap, 
    INT x, INT y, ARGB *color)
FoxPro declaration:
DECLARE INTEGER GdipBitmapGetPixel IN gdiplus;
    INTEGER gdibitmap,;
    INTEGER x,;
    INTEGER y,;
    LONG @argbcolor
Parameters:
gdibitmap
[in] Handle to a GDI bitmap.

x
[in] Integer X-coordinate of pixel to get.

y
[in] Integer Y-coordinate of pixel to get.

argbcolor
[out] ARGB color value of the pixel.
Return value:
Returns 0 on success.
Usage:
LOCAL nColor
nColor=0

= GdipBitmapGetPixel(oImage.hImage,;
    nXCoord-THIS.Left, nYCoord-THIS.Top, @nColor)
My comment:
See also: GdipBitmapSetPixel
Word Index links for the GdipBitmapGetPixel :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2009-01-17 09:37:43
Modified: 2009-01-17 09:44:08
Visited in last 7 days: 26
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.166.245.10)
13 sec.Function: 'NetFileEnum'
28 sec.Function: 'DrawDibOpen'
40 sec.
Function group: 'Message and Message Queue'
58 sec.Function: 'GetAdaptersInfo'
1.22 min.
Function group: 'Error Handling'
1.47 min.Function: 'RasPhonebookDlg'
1.7 min.Function: 'InsertMenuItem'
1.97 min.Function: 'CloseHandle'
2.23 min.Function: 'CreateDesktop'
2.5 min.Function: 'NetWkstaGetInfo'
Google
Advertise here!