Click here to Skip to main content
15,927,836 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralImage Format Pin
A T I F6-Jun-01 4:24
A T I F6-Jun-01 4:24 
GeneralRe: Image Format Pin
6-Jun-01 5:27
suss6-Jun-01 5:27 
GeneralRe: Image Format Pin
Christian Graus6-Jun-01 9:26
protectorChristian Graus6-Jun-01 9:26 
GeneralDatabase connectivity Pin
6-Jun-01 4:19
suss6-Jun-01 4:19 
GeneralRe: Database connectivity Pin
6-Jun-01 5:11
suss6-Jun-01 5:11 
GeneralRe: Database connectivity Pin
Aky6-Jun-01 19:01
Aky6-Jun-01 19:01 
GeneralRe: Database connectivity Pin
A T I F6-Jun-01 21:08
A T I F6-Jun-01 21:08 
GeneralLineDDA, and CallBack function Pin
mr20036-Jun-01 4:11
mr20036-Jun-01 4:11 
Hi,
I'm using LineDDA function, everythin work and its fine,,
but there's a problem,,
i like to veiw all the points that the LineDDA passes to my callback function..
so i wrote the foolwing codes,, but it doesn't work.

void CEdgeView::LineDDAProc(int X, int Y, LPARAM lpData)
{
CDC* pDC = (CDC*) lpData;
ofstream outfile("points.out");
outfile << X << "," << Y <<"\n";

pDC->SetPixel(CPoint(X,Y), RGB(0,0,255));

}

it only prints the center point to the outfile..
anyone knows hwo to fix it,,
the reason is that, i have to get the pixel intensity of every point along that line.
so i need to wrok with those points.

Thanks

EhsanFrown | :(

Ehsan Behboudi
GeneralRe: LineDDA, and CallBack function Pin
Igor Sukhov6-Jun-01 7:43
Igor Sukhov6-Jun-01 7:43 
GeneralFlicker... Pin
Heaven6-Jun-01 3:30
Heaven6-Jun-01 3:30 
GeneralRe: Flicker... Pin
Christian Graus6-Jun-01 9:28
protectorChristian Graus6-Jun-01 9:28 
GeneralReplace a string in another string Pin
6-Jun-01 3:24
suss6-Jun-01 3:24 
GeneralRe: Replace a string in another string Pin
Carlos Antollini6-Jun-01 3:53
Carlos Antollini6-Jun-01 3:53 
GeneralRe: Replace a string in another string Pin
6-Jun-01 4:14
suss6-Jun-01 4:14 
GeneralGDI: Changing pen color Pin
6-Jun-01 2:36
suss6-Jun-01 2:36 
GeneralRe: GDI: Changing pen color Pin
Tomasz Sowinski6-Jun-01 2:41
Tomasz Sowinski6-Jun-01 2:41 
GeneralRe: GDI: Changing pen color Pin
6-Jun-01 2:59
suss6-Jun-01 2:59 
GeneralRe: GDI: Changing pen color Pin
Tomasz Sowinski6-Jun-01 3:13
Tomasz Sowinski6-Jun-01 3:13 
GeneralRe: GDI: Changing pen color Pin
6-Jun-01 3:37
suss6-Jun-01 3:37 
GeneralRe: GDI: Changing pen color Pin
Tomasz Sowinski6-Jun-01 3:50
Tomasz Sowinski6-Jun-01 3:50 
GeneralRe: GDI: Changing pen color Pin
6-Jun-01 4:02
suss6-Jun-01 4:02 
GeneralRe: GDI: Changing pen color Pin
Tomasz Sowinski6-Jun-01 4:29
Tomasz Sowinski6-Jun-01 4:29 
GeneralMemory fragmentation? Pin
6-Jun-01 5:21
suss6-Jun-01 5:21 
GeneralRe: Memory fragmentation? Pin
Tomasz Sowinski6-Jun-01 5:41
Tomasz Sowinski6-Jun-01 5:41 
GeneralRe: Memory fragmentation? Pin
Pavlos Touboulidis6-Jun-01 9:06
Pavlos Touboulidis6-Jun-01 9:06 

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.