Click here to Skip to main content
15,849,262 members
Home / Discussions / Graphics
   

Graphics

 
GeneralRe: Bitmap blur problem Pin
Naturality9-Jun-08 11:06
Naturality9-Jun-08 11:06 
GeneralRe: Bitmap blur problem Pin
Tim Craig9-Jun-08 15:32
Tim Craig9-Jun-08 15:32 
GeneralRe: Bitmap blur problem Pin
Tim Craig9-Jun-08 16:10
Tim Craig9-Jun-08 16:10 
GeneralRe: Bitmap blur problem Pin
Naturality9-Jun-08 16:43
Naturality9-Jun-08 16:43 
GeneralRe: Bitmap blur problem Pin
Christian Graus9-Jun-08 18:00
protectorChristian Graus9-Jun-08 18:00 
GeneralRe: Bitmap blur problem Pin
Naturality9-Jun-08 18:06
Naturality9-Jun-08 18:06 
GeneralRe: Bitmap blur problem Pin
Tim Craig9-Jun-08 18:27
Tim Craig9-Jun-08 18:27 
GeneralRe: Bitmap blur problem Pin
Naturality9-Jun-08 18:49
Naturality9-Jun-08 18:49 
Thanks for the advice Big Grin | :-D . But now, the output is just red and black lines D'Oh! | :doh:

Here's the updated code:

unsigned int yp=0, xp=0;


for(int y = 1; y < bmp.biHeight-1; y++){
	for(int x = 1; x < bmp.biWidth-1; x++){
		for(int i = 0; i < 9; i++){
			{
			get_pixel(x+xp,y+yp,blank[i],image); 
			if(xp<2)
				xp++;
			else{
				xp = -1;
				yp++;}
			}
		}
		avg(blank, Merge, 9, Matrix); 
		set_pixel(x,y,Merge,image2);
		clear_pixel(Merge);
		yp=-1, xp=-1;
			
	}}


"Sir, I protest. I am NOT a merry man!"

GeneralRe: Bitmap blur problem Pin
Christian Graus9-Jun-08 20:15
protectorChristian Graus9-Jun-08 20:15 
GeneralRe: Bitmap blur problem Pin
Tim Craig9-Jun-08 21:32
Tim Craig9-Jun-08 21:32 
GeneralRe: Bitmap blur problem Pin
Tim Craig9-Jun-08 21:35
Tim Craig9-Jun-08 21:35 
GeneralRe: Bitmap blur problem Pin
Christian Graus10-Jun-08 5:03
protectorChristian Graus10-Jun-08 5:03 
GeneralRe: Bitmap blur problem Pin
Naturality10-Jun-08 5:24
Naturality10-Jun-08 5:24 
GeneralRe: Bitmap blur problem Pin
Tim Craig10-Jun-08 10:53
Tim Craig10-Jun-08 10:53 
GeneralRe: Bitmap blur problem Pin
Naturality10-Jun-08 11:32
Naturality10-Jun-08 11:32 
GeneralRe: Bitmap blur problem Pin
Naturality10-Jun-08 12:51
Naturality10-Jun-08 12:51 
GeneralRe: Bitmap blur problem Pin
Naturality10-Jun-08 14:15
Naturality10-Jun-08 14:15 
GeneralRe: Bitmap blur problem Pin
Tim Craig10-Jun-08 15:55
Tim Craig10-Jun-08 15:55 
GeneralRe: Bitmap blur problem Pin
Tim Craig12-Jun-08 19:35
Tim Craig12-Jun-08 19:35 
GeneralRe: Bitmap blur problem Pin
Naturality13-Jun-08 12:41
Naturality13-Jun-08 12:41 
QuestionHow to highlight the particular row in Datagrid? Pin
gtag6-Jun-08 19:26
gtag6-Jun-08 19:26 
AnswerRe: How to highlight the particular row in Datagrid? [modified] Pin
Tim Craig6-Jun-08 21:28
Tim Craig6-Jun-08 21:28 
AnswerRe: How to highlight the particular row in Datagrid? Pin
Harvey Saayman20-Jun-08 3:39
Harvey Saayman20-Jun-08 3:39 
GeneralRe: How to highlight the particular row in Datagrid? Pin
gtag13-Jul-08 0:57
gtag13-Jul-08 0:57 
GeneralRe: How to highlight the particular row in Datagrid? Pin
Harvey Saayman13-Jul-08 21:09
Harvey Saayman13-Jul-08 21:09 

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.