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();
查看全文
相关阅读:
Linux C编程 GCC的使用
51nod 1079 中国剩余定理
51nod 1074 约瑟夫环 V2
51nod 1073 约瑟夫环
51nod 1072 威佐夫游戏
ACM博弈论总结
51nod 1069 Nim游戏
2017 ACM-ICPC 亚洲区(南宁赛区)网络赛 The Heaviest Non-decreasing Subsequence Problem
2017 ACM-ICPC 亚洲区(南宁赛区)网络赛 Overlapping Rectangles
2017 ACM-ICPC 亚洲区(南宁赛区)网络赛 Minimum Distance in a Star Graph
原文地址:https://www.cnblogs.com/lidune/p/546676.html
最新文章
【转载】requests库的7个主要方法、13个关键字参数以及响应对象的5种属性
Pytest单元测试框架:插件-allure-pytest环境搭建并在本地生成一个测试报告
Pytest单元测试框架-allure测试报告
day22 模块最后的补充。包。
day21 模块 异常处理
day19 正则,re模块
day16 函数的用法:内置函数,匿名函数
day15 函数的使用方法:递归函数
day14,函数的使用方法:生成器表达式,生成器函数
day5 列表的增删改查
热门文章
列表的增删改查
day12 函数的使用方法:初识迭代器和生成器
51nod 1006 最长公共子序列Lcs
模板--快速幂及矩阵快速幂
linux C编程 gdb的使用
编译原理--文法和语言
linux C编程 Makefile的使用
递推公式黑科技
求逆元
51nod 1256 乘法逆元
Copyright © 2011-2022 走看看