GDI+ 在Delphi程式的應用 — Photoshop浮雕效果

實現映像浮雕效果的一般原理是,將映像上每個像素點與其對角線的像素點形成差值,使類比色彩值淡化,不同顏色值突出,從而產生縱深感,達到浮雕的效果,具體的做法是用處於對角線的2個像素值相減,再加上一個背景常數,一般為128而成。這種演算法的特點是簡單快捷,缺點是不能調節映像浮雕效果的角度和深度。   

將某個檔案夾的excel csv檔案匯入資料庫

DECLARE @dir sysname,@cmd nvarchar(4000);SET @dir = 'C:\';CREATE TABLE #tmp(filename nvarchar(1024));SET @cmd = N'dir "' + @dir + '*.csv" /B'INSERT #tmp EXEC master.dbo.xp_cmdshell @cmd;DELETE #tmp WHERE filename IS NULL;IF EXISTS(SELECT * FROM #tmp

Repeater調用預存程序+數字分頁

Default.aspx.csusing System;using System.Data;using System.Configuration;using System.Web;using System.Collections;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using

如何讀寫 app.config

如何讀寫 app.configusing System;using System.Collections.Generic;using System.Text;using System.Configuration;using System.Collections;namespace ServicesConfiguration{    public class ConfigurationDispose    {        public ConfigurationDispose()        

用戶端啟動exe

http://www.cnblogs.com/zjneter/articles/1030066.html緣起: 迅雷,電驢等軟體可以在瀏覽器中點擊一個url後自動啟動,並執行操作。這是咋實現的呢?俺google了許多 ,還是在園子裡找到了一個文 http://www.cnblogs.com/hwade/archive/2008/01/08/1029686.html ,這個哥哥喜歡寫繁體字,雖然俺學過書法,認識一些繁體字,但看著還是不爽。哎!資質愚鈍啊,看了半天沒看太明白,但思路是明白了

AspNETPager分頁的用法

<html xmlns="http://www.w3.org/1999/xhtml" ><head runat="server">    <title>無標題頁</title></head><body>    <form id="form1" runat="server">    <div>        <asp:DataList ID="DataList1"

FTP上傳檔案

public void Upload(string filename)        {//IP         string FtpIP = System.Web.Configuration.WebConfigurationManager.AppSettings["ftpIP"];        //使用者名稱         string FtpUserName =

迴圈添加textbox的資料

{ for (int k = count + 1; k <= 3; k++){string stra = "lblNamChn" + k.ToString;string strb = "txtEmpno" + k.ToString;TextBox TextBoxa = (TextBox)this.FindControl(stra);TextBox TextBoxb = (TextBox)this.FindControl(strb);if

SQL語句中JOIN的用法

關於sql語句中的串連(join)關鍵字,是較為常用而又不太容易理解的關鍵字,下面這個例子給出了一個簡單的解釋,相信會對你有所啟示。--建表table1,table2:create table table1(id int,name varchar(10))create table table2(id int,score int)insert into table1 select 1,'lee'insert into table1 select 2,'zhang'insert into

JDK1.6配置

JDK1.6配置1、首先到sun網站上下載最先版本JDK,我下的是jdk1.6.0_03版的2、進行環境配置,只需配置classpath和Path就可以了方法如下:右擊——我的電腦——屬性——進階——環境變數——在系統變數裡點擊Path——編輯:這裡在前面加上JDK的安裝路徑下的bin的路徑,例如我的JDK裝在了D:\Program Files\Java下,那就在前面添上(裡面已經有的變數值不要刪掉,直接在前面另外添上)D:\Program Files\Java\jdk1.6.0_03\bin;

又一個行列轉換

有一表 商品id 商品名稱 客戶名稱 日期 銷量 1 a 張三 2009-1-1 1 1 a 李四 2009-1-5 2 2 b 王二 2009-1-5 3 2 b 李四 2009-1-5 5 3 c

DataGrid 預存程序的分頁

<%@ import namespace="system.data.sqlclient" %><%@ import namespace="system.data" %><script runat="server">dim connorthwind as sqlconnectiondim strsql as stringdim strselect as stringdim intstartindex as integerdim intendindex as

iframe自適應大小

<script language="javascript"><!--function SetWinHeight(obj){var win=obj;if (document.getElementById){if (win && !window.opera){   if (win.contentDocument && win.contentDocument.body.offsetHeight)    win.height =

一個用預存程序的基本分頁及其調用

1 預存程序: CREATE           PROCEDURE C_PF_GetRecordFromPage    @tblName      varchar(255),       -- 表名     @fldName      varchar(255),       -- 欄位名     @PageSize     int = 10,           -- 頁尺寸     @PageIndex    int = 1,            -- 頁碼   

SQL防注入觸發器

最近很多人被注入攻擊,寫了個觸發器防止iframe,不過不是很推薦,,,呵呵要安全還是要從程式下手,參數化SQLcreate trigger tr_table_insertupdateon tablenamefor insert,updateasif exists (select 1 from inserted where data like '%</script>%' )begin       RAISERROR ('不能修改或者添加',16,1);      

介面設計規範

   我在工作中總結了一些有關介面設計與測試的規範,與大家共用。

datalist海量資料表高效率分頁演算法(不使用預存程序)

首先建立一張表(要求ID自動編號):create table redheadedfile(id int identity(1,1),filenames nvarchar(20),senduser nvarchar(20),primary key(id))然後我們寫入50萬條記錄:declare @i intset @i=1while @i<=500000begin      insert into redheadedfile(filenames,senduser)

DataList圖片排版

<asp:DataList ID="DataList2" runat="server" RepeatColumns="6"        RepeatDirection="Horizontal">        <ItemTemplate>            <br />           <a href='<%# "previewGoodWork.aspx?goodworkpicturepath="+DataBinder.Eval(

用人類自然的語言說泛型

泛型 一、什麼是泛型? 通過泛型可以定義型別安全類,而不會損害型別安全、效能或工作效率 二、執行個體化泛型 1、可以使用任何類型來聲明和執行個體化 2、申明和執行個體話都必須用一個特定的類型來代替一般類型T 3、例子: //原來寫法 Public class Stack { object[] m_Items; public void Push(object item) {...} public object Pop() {...} } Stack stack

div漸層技術

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html;

總頁數: 61357 1 .... 8945 8946 8947 8948 8949 .... 61357 Go to: 前往

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.