silverlight3鱼眼控件, using System; using System.Collections.Generic; using System.Windows; using System.Windows.Controls; using System.Windows.Input; using System.Windows.Media.Imaging; namespace LifeSonic.UI.Controls { public partial class FishEyeMenu
主要是对Bitmap类进行了封装,封装后的ProjectImage类提供了直接以矩阵的方式访问RGB3个颜色维灰度值的属性,避免了原类使用public Color GetPixel(int x, int y)读,用public void SetPixel(int x, int y, Color color)写的高消耗访问方式。直接从文件路径或者Bitmap影像或者矩阵都可以进行构造,使用public byte[,] R、public byte[,] G、public byte[,] B属性进行
本文实例为大家分享了C#根据http和ftp地址获取对应图片的具体代码,供大家参考,具体内容如下
public class GetBitmapImageClass
{
public BitmapSource GetImageHttp(string url,int width)
{
var image = new BitmapImage();
int BytesToRead = 100;
if (!string.IsNullOrEmpty(url))
{