文章分类 - 图形图像flash
1
摘要:文章转至:http://www.cnblogs.com/yuanbao/archive/2007/11/14/958488.html1、如何设前景/背景的分界值 UnCodebase类中有一个GetPicValidByValue( intdgGrayValue) 函数,可以得到前景的有效区域,常有人问我前景/背景的分界值dgGrayValue是如何确定的(常用的是灰度128)。这个值的获取是有数学...
阅读全文
摘要:先看一下效果图:代码:private void button1_Click(object sender, System.EventArgs e) { Graphics g = this.CreateGraphics(); g.Clear(Color.White); //g.InterpolationMode = InterpolationMode.HighQualityBicubic; g.Com...
阅读全文
摘要:七. 以左右反转的方式显示图像 原理: 计算图像位置和高度后以宽度的一半为轴进行对换左右半边的图像." 代码:[代码]八. 以从上向下拉伸的方式显示图像 原理: 将图像的宽度不变每次显示图像的一部分, 直到将图片完全显示. 代码:[代码]九. 以从左向右拉伸的方式显示图像 原理: 将图像的高度不变每次显示图像的一部分, 直到将图片完全显示 代码:[代码]十. 以任意角度旋转图像 原理:...
阅读全文
摘要:逛CSDN时发现的,由于对图像操作很不熟悉,留作备用学习:http://topic.csdn.net/u/20081031/08/197ba3bf-7177-4f14-ba16-59d09d7334d8.html十一将至, 放假前将GDI+最后一部分今天终于完成: 以动画的方式显示图像。希望对 GDI+编程的园友有所帮助。 PPT 以动画方式显示幻灯片是其一个很重要的特点,相信里边一定有您喜欢的动...
阅读全文
摘要:给图片添加透明文字水印的方法(可以定义文字水印的位置、水印的透明度)[代码]
阅读全文
摘要:效果图:--------------------------------------------------------------------------------------------最先想到的方法是Form的TransparentKey属性。只需把Flaxh ocx拉到窗体,ocx控件背景颜色、窗休背景颜色和TransparentKey都设置相同的颜色值就可以实现透明了。什么?实现不了?...
阅读全文
摘要:效果示例图 第一步,建立一个Windows Application,然后在主form中放置一个Button,如下图所示:第二步,给这个Application添加一个窗体(Form2),把窗体的FormBorderStyle属性设置为None(无边框模式),然后把TopMost属性(总在最上方)属性设置为True,把ShowInTaskbar属性(是否在 Windows 任务栏中显示窗体)设置为Fa...
阅读全文
摘要:ZedGraph是很好的.net下的统计图开源项目,在以前的一篇随笔中提到,与其他的一些统计图控件相比,ZedGraph由于是直接在画布上作画,而不是生成图片显示,所以性能比较好,在诸如股市的实时走势图,显示cpu使用率等实时性较强的应用中有很好的表现,方法并不难,但是由于很少有人写这方面的文章,又正巧在其他论坛中看到有这方面的问题,所以写了下面的例子。ZedGraph在描画折线图的时候,将所有的...
阅读全文
摘要:void Draw_Img(){ Bitmap bmp = new Bitmap(400,300); //创建一个长度为400,宽带为400的Bitmap实例 Graphics g; g = Graphics.FromImage(bmp); g.Clear(Color.Snow); string[] sitem = {"很好","好","一般","差"}; int[] num = {1000,69...
阅读全文
摘要:主要是使用System.Drawing.Icon类的Icon.FromHandle工厂方法。其关键代码如下:public partial class FormMain : Form{public FormMain(){InitializeComponent();}private void ButtonBrowseFile_Click(object sender, EventArgs e){if (...
阅读全文
摘要:using System;using System.Collections;using System.ComponentModel;using System.Data;using System.Drawing;using System.Web;using System.Web.SessionState;using System.Web.UI;using System.Web.UI.WebContr...
阅读全文
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace WindowsApplication1{public parti...
阅读全文
摘要:①新建一窗体,拉一Timer控件,Interval值设置为20,双击Timer控件进入事件编写:private void timer1_Tick(object sender, EventArgs e){// 计时器事件if (this.Opacity > 0){this.Opacity -= 0.02;}else {this.timer1.Enabled = false;Appl...
阅读全文
摘要:.aspx文件 <%@Pagelanguage="c#"Codebehind="35cnnet.aspx.cs"AutoEventWireup="false"Inherits="uploadfiles.35cnnet"%> <!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.0Transitional//EN"> <HTML> <HE...
阅读全文
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace 模仿卡巴基斯渐变窗体{ public partial class...
阅读全文
摘要:做了一个控件,这样就可以告别图片按钮了:)程序源代码:using System;using System.Collections;using System.ComponentModel;using System.Drawing;using System.Data;using System.Windows.Forms;using System.Drawing.Drawing2D;using Syst...
阅读全文
摘要:1 //描绘曲线 //创建曲线中的点 Point point1 = new Point(68, 420); Point point2 = new Point(71, 410); Point point3 = new Point(74, 423); Point point4 = new Point(77, 412); Point point5 = new Point(80, 400); Point ...
阅读全文
摘要:程序中核心部分源代码: view plaincopy to clipboardprint?using System; using System.Drawing; using System.Drawing.Drawing2D; using System.Windows.Forms; namespace FallingGold { /// <SUMMARY></SUMMARY&g...
阅读全文
1

浙公网安备 33010602011771号