简体   繁体   English

使用vb6在ActiveX dll中裁剪图像

[英]crop image in ActiveX dll with vb6

i'm using vb6 to build an ActiveX to process image with resize / crop operation. 我正在使用vb6构建ActiveX以使用调整大小/裁剪操作来处理图像。

about crop image, the marjor method is place two picture boxes, then 关于裁剪图像,marjor方法是放置两个图片框,然后

Form1.Picture2.PaintPicture Form1.Picture1.Image, 0, 0, wid, hgt, m_X1, m_Y1, wid, hgt

is ok when in exe project, but in activex, is rasing error with 'ASP 0115' C0000005 (using in ASP classic), so how can I fix this problem? 在exe项目中是可以的,但是在activex中,“ ASP 0115” C0000005(在ASP Classic中使用)会产生错误,那么如何解决此问题? or is there another way to crop image in vb6, thanks! 或者还有另一种在vb6中裁剪图像的方法,谢谢!

If you are after a way to do this in classic ASP, you might take a look at the WIA 2.0 Automation Library. 如果您想在经典ASP中做到这一点,可以看看WIA 2.0自动化库。 This is part of Vista and later and until recently you could download a redist version for back-porting into the now-near-death WinXP (SP1 or later). 这是Vista及更高版本的一部分,直到最近,您都可以下载Redist版本以向后移植到即将死去的WinXP(SP1或更高版本)中。 Scaling and cropping are just two of the things you can use this for. 缩放和裁剪只是可用于此的两件事。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM