Visual basic 6 中的无效图片 [英] Invalid Picture In Visual basic 6

查看:91
本文介绍了Visual basic 6 中的无效图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 vb 6 中开发一个项目.问题是当我加载图标(扩展名 .ico)时,它给出了无效图片".我在所有论坛上搜索了它,但仍然躺在那里.任何帮助将不胜感激.

I am developing a proj in vb 6. what the problems is that when i load icons(extension .ico) it gives "Invalid Picture". I searched it out on all the forums but still lying in. Any help would greatly be appreciated.

Image1.picture = loadpicture(app.path & "\Abc.ico") 

但是当将文件从 ico 格式转换为 jpg 时:

But when convert the file to jpg from ico format :

image1.picture = loadpicture(app.path & "\Abc.jpg")

它被加载到 Image1.

It is loaded to Image1.

我也将图标文件从 32 位转换为 24 位,但仍然无法正常工作.

i have also converted the icon file it to 24 bit from 32 bit but still is not working.

推荐答案

您的图标可能是 32 位图标 - 只需将其更改为 24 位即可在 VB6 中支持它.您可以使用 IcoFX 之类的程序来更改位深度.

Your icon is probably a 32bit icon- it just needs to be changed to 24bit in order for it to be supported in VB6. You can use a program like IcoFX to change the bit depth.

这篇关于Visual basic 6 中的无效图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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