当前位置:网站首页>VFP uses Kodak controls to control the scanner to solve the problem that the volume of exported files is too large
VFP uses Kodak controls to control the scanner to solve the problem that the volume of exported files is too large
2022-06-25 11:44:00 【VFP of Garfield】
When the cat is doing scanner control , Kodak scan control used , This control is very practical to control the scanner , It also has the function of picture editing , But there are also problems , The volume of the exported image is too small .
I'm using MYIMG.FLL, It is found that the length and width can be modified in , The length and width of the picture is too small , The file size is enough , But the picture can't be seen clearly .
I studied it , Find the size of the picture , It doesn't just depend on the length and width of the picture , Resolution is also critical . Resolution is DPI, Pictures on our commonly used web pages DPI yes 72,PHOTOSHOP The default is 72.
The scanner is 200-300DPI, So the file volume is huge ,MYIMG You can only get DPI, Do not modify .
Sun, a Buddhist monk, pointed out , Got this function .
Function saveimage2(openfile As String,savefile As String)
lqEncoderClsID_BMP=0h00F47C55041AD3119A730000F81EF32E &&BMP
lqEncoderClsID_JPG=0h01F47C55041AD3119A730000F81EF32E &&JPG
lqEncoderClsID_GIF=0h02F47C55041AD3119A730000F81EF32E &&GIF
lqEncoderClsID_TIF=0h05F47C55041AD3119A730000F81EF32E &&TIF
lqEncoderClsID_PNG=0h06F47C55041AD3119A730000F81EF32E &&PNG
Declare Long GdipLoadImageFromFile In GDIPlus.Dll String cFile, Long @ nativeImage
Declare Long GdipSaveImageToFile In GDIPlus.Dll Long nativeImage, String cFile, ;
String EncoderClsID, String EncoderParameters
Declare Long GdipDisposeImage In GDIPlus.Dll Long nativeImage
lcInputFile=Strconv(openfile+Chr(0),5)
lcOutputFile=Strconv(savefile+Chr(0),5)
lnImage=0
GdipLoadImageFromFile(lcInputFile,@lnImage)
GdipSaveImageToFile(lnImage, lcOutputFile, Evaluate('lqEncoderClsID_'+Upper(Justext(savefile))), Null)
GdipDisposeImage(lnImage)
Erase &openfile
Endfunc
Picture processed by Kodak control , Use this function to save it again , Perfect solution to the problem of excessive file size .
More information :www.sn58.cn
边栏推荐
- 交易期货沪镍产品网上怎么开户
- SQL注入漏洞(繞過篇)
- Kingbasees plug-in ftutilx of Jincang database
- Problems encountered using easyexcel
- 杭州/北京内推 | 阿里达摩院招聘视觉生成方向学术实习生(人才计划)
- Deeply understand Flink SQL execution process based on flink1.12
- Niuke: rotation array
- Data Lake survey
- Redis6 note02 configuration file, publish and subscribe, new data type, jedis operation
- Spark runs wordcount (case 2)
猜你喜欢
Redis6笔记02 配置文件,发布和订阅,新数据类型,Jedis操作
揭秘GaussDB(for Redis):全面对比Codis
Ladder side tuning: the "wall ladder" of the pre training model
Spark runs wordcount (case 2)
芯片的发展史和具体用途以及结构是什么样的
CFCA安心签接入
Golden sun education listed in the U.S.: a small cap medium cap stock with a market value of USD 360million
How TCP handles exceptions during three handshakes and four waves
Whole process of web page request
Deeply understand Flink SQL execution process based on flink1.12
随机推荐
Detailed explanation of Spark's support source code for Yan priority
Multiple clicks of the button result in results
Kingbasees plug-in ftutilx of Jincang database
Solution to the timeout scenario of Flink streaming computing (official live broadcast)
2022 PMP project management examination agile knowledge points (2)
Jincang database kingbasees plug-in identity_ pwdexp
Application of analytic hierarchy process in college teaching evaluation system (principle + example + tool)
Design and implementation of university laboratory goods management information system based on SSH
JS indexof() always returns -1
Xishan technology rushes to the scientific innovation board: it plans to raise 660million yuan. Guoyijun and his wife have 60% of the voting rights
9 cases where elements cannot be located
Customize to prevent repeated submission of annotations (using redis)
兴业证券是国企吗?在兴业证券开户资金安全吗?
What should I do to dynamically add a column and button to the gird of VFP?
TCP如何处理三次握手和四次挥手期间的异常
Under what circumstances will Flink combine operator chains to form operator chains?
Flink deeply understands the graph generation process (source code interpretation)
客户经理的开户二维码开户买股票安全吗?有谁知道啊
Comment TCP gère - t - il les exceptions lors de trois poignées de main et de quatre vagues?
GC