WiaItemPropertyId
Windows イメージ取得 (WIA) プロパティ定数のほとんどは、スクリプト作成者用の 1 つの列挙データ型 WiaItemPropertyId にグループ化されます。
次の表は、スクリプトと C++ で使用される名前付け規則の間のマッピングを示しています。 たとえば、スクリプトの "CameraDevice" プレフィックスは、対応する C++ 定数の "WIA_DPC" プレフィックスにマップされます。 より具体的な例では、"CameraDeviceFlashMode" プロパティは C++ の "WIA_DPC_FLASH_MODE" 定数と同じです。 各プロパティの説明については、対応するプロパティ定数に関するトピックを参照してください。
スクリプト プレフィックス | C++ トピック (プレフィックス) |
---|---|
Device | 共通デバイス プロパティ定数 (WIA_DPA) |
CameraDevice | カメラ デバイスプロパティ定数 (WIA_DPC) |
ScannerDevice | スキャナー デバイスプロパティ定数 (WIA_DPS) |
VideoDevice | ビデオ WIA デバイスプロパティ定数 (WIA_DPV) |
Picture | 共通 WIA 項目プロパティ定数 (WIA_IPA) |
CameraPicture | カメラ WIA 項目プロパティ定数 (WIA_IPC) |
ScannerPicture | スキャナー WIA 項目プロパティ定数 (WIA_IPS) |
次の例では、対応する名前を持つ完全な列挙型を提供します。
typedef enum WiaItemPropertyId {
CameraDevicePicturesTaken = WIA_DPC_PICTURES_TAKEN,
CameraDevicePicturesRemaining = WIA_DPC_PICTURES_REMAINING,
CameraDeviceExposureMode = WIA_DPC_EXPOSURE_MODE,
CameraDeviceExposureComp = WIA_DPC_EXPOSURE_COMP,
CameraDeviceExposureTime = WIA_DPC_EXPOSURE_TIME,
CameraDeviceFNumber = WIA_DPC_FNUMBER,
CameraDeviceFlashMode = WIA_DPC_FLASH_MODE,
CameraDeviceFocusMode = WIA_DPC_FOCUS_MODE,
CameraDevicePanPosition = WIA_DPC_PAN_POSITION,
CameraDeviceTiltPosition = WIA_DPC_TILT_POSITION,
CameraDeviceTimerMode = WIA_DPC_TIMER_MODE,
CameraDeviceTimerValue = WIA_DPC_TIMER_VALUE,
CameraDevicePowerMode = WIA_DPC_POWER_MODE,
CameraDeviceBatteryStatus = WIA_DPC_BATTERY_STATUS,
CameraDeviceThumbWidth = WIA_DPC_THUMB_WIDTH,
CameraDeviceThumbHeight = WIA_DPC_THUMB_HEIGHT,
CameraDevicePictWidth = WIA_DPC_PICT_WIDTH,
CameraDevicePictHeight = WIA_DPC_PICT_HEIGHT,
CameraDeviceCompressionSetting = WIA_DPC_COMPRESSION_SETTING,
CameraDeviceTimelapseInterval = WIA_DPC_TIMELAPSE_INTERVAL,
CameraDeviceTimelapseNumber = WIA_DPC_TIMELAPSE_NUMBER,
CameraDeviceBurstInterval = WIA_DPC_BURST_INTERVAL,
CameraDeviceBurstNumber = WIA_DPC_BURST_NUMBER,
CameraDeviceEffectMode = WIA_DPC_EFFECT_MODE,
CameraDeviceDigitalZoom = WIA_DPC_DIGITAL_ZOOM,
CameraDeviceSharpness = WIA_DPC_SHARPNESS,
CameraDeviceContrast = WIA_DPC_CONTRAST,
CameraDeviceCaptureMode = WIA_DPC_CAPTURE_MODE,
CameraDeviceCaptureDelay = WIA_DPC_CAPTURE_DELAY,
CameraDeviceExposureIndex = WIA_DPC_EXPOSURE_INDEX,
CameraDeviceExposureMeteringMode = WIA_DPC_EXPOSURE_METERING_MODE,
CameraDeviceFocusMeteringMode = WIA_DPC_FOCUS_METERING_MODE,
CameraDeviceFocusDistance = WIA_DPC_FOCUS_DISTANCE,
CameraDeviceFocalLength = WIA_DPC_FOCAL_LENGTH,
CameraDeviceRGBGain = WIA_DPC_RGB_GAIN,
CameraDeviceWhiteBalance = WIA_DPC_WHITE_BALANCE,
CameraDeviceUploadURL = WIA_DPC_UPLOAD_URL,
CameraDeviceArtist = WIA_DPC_ARTIST,
CameraDeviceCopyrightInfo = WIA_DPC_COPYRIGHT_INFO,
ScannerDeviceHorizontalBedSize = WIA_DPS_HORIZONTAL_BED_SIZE,
ScannerDeviceVerticalBedSize = WIA_DPS_VERTICAL_BED_SIZE,
ScannerDeviceHorizontalSheetFeedSize = WIA_DPS_HORIZONTAL_SHEET_FEED_SIZE,
ScannerDeviceVerticalSheetFeedSize = WIA_DPS_VERTICAL_SHEET_FEED_SIZE,
ScannerDeviceSheetFeederRegistration = WIA_DPS_SHEET_FEEDER_REGISTRATION,
ScannerDeviceHorizontalBedRegistration = WIA_DPS_HORIZONTAL_BED_REGISTRATION,
ScannerDeviceVerticalBedRegistration = WIA_DPS_VERTICAL_BED_REGISTRATION,
ScannerDevicePlatenColor = WIA_DPS_PLATEN_COLOR,
ScannerDevicePadColor = WIA_DPS_PAD_COLOR,
ScannerDeviceDocumentHandlingCapabilities = WIA_DPS_DOCUMENT_HANDLING_CAPABILITIES,
ScannerDeviceDocumentHandlingStatus = WIA_DPS_DOCUMENT_HANDLING_STATUS,
ScannerDeviceDocumentHandlingSelect = WIA_DPS_DOCUMENT_HANDLING_SELECT,
ScannerDeviceDocumentHandlingCapacity = WIA_DPS_DOCUMENT_HANDLING_CAPACITY,
ScannerDeviceOpticalXres = WIA_DPS_OPTICAL_XRES,
ScannerDeviceOpticalYres = WIA_DPS_OPTICAL_YRES,
ScannerDeviceEndorserCharacters = WIA_DPS_ENDORSER_CHARACTERS,
ScannerDeviceEndorserString = WIA_DPS_ENDORSER_STRING,
ScannerDeviceScanAheadPages = WIA_DPS_SCAN_AHEAD_PAGES,
ScannerDeviceMaxScanTime = WIA_DPS_MAX_SCAN_TIME,
ScannerDevicePages = WIA_DPS_PAGES,
ScannerDevicePageSize = WIA_DPS_PAGE_SIZE,
ScannerDevicePageWidth = WIA_DPS_PAGE_WIDTH,
ScannerDevicePageHeight = WIA_DPS_PAGE_HEIGHT,
ScannerDevicePreview = WIA_DPS_PREVIEW,
ScannerDeviceTransparency = WIA_DPS_TRANSPARENCY,
ScannerDeviceTransparencySelect = WIA_DPS_TRANSPARENCY_SELECT,
ScannerDeviceShowPreviewControl = WIA_DPS_SHOW_PREVIEW_CONTROL,
ScannerDeviceMinHorizontalSheetFeedSize = WIA_DPS_MIN_HORIZONTAL_SHEET_FEED_SIZE,
ScannerDeviceMinVerticalSheetFeedSize = WIA_DPS_MIN_VERTICAL_SHEET_FEED_SIZE,
FileDeviceMountPoint = WIA_DPF_MOUNT_POINT,
VideoDeviceLastPictureTaken = WIA_DPV_LAST_PICTURE_TAKEN,
VideoDeviceImagesDirectory = WIA_DPV_IMAGES_DIRECTORY,
VideoDeviceDShowDevicePath = WIA_DPV_DSHOW_DEVICE_PATH,
PictureItemName = WIA_IPA_ITEM_NAME,
PictureFullItemName = WIA_IPA_FULL_ITEM_NAME,
PictureItemTime = WIA_IPA_ITEM_TIME,
PictureItemFlags = WIA_IPA_ITEM_FLAGS,
PictureAccessRights = WIA_IPA_ACCESS_RIGHTS,
PictureDatatype = WIA_IPA_DATATYPE,
PictureDepth = WIA_IPA_DEPTH,
PicturePreferredFormat = WIA_IPA_PREFERRED_FORMAT,
PictureFormat = WIA_IPA_FORMAT,
PictureCompression = WIA_IPA_COMPRESSION,
PictureTymed = WIA_IPA_TYMED,
PictureChannelsPerPixel = WIA_IPA_CHANNELS_PER_PIXEL,
PictureBitsPerChannel = WIA_IPA_BITS_PER_CHANNEL,
PicturePlanar = WIA_IPA_PLANAR,
PicturePixelsPerLine = WIA_IPA_PIXELS_PER_LINE,
PictureBytesPerLine = WIA_IPA_BYTES_PER_LINE,
PictureNumberOfLines = WIA_IPA_NUMBER_OF_LINES,
PictureGammaCurves = WIA_IPA_GAMMA_CURVES,
PictureItemSize = WIA_IPA_ITEM_SIZE,
PictureColorProfile = WIA_IPA_COLOR_PROFILE,
PictureMinBufferSize = WIA_IPA_MIN_BUFFER_SIZE,
PictureBufferSize = WIA_IPA_BUFFER_SIZE,
PictureRegionType = WIA_IPA_REGION_TYPE,
PictureIcmProfileName = WIA_IPA_ICM_PROFILE_NAME,
PictureAppColorMapping = WIA_IPA_APP_COLOR_MAPPING,
PicturePropStreamCompatId = WIA_IPA_PROP_STREAM_COMPAT_ID,
PictureFilenameExtension = WIA_IPA_FILENAME_EXTENSION,
PictureSuppressPropertyPage = WIA_IPA_SUPPRESS_PROPERTY_PAGE,
CameraPictureThumbnail = WIA_IPC_THUMBNAIL,
CameraPictureThumbWidth = WIA_IPC_THUMB_WIDTH,
CameraPictureThumbHeight = WIA_IPC_THUMB_HEIGHT,
CameraPictureAudioAvailable = WIA_IPC_AUDIO_AVAILABLE,
CameraPictureAudioDataFormat = WIA_IPC_AUDIO_DATA_FORMAT,
CameraPictureAudioData = WIA_IPC_AUDIO_DATA,
CameraPictureNumPictPerRow = WIA_IPC_NUM_PICT_PER_ROW,
CameraPictureSequence = WIA_IPC_SEQUENCE,
CameraPictureTimedelay = WIA_IPC_TIMEDELAY,
ScannerPictureCurIntent = WIA_IPS_CUR_INTENT,
ScannerPictureXres = WIA_IPS_XRES,
ScannerPictureYres = WIA_IPS_YRES,
ScannerPictureXpos = WIA_IPS_XPOS,
ScannerPictureYpos = WIA_IPS_YPOS,
ScannerPictureXextent = WIA_IPS_XEXTENT,
ScannerPictureYextent = WIA_IPS_YEXTENT,
ScannerPicturePhotometricInterp = WIA_IPS_PHOTOMETRIC_INTERP,
ScannerPictureBrightness = WIA_IPS_BRIGHTNESS,
ScannerPictureContrast = WIA_IPS_CONTRAST,
ScannerPictureOrientation = WIA_IPS_ORIENTATION,
ScannerPictureRotation = WIA_IPS_ROTATION,
ScannerPictureMirror = WIA_IPS_MIRROR,
ScannerPictureThreshold = WIA_IPS_THRESHOLD,
ScannerPictureInvert = WIA_IPS_INVERT,
ScannerPictureWarmUpTime = WIA_IPS_WARM_UP_TIME
} WiaItemPropertyId;