图片反色的一段程序

2016-02-19 15:57 35 1 收藏

今天给大家分享的是由图老师小编精心为您推荐的图片反色的一段程序,喜欢的朋友可以分享一下,也算是给小编一份支持,大家都不容易啊!

【 tulaoshi.com - 编程语言 】


  void S_RevColor(Graphics::TBitmap *Bmp)//图片反色
  {
  BYTE *ptr;
  for (int y = 0; y Bmp-Height; y++)
    {
    ptr =(BYTE *) Bmp-ScanLine[y];
    for (int x = 0; x Bmp-Width*3; x+=3)
      {
      ptr[x]=BYTE(255-ptr[x]);
      ptr[x+1]=BYTE(255-ptr[x+1]);
      ptr[x+2]=BYTE(255-ptr[x+2]);
      }
    }
  } 

来源:https://www.tulaoshi.com/n/20160219/1610747.html

延伸阅读
标签: Web开发
1script language =javascript  2var curIndex=0;  3//时间间隔 单位毫秒  4var timeInterval=1000;  5var arr=new Array();  6arr[0]="1.jpg";  7arr[1]="2.jpg";  8arr[2]="3.jpg";  9arr[3]="4.jpg"; 10arr[4]="5.jpg"; 11arr[5]="6.jpg"; 12arr[6]="7.jpg"; 13setInterval(changeImg,timeInterval...
标签: ASP
  很久没用ACCESS了,只是看到经常碰到有人问如何返回随机记录的问题,所以就贴了上来,随便看看。 <!--#include virtual="/adovbs.inc"-- <%     Dim objConn     Dim objRst     Dim strSQL     Dim strConnection   &nbs...
标签: PHP
<?php   $key = "This is supposed to be a secret key !!!";   function keyED($txt,$encrypt_key)   {   $encrypt_key = md5($encrypt_key);   $ctr=0;   $tmp = "";   for ($i=0;$i<strlen($txt);$i++)   { ...
标签: Web开发
.aaa { border:1px solid #ccc; background:#f60; height:200px; } 测试一下 [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
标签: ASP
  <!-- Here we are calling the LPK file.  This LPK file was created using the same method explained in the article-- <object CLASSID="clsid:5220cb21-c88d-11cf-b347-00aa00a28331" id="Microsoft_Licensed_Class_Manager_1_0"    <param NAME="LPKPath" VALU...

经验教程

784

收藏

52
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部