拉伸图像而不会出现褪色错误 [英] Stretch Image without fade error
问题描述
我需要在一个方向上拉伸图像而不使其褪色,但是无论我尝试什么,它要么淡出,要么根本不显示.有谁知道一种在一个方向上拉伸图像而不会使其褪色的方法吗?
[更新]
这是演示发生情况的示例代码:
http://pastebin.com/f95gYzxt
这是带有代码的示例图像:
http://imageshack.us/photo/my-images/405/testll.png/
运行该程序,您将看到它如何褪色甚至不再显示.
I need to stretch an image in one direction without it fading, but no matter what I try it either fades out or doesnt show at all. Anyone know of a way to stretch an image in one direction without having it fade?
[Update]
Here is a sample code demonstrating what is happening:
http://pastebin.com/f95gYzxt
Here is a sample image to go with the code:
http://imageshack.us/photo/my-images/405/testll.png/
Run the program and you''ll see how it fades to where it doesn''t even show anymore.
推荐答案
请参阅以下链接 Expando图像脚本
您可能还会看到我的文章
显示/存储和检索图像数据,从数据库到Gridview,以及通过鼠标悬停
希望对您有帮助...
请记住投票是否有帮助...
问候,
Al Moje
Hi,
See these link Expando Image script
You may also see my Article
Display/Store and Retrieve Image Data from Database to Gridview, and also on Mouse Over
Hope could help...
Please remember to vote if could help...
Regards,
Al Moje
这是Windows强制窗体工作方式中内置空隙的杰瑞钻机解决方案,但基本上,您必须沿任何方向循环遍历并进行绘制图像到每个像素以免褪色.
这是Jerry-rig Fix
http://pastebin.com/cVaFf6Xq
Here is a jerry-rig solution to the built-in gaping hole in the way Windows forces forms to work, but basically you have to loop through in whatever direction your going and paint the image to each pixel to keep from fading.
Here is the Jerry-rig Fix
http://pastebin.com/cVaFf6Xq
这篇关于拉伸图像而不会出现褪色错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!