Click here to Skip to main content
15,886,847 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to use CListCtrl to handle message Pin
Naveen10-Sep-09 22:59
Naveen10-Sep-09 22:59 
GeneralRe: How to use CListCtrl to handle message Pin
jinjiashan11-Sep-09 0:45
jinjiashan11-Sep-09 0:45 
AnswerRe: How to use CListCtrl to handle message Pin
Selvam R10-Sep-09 17:47
professionalSelvam R10-Sep-09 17:47 
AnswerRe: How to use CListCtrl to handle message Pin
Adam Roderick J10-Sep-09 18:34
Adam Roderick J10-Sep-09 18:34 
GeneralRe: How to use CListCtrl to handle message Pin
jinjiashan10-Sep-09 20:42
jinjiashan10-Sep-09 20:42 
QuestionHow to read Image's Pixel co-ordinates Pin
Game-point10-Sep-09 17:00
Game-point10-Sep-09 17:00 
AnswerRe: How to read Image's Pixel co-ordinates Pin
Naveen10-Sep-09 17:28
Naveen10-Sep-09 17:28 
GeneralRe: How to read Image's Pixel co-ordinates Pin
Game-point10-Sep-09 18:09
Game-point10-Sep-09 18:09 
Thanks for your replay!!!!!!
void CImageReaderDlg::OnBnClickedButtonLoad()
{
	
	CImage img;
	img.Load(_T("read.tif"));
	int nWidth=img.GetWidth();
	int nHeight=img.GetHeight();
	CClientDC dc(this);
	CString str;
	CPen ps;

	for (double i=nWidth ; i > nWidth/2 ; i--)
	{
		for (double j=nHeight;j>nHeight/2;j--)
		{
			COLORREF clr=img.GetPixel(i,j);
			//Find RGB value
			int Rvalue=GetRValue(clr);
			int Gvalue=GetGValue(clr);
			int Bvalue=GetBValue(clr);
			if(Rvalue == 255 && Gvalue == 255 && Bvalue == 255)
			{
				ps.CreatePen(PS_SOLID,i,RGB(255,0,0));
				dc.SelectObject(&ps);
				dc.MoveTo(i,j);
				dc.LineTo(i,j);
			}
		}
	}
}


its not drawing any colors in image ..what i can wrong here please suggest me !!

~~~~~~~~~~~~~Raju~~~~~~~~~~~~~


GeneralRe: How to read Image's Pixel co-ordinates Pin
Naveen10-Sep-09 18:13
Naveen10-Sep-09 18:13 
GeneralRe: How to read Image's Pixel co-ordinates Pin
Game-point10-Sep-09 18:18
Game-point10-Sep-09 18:18 
GeneralRe: How to read Image's Pixel co-ordinates Pin
Naveen10-Sep-09 18:19
Naveen10-Sep-09 18:19 
GeneralRe: How to read Image's Pixel co-ordinates Pin
Game-point10-Sep-09 18:29
Game-point10-Sep-09 18:29 
GeneralRe: How to read Image's Pixel co-ordinates Pin
Naveen10-Sep-09 19:11
Naveen10-Sep-09 19:11 
GeneralRe: How to read Image's Pixel co-ordinates Pin
Game-point10-Sep-09 19:40
Game-point10-Sep-09 19:40 
Questionwhat will happen when i terminate a process? Pin
iceman861610-Sep-09 14:25
iceman861610-Sep-09 14:25 
QuestionRe: what will happen when i terminate a process? Pin
Randor 10-Sep-09 15:04
professional Randor 10-Sep-09 15:04 
AnswerRe: what will happen when i terminate a process? Pin
Naveen10-Sep-09 17:23
Naveen10-Sep-09 17:23 
QuestionRe: what will happen when i terminate a process? Pin
Randor 10-Sep-09 17:33
professional Randor 10-Sep-09 17:33 
AnswerRe: what will happen when i terminate a process? Pin
Naveen10-Sep-09 17:40
Naveen10-Sep-09 17:40 
GeneralRe: what will happen when i terminate a process? Pin
Randor 10-Sep-09 17:46
professional Randor 10-Sep-09 17:46 
AnswerRe: what will happen when i terminate a process? Pin
Stuart Dootson10-Sep-09 20:32
professionalStuart Dootson10-Sep-09 20:32 
AnswerRe: what will happen when i terminate a process? Pin
kilt14-Sep-09 2:27
kilt14-Sep-09 2:27 
QuestionMatching function for the code Pin
Waldemar Ork10-Sep-09 9:21
Waldemar Ork10-Sep-09 9:21 
AnswerRe: Matching function for the code Pin
Selvam R10-Sep-09 9:40
professionalSelvam R10-Sep-09 9:40 
AnswerRe: Matching function for the code Pin
Maximilien10-Sep-09 9:43
Maximilien10-Sep-09 9:43 

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.