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();
查看全文
相关阅读:
上下文有关文法
sqlserver cte 速度慢
hibernate tools eclipse 安装
sts java nullpointer exception
Oracle RAC集群体系结构
bean scope scoped-proxy
hibernate persist不能插入到表中
system.out 汉字乱码
NoSQL数据库(转)
在PowerShell中获取本地的RAM信息(容量)
原文地址:https://www.cnblogs.com/lidune/p/546676.html
最新文章
SQL命令建表
learning strtol func
learning statfs func
learning dhcp protocol
learning yaffs2 filesystem notes
learning armbian steps(12) ----- armbian 源码分析(七)
git fatal problems (12)
交换机与路由器的区别
get utc timestamp for utc
learning java online doc
热门文章
git clean (11)
枚举类型转换成Dictionary
JS 方法收集
megapix-image插件 使用Canvas压缩图片上传
微信验证
jquery资料
json 操作
js 数组 排序
异常记录(写txt日志文件)
上下文无关文法
Copyright © 2011-2022 走看看