Using Win32 functions in Visual FoxPro Image Gallery
Windows Multimedia
..msdn
AVIFileExit
AVIFileGetStream
AVIFileInfo
AVIFileInit
AVIFileOpen
AVIFileRelease
AVIFileWriteData
AVIStreamGetFrame
AVIStreamGetFrameClose
AVIStreamGetFrameOpen
AVIStreamInfo
AVIStreamLength
AVIStreamReadFormat
AVIStreamRelease
AVIStreamStart
AVIStreamTimeToSample
capCreateCaptureWindow
capGetDriverDescription
DrawDibClose
DrawDibDraw
DrawDibOpen
mciGetDeviceID
mciGetErrorString
mciSendCommand
mciSendString
midiOutClose
midiOutGetDevCaps
midiOutGetNumDevs
midiOutOpen
midiOutReset
midiOutShortMsg
mixerClose
mixerGetControlDetails
mixerGetDevCaps
mixerGetID
mixerGetLineControls
mixerGetLineInfo
mixerGetNumDevs
mixerOpen
mixerSetControlDetails
mmioAscend
mmioClose
mmioCreateChunk
mmioDescend
mmioFlush
mmioOpen
mmioRead
mmioSeek
mmioWrite
PlaySound
sndPlaySound
timeGetDevCaps
waveInAddBuffer
waveInClose
waveInGetDevCaps
waveInGetErrorText
waveInGetNumDevs
waveInGetPosition
waveInOpen
waveInPrepareHeader
waveInReset
waveInStart
waveInStop
waveInUnprepareHeader
waveOutClose
waveOutGetDevCaps
waveOutGetErrorText
waveOutGetNumDevs
waveOutGetPosition
waveOutGetVolume
waveOutOpen
waveOutPrepareHeader
waveOutReset
waveOutSetVolume
waveOutUnprepareHeader
waveOutWrite
Code examples:
How to play AVI file on the _screen
DrawDibDraw
..msdn    Add comment     W32 Constants      Translate this page
The DrawDibDraw function draws a DIB to the screen.
Code examples:
How to play AVI file on the _screen
Declaration:
BOOL DrawDibDraw(
  HDRAWDIB hdd,
  HDC hdc,
  int xDst,
  int yDst,
  int dxDst,
  int dyDst,
  LPBITMAPINFOHEADER lpbi,
  LPVOID lpBits,
  int xSrc,
  int ySrc,
  int dxSrc,
  int dySrc,
  UINT wFlags
);
FoxPro declaration:
DECLARE INTEGER DrawDibDraw IN msvfw32;
    INTEGER hdd,;
    INTEGER hdc,;
    INTEGER xDst,;
    INTEGER yDst,;
    INTEGER dxDst,;
    INTEGER dyDst,;
    INTEGER lpbi,;
    INTEGER lpBits,;
    INTEGER xSrc,;
    INTEGER ySrc,;
    INTEGER dxSrc,;
    INTEGER dySrc,;
    INTEGER wFlags

Parameters:
hdd
Handle to a DrawDib DC.

hdc
Handle to the DC.

xDst
The x-coordinate, in MM_TEXT client coordinates, of the upper left corner of the destination rectangle.

yDst
The y-coordinate, in MM_TEXT client coordinates, of the upper left corner of the destination rectangle.

dxDst
Width, in MM_TEXT client coordinates, of the destination rectangle. If dxDst is - 1, the width of the bitmap is used.

dyDst
Height, in MM_TEXT client coordinates, of the destination rectangle. If dyDst is - 1, the height of the bitmap is used.

lpbi
Pointer to the BITMAPINFOHEADER structure containing the image format.

lpBits
Pointer to the buffer that contains the bitmap bits.

xSrc
The x-coordinate, in pixels, of the upper left corner of the source rectangle. The coordinates (0,0) represent the upper left corner of the bitmap.

ySrc
The y-coordinate, in pixels, of the upper left corner of the source rectangle. The coordinates (0,0) represent the upper left corner of the bitmap.

dxSrc
Width, in pixels, of the source rectangle.

dySrc
Height, in pixels, of the source rectangle.

wFlags
Applicable flags for drawing.

Return value:
Returns TRUE if successful or FALSE otherwise.
My comment:
The DrawDibDraw function is similar to the StretchDIBits function in that it provides image-stretching and dithering capabilities. However, the DrawDibDraw support image decompression, data-streaming, and a greater number of display adapters.

Still, StretchDIBits is more diverse than the DrawDib functions and should be used when the DrawDib functions cannot provide the desired functionality.

DrawDibDraw does not provide any means for doing transparency, colorkeying, raster ops or anything fancy like that, it is only capable of a simple "copy" of the source image to the target.
Word Index links for the DrawDibDraw :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-12-02 21:37:24
Modified: 2007-06-01 22:23:23
Visited in last 7 days: 34
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.91.171.137)
15 sec.Function: 'GetEnvironmentVariable'
28 sec.Function: 'CreateFile'
43 sec.Function: 'UnhookWindowsHookEx'
58 sec.Function: 'sendto'
1.22 min.Function: 'IsClipboardFormatAvailable'
1.43 min.Function: 'CeRegSetValueEx'
1.68 min.Function: 'GdipRotateMatrix'
1.93 min.Function: 'CM_Connect_Machine'
2.23 min.Function: 'GetWorldTransform'
2.47 min.Function: 'CeCreateFile'
Google
Advertise here!