是否有“透明颜色”?对于图像? [英] Is there a "Transparent Color" for images?

查看:74
本文介绍了是否有“透明颜色”?对于图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在表单上放置自己的图标。出于讨论目的,假设我想要一个非常大的选项按钮。来自我的个人形象集。


当然,有2个图像,imgOptButtTrue和imgOptButtFalse。我希望这些可以任何形式,任何颜色。


由于图像是矩形的,我需要用一些允许背景颜色显示的颜色填充圆圈外的区域通过。要么,或者我需要能够在表单加载时将这些相同的像素更改为某种颜色。


这对于Visual Basic开发的游标是可行的,我不拥有。是否可以为Access完成。尝试通过将.cur更改为其他扩展名来创建图像并不起作用。分配带扩展名.cur的图像接受分配,但不显示图像。

OldBirdman

I want to put my own icon on a form. For discussion purposes, lets say that I want a very large "option button" from my collection of personal images.

Of course, there are 2 images, imgOptButtTrue and imgOptButtFalse. I would like these to go on any form, any color.

As images are rectangular in shape, I need to fill the area outside the circle with some color that allows the background color show through. Either that, or I need to be able to change these same pixels to a certain color on form load.

This is possible for cursors developed in Visual Basic, which I do not own. Can it be done for Access. Attempts to create an image by changing .cur to some other extension hasn''t worked. Assigning an image with the extension .cur accepts the assignment, but does not display the image.

OldBirdman

推荐答案

做一些搜索我从一段时间以来在板上找到了这个帖子。 ( http://www.thescripts.com/forum/thread441620.html )提及需要使用透明图像做一些其他事情,但它确实链接到具有数据库的站点,该数据库是为将图像转换为似乎有效的EMF文件而构建的。


希望这会有所帮助。


- Minion -
When doing some searching I found this thread from some time ago on the board. (http://www.thescripts.com/forum/thread441620.html) It mentions needing to do some other things with transparent images, but it does link to a site with a DB that was built to convert images to EMF files that seem to work.

Hope this helps.

- Minion -


我遵循了7步骤链接建议。我的图像有白色背景,所以它应该工作。但是,将样式设置为透明不会将白色更改为透明。我的表格上有一个黑白的矩形图像。


除了Paint之外,我没有任何操作图像的东西,因此白色的像素颜色可能是不是透明度所需的白色。


我是否需要另一个程序来生成我自己的图标/图像,或者在Paint中是否有办法确保正确的白色?


OldBirdman
I followed the 7 step program in the link suggested. My image has a white background, so it should work. However, setting back style to transparent did not change the white to transparent. I have a black-and-white, rectangular, image on my form.

I don''t have anything to manipulate images other than Paint, and therefore the pixel color for white may not be the same white as needed for transparency.

Do I need another program for generating my own icons/images, or is there a way in Paint to assure the correct white?

OldBirdman


背景颜色是图像控件背景(图像所在的容器)的颜色 - 而不是图像本身。如果你想让图像的背景本身变成透明,那么试试Paint Shop Pro(我使用Photoshop和Fireworks,但两者都比PSP贵一些。)图像需要以GIF或PNG格式保存 - JPG和BMP不会将透明度信息保存到图像文件中。
The background color is the color of the image control background (the container the image is in) - not the image itself. If you want to make the background of the image itself tranparent then try Paint Shop Pro (I use Photoshop and Fireworks but both are a bit more expensive than PSP.) The image would need to be saved in a GIF or PNG format - JPG and BMP will not save the transparency info to the image file.


这篇关于是否有“透明颜色”?对于图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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