Click here to Skip to main content
16,004,860 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Accessing the date from webcamera with pure C++. Is it possible? [modified] Pin
mk_428-Feb-09 0:08
mk_428-Feb-09 0:08 
GeneralRe: Accessing the date from webcamera with pure C++. Is it possible? Pin
ky_rerun28-Feb-09 18:26
ky_rerun28-Feb-09 18:26 
GeneralRe: Accessing the date from webcamera with pure C++. Is it possible? Pin
mk_41-Mar-09 1:26
mk_41-Mar-09 1:26 
GeneralRe: Accessing the date from webcamera with pure C++. Is it possible? Pin
ky_rerun1-Mar-09 5:51
ky_rerun1-Mar-09 5:51 
GeneralRe: Accessing the date from webcamera with pure C++. Is it possible? Pin
mk_41-Mar-09 8:03
mk_41-Mar-09 8:03 
QuestionMagnifying image & Resetting client scrollbars? Pin
Kiran Satish27-Feb-09 11:10
Kiran Satish27-Feb-09 11:10 
AnswerRe: Magnifying image & Resetting client scrollbars? Pin
Stuart Dootson27-Feb-09 20:44
professionalStuart Dootson27-Feb-09 20:44 
GeneralRe: Magnifying image & Resetting client scrollbars? Pin
Kiran Satish28-Feb-09 11:55
Kiran Satish28-Feb-09 11:55 
thanks for the reply. Whats oldPos here? For example if you have an image displayed where its left top position is (0,0) when you zoom in and if you want to do it with respect to the center of the image displayed in client area, then the new position wont be (0,0), right? from your function it still return (0,0) which is not correct. Is that true or am I interpreting it in wrong way?

Here is what I tried to implement-
int x = sp.x/zoom_prev; //sp = scrollposition
int y = sp.y/zoom_prev;
int x1 = x+myRect.Width()/zoom_prev;
int y1 = y+myRect.Height()/zoom_prev;
newpos.x = x1-myRect.Width()/zoom_const;
newpos.y = y1-myRect.Height()/zoom_const;

but this is not producing correct results

PKNT

GeneralRe: Magnifying image & Resetting client scrollbars? Pin
Stuart Dootson28-Feb-09 12:02
professionalStuart Dootson28-Feb-09 12:02 
AnswerRe: Magnifying image & Resetting client scrollbars? Pin
Kiran Satish26-Mar-09 6:07
Kiran Satish26-Mar-09 6:07 
QuestionHow to catch a Msg in CView? Pin
Software200727-Feb-09 9:39
Software200727-Feb-09 9:39 
AnswerRe: How to catch a Msg in CView? Pin
Stuart Dootson27-Feb-09 9:55
professionalStuart Dootson27-Feb-09 9:55 
General[Message Deleted] Pin
Software200727-Feb-09 10:06
Software200727-Feb-09 10:06 
GeneralRe: How to catch a Msg in CView? Pin
Stuart Dootson27-Feb-09 10:16
professionalStuart Dootson27-Feb-09 10:16 
GeneralRe: How to catch a Msg in CView? [modified] Pin
Software200727-Feb-09 10:19
Software200727-Feb-09 10:19 
GeneralRe: How to catch a Msg in CView? Pin
Stuart Dootson27-Feb-09 10:48
professionalStuart Dootson27-Feb-09 10:48 
QuestionEvery Alternative Character is NULL while writing to a file Pin
Neelesh K J Jain27-Feb-09 5:13
Neelesh K J Jain27-Feb-09 5:13 
AnswerRe: Every Alternative Character is NULL while writing to a file Pin
Stuart Dootson27-Feb-09 5:42
professionalStuart Dootson27-Feb-09 5:42 
GeneralRe: Every Alternative Character is NULL while writing to a file Pin
Neelesh K J Jain27-Feb-09 6:06
Neelesh K J Jain27-Feb-09 6:06 
GeneralRe: Every Alternative Character is NULL while writing to a file Pin
Iain Clarke, Warrior Programmer27-Feb-09 7:45
Iain Clarke, Warrior Programmer27-Feb-09 7:45 
GeneralRe: Every Alternative Character is NULL while writing to a file Pin
Stuart Dootson27-Feb-09 8:16
professionalStuart Dootson27-Feb-09 8:16 
Questionnumbers per line Pin
jonig1927-Feb-09 4:40
jonig1927-Feb-09 4:40 
AnswerRe: numbers per line Pin
Stuart Dootson27-Feb-09 5:40
professionalStuart Dootson27-Feb-09 5:40 
GeneralRe: numbers per line Pin
jonig1927-Feb-09 8:36
jonig1927-Feb-09 8:36 
GeneralRe: numbers per line Pin
Stuart Dootson27-Feb-09 8:51
professionalStuart Dootson27-Feb-09 8:51 

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.