Windows的成像. [英] Imaging for windows.

查看:66
本文介绍了Windows的成像.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我们有一个图像处理插件,该插件是通过使用Windows图像处理库(Windows 95/98/Me/NT/2000中包含的文档图像处理软件)在V.B 6.0中开发的.此应用程序用于以tiff格式查看扫描的图像.该应用程序包含成像软件的大多数功能,例如注释,旋转等.在用于查看黑白图像之前,该应用程序可以正常工作.但是,当用于查看彩色页面时会出现问题.该应用程序无法显示彩色页面并被挂起.就Windows的Imaging而言,它可以显示彩色页面而没有任何问题.

我的问题是,我们是否继承了Windows图像库,并且能够显示彩色图像.为什么使用同一组库开发的应用程序无法显示彩色页面?

Hello All,

We have an imaging plug in which was developed in V.B 6.0 by using the libraries of Imaging for windows(a document imaging software included in Windows 95/98/Me/NT/2000). This application is used to view scanned images in tiff format. The application contains most of the features of an imaging software like annotation, rotation, etc. The application works fine till it is used to view the Black and White images. But problem arises when it is used to view the color pages. The application is not able to show color pages and gets hung. As far as the Imaging for windows is considered it shows the color pages without any issues.

My question is if we have inherited the libraries of the imaging for windows and it is able to show the color images. Why the application that has been developed using the same set of libraries is not able to show the color pages?

推荐答案

我认为彩色图片也无法正常工作与较旧的Windows版本.这是因为PictureBox需要将所有图像数据都存储在单个内存块中,尽管不应假定所有行都可以顺序读取.由于存在额外的颜色信息,我认为图像正在变大,而不是在单个内存中.也许您可以扫描一小块彩色的纸,然后看看会发生什么.如果分辨率保持与该图像一样大,那可能会起作用.
另外,vb6整数默认情况下为16位,这意味着它可能会在较大的数据上溢出.另一个原因可能是您使用的库不支持彩色图片,因此根本没有分配足够的内存.如果您有导致崩溃的代码,则可以发布该代码以显示问题所在.

祝你好运!
I assume that color pictures also don''t work with the older windows versions. This is because a PictureBox needs all the image data to be in a single block of memory, although it should not be assumed that all lines can be read sequential. Because of the extra color information I think the image is getting to large and not in a single piece of memory. Maybe you can do a scan of a small piece in color and see what happens. That could work if the resolution is kept as large as that image.
Also, vb6 integers are 16bit by default, meaning that it could overflow on the larger data. Another reason could be that the library you use doesn''t support color pictures and therefor isn''t allocating enough memory at all. If you have the code that causes the crash you could maybe post that to show where the problem is.

Good luck!


这篇关于Windows的成像.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆