Click here to Skip to main content
15,902,299 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: MFC - Scroll Bars Pin
Alex Boyce15-Sep-06 11:04
Alex Boyce15-Sep-06 11:04 
QuestionThe ripple effect Pin
Waldermort15-Sep-06 8:59
Waldermort15-Sep-06 8:59 
AnswerRe: The ripple effect Pin
Chris Losinger15-Sep-06 9:50
professionalChris Losinger15-Sep-06 9:50 
AnswerRe: The ripple effect Pin
Maximilien15-Sep-06 10:04
Maximilien15-Sep-06 10:04 
GeneralRe: The ripple effect Pin
Waldermort15-Sep-06 10:20
Waldermort15-Sep-06 10:20 
GeneralRe: The ripple effect Pin
Chris Losinger15-Sep-06 10:22
professionalChris Losinger15-Sep-06 10:22 
GeneralRe: The ripple effect Pin
Waldermort15-Sep-06 10:40
Waldermort15-Sep-06 10:40 
GeneralRe: The ripple effect Pin
Chris Losinger15-Sep-06 11:00
professionalChris Losinger15-Sep-06 11:00 
waldermort wrote:
I could do the enlargment before I even touch into the ripple code


sure. but i think doing them at the same time would be faster (though speed isn't the top priority in all situations).

ex. my code does something like this:

for each output pixel (x,y):
   run the ripple calculations backwards to find the source pixel (a,b)
   since a and b are fractions
     interpolate from multiple source pixels to find the output color


if the source image is 100x100 to scale based on crop rect (10,10, 90,90) (for example), i would do this:
for each output pixel (x,y):
   run the ripple calculations backwards to find the source pixel (a,b)
   scale a,b from the source rect into the crop/zoom rect
   interpolate from a,b ...   


just a thought...


GeneralRe: The ripple effect Pin
Waldermort15-Sep-06 11:04
Waldermort15-Sep-06 11:04 
QuestionSharing Data between object. Pin
mostafa_pasha15-Sep-06 8:54
mostafa_pasha15-Sep-06 8:54 
AnswerRe: Sharing Data between object. Pin
David Crow15-Sep-06 9:18
David Crow15-Sep-06 9:18 
AnswerRe: Sharing Data between object. Pin
ThatsAlok16-Sep-06 1:11
ThatsAlok16-Sep-06 1:11 
GeneralRe: Sharing Data between object. Pin
mostafa_pasha16-Sep-06 1:47
mostafa_pasha16-Sep-06 1:47 
QuestionDetect other logged in users in XP Pin
gydong2215-Sep-06 7:43
gydong2215-Sep-06 7:43 
AnswerRe: Detect other logged in users in XP Pin
tanvon malik15-Sep-06 15:08
tanvon malik15-Sep-06 15:08 
GeneralRe: Detect other logged in users in XP Pin
ThatsAlok16-Sep-06 1:12
ThatsAlok16-Sep-06 1:12 
AnswerRe: Detect other logged in users in XP Pin
ThatsAlok16-Sep-06 1:12
ThatsAlok16-Sep-06 1:12 
QuestionCreateViewObject in a Namespace Extension Pin
Dave Kerr15-Sep-06 7:33
Dave Kerr15-Sep-06 7:33 
QuestionGiving memory back to the system Pin
nadiric15-Sep-06 7:23
nadiric15-Sep-06 7:23 
AnswerRe: Giving memory back to the system Pin
Chris Losinger15-Sep-06 7:47
professionalChris Losinger15-Sep-06 7:47 
AnswerRe: Giving memory back to the system Pin
David Crow15-Sep-06 8:49
David Crow15-Sep-06 8:49 
AnswerRe: Giving memory back to the system Pin
Rick York15-Sep-06 10:57
mveRick York15-Sep-06 10:57 
QuestionNeed some example of C++ chat application Pin
Yanshof15-Sep-06 6:38
Yanshof15-Sep-06 6:38 
AnswerRe: Need some example of C++ chat application Pin
Reagan Conservative15-Sep-06 7:03
Reagan Conservative15-Sep-06 7:03 
GeneralRe: Need some example of C++ chat application Pin
Zac Howland15-Sep-06 8:31
Zac Howland15-Sep-06 8:31 

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.