资源描述:
《Windows脚本编程核心技术精解Chapter21.pdf》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、4684-8ch21.f.qc3/3/009:44AMPage581Chapter21Fax,Printer,Scanner,andGraphicsInThisChapterDiscoverKodakImagingandhowyoucancontrolitsfunctionsbyscriptCheckyourTWAINscannersupport,selectpicturesources,andscanimagesAutomatescanningandscaninhundredsofimagesusingbatchautomationPrinta
2、nyimageandcreateyourownscan-print-photocopytoolScaleprintoutstofitthepageLoad,print,andsaveanypicturefileRotate,scale,andzoompictures,andcreatebuttonfacesfromscannedimagesautomaticallyGeneratecomprehensivethumbnailpreviewpagesandorganizeyourpicturearchivesConvertthegraphicsf
3、ormatandchoosecompressionandcolordepthRevealcompressionsettingsandsizeinformationforanypicturefile,andrepairpicturefiletypesautomaticallyAllWindowsversionscomewithasecretadd-oncalledKodakImaging.It’sfullyscriptable,andinthischapter,you’learnhowtouseittoscanimagesfromaTWAINscanne
4、randtoprintorsavetheimages.Say“Hi”toKodakImagingMicrosofthasincludedatremendouslyusefultoolinall32-bitWindowsversions,andit’scalledtheKodakImagingtool(seeFigure21-1).ThislittletoolhidesintheAccessoriesprogramgroup(ifit’smissing,youcanjustinstallitfromyourWindowsCDbyusingtheContro
5、lPanelSoftwaremoduleandchoosingtheWindowsSetuptab).TheImagingtoolispartofthebaseservicesofferedbyWindows.JustasWordPadgivesyouout-of-the-boxaccesstoWinWorddocuments,Imagingallowsyoutoviewgraphicsfiles,faxmessages,andscaninpicturesfromanyTWAIN-compatibleflatbedscanner.4684-8ch21.f
6、.qc3/3/009:44AMPage582582PartV:AccessingHiddenComponents■■Figure21-1:KodakImagingisamulti-purposeimageviewingutilityincludedwithWindows.Atfirstsight,theImagingtooldoesn’tseemtobespecial,butitis.It’sfullyscriptable.AnditprovidesyourscriptswithnewmethodstoreadinpicturesfromanyTWAIN
7、picturesource,aswellastoprintthemout.AcloserlookInternally,theImagingtoolconsistsofanumberofCOMobjects,asshowninTable21-1.Table21-1ComponentsofKodakImagingCOMObjectDescriptionIMGADMIN.OCXAdministrationtoolIMGEDIT.OCXDisplayandprintimages,addnotationsIMGSCAN.OCXTWAIN-compatiblesca
8、nnersupportIMGTHUMB.OCXThumbnailviewSome