zoukankan
html css js c++ java
半透明图像生成程序
Graphics g
=
pictureBox2.CreateGraphics();
Bitmap bitmap
=
new
Bitmap(openFileDialog1.FileName);
float
[][] matrixitems
=
{
new
float
[]
{
1
,
0
,
0
,
0
,
0
}
,
new
float
[]
{
0
,
1
,
0
,
0
,
0
}
,
new
float
[]
{
0
,
0
,
1
,
0
,
0
}
,
new
float
[]
{
0
,
0
,
0
,
0.2f
,
0
}
,
new
float
[]
{
0
,
0
,
0
,
0
,
1
}
}
;
ColorMatrix colormatrix
=
new
ColorMatrix(matrixitems);
ImageAttributes imageAtt
=
new
ImageAttributes();
imageAtt.SetColorMatrix(colormatrix,ColorMatrixFlag.Default,ColorAdjustType.Bitmap);
int
iWidth
=
bitmap.Width;
int
iHeight
=
bitmap.Height;
//
g.DrawLine(new Pen(Color.Black,25),new Point(10,35),new Point(200,35));
g.DrawImage(bitmap,
new
Rectangle(
30
,
0
,iWidth,iHeight),
0
,
0
,iWidth,iHeight,GraphicsUnit.Pixel,imageAtt);
bitmap.Dispose();
g.Dispose();
查看全文
相关阅读:
免费素材下载:淡蓝色的PSD格式UI套件
分享一个CSS3的网格系统架构 ResponsiveAeon
最新收集的超棒Mobile/Web UI和用户体验设计
一个帮助你针对不同标签自动填入内容的轻量级javascript类库 fixiejs
发现任何VB函数、插件、甚至按键精灵对“文件下载”窗口后台失效
android 界面 滑入 效果
分布式HeadLoop
VB ListView
android 下载保存图片
网址
原文地址:https://www.cnblogs.com/lidune/p/546676.html
最新文章
金额大小写转换(3)
PO 收料SQL
查询报表所属的职责
Timer_Qt
国外QT重要网站
C++ GUI Qt 编程(第二版)第8章 Diagram_2(实现主对话框)
Qt phonon多媒体框架(转)
深海de小鱼儿博客测试
C++ GUI Qt 编程(第二版)第8章 Diagram_1(实现主对话框)
如何使用纯CSS3来生成家谱(family tree)
热门文章
推荐5款免费的高清壁纸
分享9个单页面网站开发必备jQuery插件
使用jQuery开发iOS风格的页面导航菜单
究竟什么是开发人员眼中最好的代码编辑器?
推荐5款免费高清柏油路纹理图案设计
分享一个老式卡带机风格的HTML5 Audio播放器实现
一个轻量级的jQuery拖拽排序插件 HTML5 Sortable
iOS版本的Google Earth发布了5个3D城市图形
PHP技巧分享:7个非常适合初学者使用的实用PHP方法
Pinterest.com界面风格的社交展示web应用:Infinitesocialwall
Copyright © 2011-2022 走看看