Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Using FoxTray ActiveX control: System Tray Icon and menu attached to VFP form
Enumerating ports that are available for printing on a specified server
Retrieving the command line for the VFP session
The SQLGetProp() creates a bridge between Visual FoxPro and the ODBC API
Creating the Save dialog box to specify the drive, directory, and name of a file to save
Disconnecting USB Mass Storage Device programmatically
Displaying hypertext links with the SysLink control (VFP9, Comctl32.dll)
Enumerating global and local group accounts on a server (WinNT/XP/2K)
How to enable the SE_SHUTDOWN_NAME privilege for the application
Retrieving the name of the primary domain controller (PDC) and join status information (NT/2000/XP)
Converting image file to .ICO file
Obtaining information about all user accounts on a server (WinNT only)
Obtaining physical parameters for a drive: sectors, clusters, cylinders...
Obtaining Shell32.dll version
Obtaining some properties for the Windows desktop using the GetWindowPlacement function
Retrieving local computer and user names
Using the RestartDialog function -- restarting Windows
Downloading files from the FTP server using InternetReadFile
How to obtain the number of rows affected by remote UPDATE, INSERT or DELETE statement
Retrieving the interface–to–IP address mapping table
A class that encrypts and decrypts files using Cryptography API Functions
Changing file attributes
Disabling drawing in the VFP form
Enumerating Volumes and Volume Mounting Points (NTFS)
How to extract frames from AVI files

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
More code examples    Listed functions    Add comment     W32 Constants      Translate this page Printer friendly version of this code sample
Before you begin:
This example presents the AviBrowser class. This class can open AVI file and convert its frames into bitmap files. The AviBrowser object is shown used as a control on FoxPro form. For that reason, it is subclassed from the Image control.

 
  Members area. Log in to view this example.
 
  User name:
  Password:
 
 
  Forgot your password?
 
  Sign up for
the Membership
 
 


User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
8513 bytes  
Created: 2005-04-05 08:11:41  
Modified: 2011-12-10 09:20:22  
Visits in 7 days: 108  
Listed functions:
AVIFileExit
AVIFileGetStream
AVIFileInfo
AVIFileInit
AVIFileOpen
AVIFileRelease
AVIStreamGetFrame
AVIStreamGetFrameClose
AVIStreamGetFrameOpen
AVIStreamRelease
GetLastError
GlobalSize
Printer friendly API declarations
My comment:
The AVIStreamGetFrame returns the address of a decompressed video frame. It points to a globally allocated memory block. The block contains already populated BITMAPINFOHEADER structure followed by optional color table and the binary data.

Practically, this is a bitmap file. All you have to do is to populate the BITMAPFILEHEADER structure and add it on top of the block. Then save the result to a file with "DIB" or "BMP" extension.

* * *
There is an issue not answered yet: the AVIStreamGetFrameOpen returns an error for some AVI files. Otherwise these are normal AVI files. I`m looking what can be done...

* * *
Read Saving a Control Image to a Bitmap File article written by Geoff Schwab. It explains the bitmap structure in clear and simple words.
Word Index links for this example:
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
User Contributed Notes:
There are no notes on this subject.


Copyright © 2001-2013 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.1.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (107.22.156.205)
4 sec.Example: 'Getting a bit more than the _CLIPTEXT offers'
13.8 min.Function: 'GdipCreateBitmapFromGraphics'
6.75 hrs.Function: 'LocalFree'
 Example: 'Using GetFileSize'
 Function: 'GetSaveFileName'
7.34 hrs.Example: 'Subclassing CommandButton control to create BackColor property'
8.72 hrs.Example: 'Creating a mailslot'
 Function: 'BlockInput'
Function group: 'Keyboard Input'
9.29 hrs.Function: 'SHFileOperation'
 Function: 'mciGetErrorString'
Function group: 'Windows Multimedia'
Google
Advertise here!