Click here to Skip to main content
15,898,134 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionImage With WebService Pin
AnhTin11-Feb-07 15:47
AnhTin11-Feb-07 15:47 
AnswerRe: Image With WebService Pin
Sandeep Akhare12-Feb-07 1:57
Sandeep Akhare12-Feb-07 1:57 
QuestionSystem.Windows.Forms Database Framework and ASP.NET Pin
Lindsay_Mathieson11-Feb-07 15:17
Lindsay_Mathieson11-Feb-07 15:17 
QuestionArithmetic Overflow etc...Error for datetime in gridview Pin
BORN...again!11-Feb-07 14:22
BORN...again!11-Feb-07 14:22 
QuestionHow to Sharpen Image? Pin
achimera11-Feb-07 13:57
achimera11-Feb-07 13:57 
AnswerRe: How to Sharpen Image? Pin
Rahithi11-Feb-07 17:40
Rahithi11-Feb-07 17:40 
GeneralRe: How to Sharpen Image? Pin
achimera11-Feb-07 20:45
achimera11-Feb-07 20:45 
GeneralRe: How to Sharpen Image? Pin
Rahithi16-Feb-07 6:56
Rahithi16-Feb-07 6:56 
Hi,
Try this. it is really works good to sharpen image...


• For every pixel ( i , j ) on the output bitmap
o Set the pixel
#define sharp_w 3
#define sharp_h 3

sumr=0;
sumg=0;
sumb=0;

int sharpen_filter[sharp_w][sharp_h]={{0,-1,0},{-1,5,-1},{0,-1,0}};
int sharp_sum=1;

for(i=1;i<temp->w-1;i++){
for(j=1;j<temp->h-1;j++){
for(k=0;k<sharp_w;k++){
for(l="0;l<sharp_h;l++){
"
="" color="getpixel(temp,i-((sharp_w-1)">>1)+k,j-
((sharp_h-1)>>1)+l);
r=getr32(color);
g=getg32(color);
b=getb32(color);
sumr+=r*sharpen_filter[k][l];
sumg+=g*sharpen_filter[k][l];
sumb+=b*sharpen_filter[k][l];
}
}

sumr/=sharp_sum;
sumb/=sharp_sum;
sumg/=sharp_sum;

putpixel(temp1,i,j,makecol(sumr,sumg,sumb));
}
}



thanks,
Rahi

If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "

QuestionMaintain focus between postbacks Pin
Ulf Andersson11-Feb-07 11:01
Ulf Andersson11-Feb-07 11:01 
QuestionASP.NET and Flash Pin
nour12311-Feb-07 6:44
nour12311-Feb-07 6:44 
QuestionCalendar1 Pin
Blue_Boy11-Feb-07 4:08
Blue_Boy11-Feb-07 4:08 
QuestionHyperLink in GridView Pin
Mohammed Elkholy11-Feb-07 1:19
Mohammed Elkholy11-Feb-07 1:19 
AnswerRe: HyperLink in GridView Pin
BORN...again!11-Feb-07 13:35
BORN...again!11-Feb-07 13:35 
GeneralRe: HyperLink in GridView Pin
Mohammed Elkholy11-Feb-07 20:31
Mohammed Elkholy11-Feb-07 20:31 
QuestionView State "32 bit encoded" Pin
DavidsMaguire11-Feb-07 0:14
DavidsMaguire11-Feb-07 0:14 
AnswerRe: View State "32 bit encoded" Pin
Colin Angus Mackay11-Feb-07 0:29
Colin Angus Mackay11-Feb-07 0:29 
GeneralRe: View State "32 bit encoded" Pin
DavidsMaguire11-Feb-07 0:45
DavidsMaguire11-Feb-07 0:45 
GeneralRe: View State "32 bit encoded" Pin
Colin Angus Mackay11-Feb-07 3:38
Colin Angus Mackay11-Feb-07 3:38 
GeneralRe: View State "32 bit encoded" Pin
Guffa11-Feb-07 14:24
Guffa11-Feb-07 14:24 
GeneralRe: View State "32 bit encoded" Pin
DavidsMaguire11-Feb-07 22:00
DavidsMaguire11-Feb-07 22:00 
GeneralRe: View State "32 bit encoded" Pin
Colin Angus Mackay12-Feb-07 1:57
Colin Angus Mackay12-Feb-07 1:57 
Questiononmouseover Javascript event Pin
Blue_Boy11-Feb-07 0:11
Blue_Boy11-Feb-07 0:11 
AnswerRe: onmouseover Javascript event Pin
Guffa11-Feb-07 0:20
Guffa11-Feb-07 0:20 
GeneralRe: onmouseover Javascript event Pin
Blue_Boy11-Feb-07 0:24
Blue_Boy11-Feb-07 0:24 
AnswerRe: onmouseover Javascript event Pin
Guffa11-Feb-07 11:23
Guffa11-Feb-07 11:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.