Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Indicates the file format of an image as String versions of GUIDs.
Constant/value | Description |
---|---|
|
FormatID for the Windows BMP format. |
|
FormatID for the PNG format. |
|
FormatID for the GIF format. |
|
FormatID for the JPEG format. |
|
FormatID for the TIFF format. |
Remarks
Use a FormatID Constants constant as the value for the FormatID parameter for the ShowAcquireImage, ShowTransfer, and Transfer methods. You can also use a FormatID Constants constant as the value of the FormatID property in a "Convert" filter to specify the format that results from the conversion.
The following example shows how to determine if the file returned from ShowAcquireImage is a JPEG file.
Dim Img 'As ImageFile
Set Img = CommonDialog1.ShowAcquireImage(UnspecifiedDeviceType, _
UnspecifiedIntent, _
MaximizeQuality, _
wiaFormatJPEG)
If Img.FormatID <> wiaFormatJPEG Then
MsgBox "Device does not support JPEG files"
End If
For additional example code, see Convert a File in Shared Samples .
Requirements
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2003 R2 [desktop apps only] |
Header |
|
IDL |
|