C#透明窗体(png图片渐变)源码

几年前我从codeproject上dwon的一个小demo。当时也在做关于透明窗体的一个小东西。费了很多事才搜到这篇文章,当时对我的帮助很大,今天贴出来,希望也对大家带来帮助.
//
//  Copyright ?2002 Rui Godinho Lopes <rui@ruilopes.com>
//  All rights reserved.
//
//  This source file(s) may be redistributed unmodified by any means
//  PROVIDING they are not sold for profit without the authors expressed
//  written consent, and providing that this notice and the authors name
//  and all copyright notices remain intact.
//
//  Any use of the software in source or binary forms, with or without
//  modification, must include, in the user documentation ("About" box and
//  printed documentation) and internal comments to the code, notices to
//  the end user as follows:
//
//  "Portions Copyright ?2002 Rui Godinho Lopes"
//
//  An email letting me know that you are using it would be nice as well.
//  That's not much to ask considering the amount of work that went into
//  this.
//
//  THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 
//  EXPRESS OR IMPLIED. USE IT AT YOUT OWN RISK. THE AUTHOR ACCEPTS NO
//  LIABILITY FOR ANY DATA DAMAGE/LOSS THAT THIS PRODUCT MAY CAUSE.
//

using  System;
using  System.Drawing;
using  System.Drawing.Imaging;
using  System.Windows.Forms;
using  System.Runtime.InteropServices;


Win32Class

PerPixelAlphaFormClass

MyPerPixelAlphaFormClass

MainFormClass

TheAppClass
 
  • 0
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 8
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 8
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值