Hi to all,
 
 
I hope someone can help me and thanks in advance:
 
 
I am a developer who is trying to display a section of an image (or algorithm) on a form's device context. Example, if I have a 5000 lines x 5000 columns (or cells) image, then I need to display only a section of that, say, the rectangle at location (100,100),(1500,1500) on the form. Also, that section must completely fill the form, that is to say, scale un-proportionally.
 
I have been trying by modifying the SimpleViewer.cpp example (Visual C++ 6.0) but I am not sure how to do this.
 
 
As my understanding, I need to modify the following parameters on the algorithm structure:
 
  m_pAlgorithm->canvas_width = ???;
  m_pAlgorithm->canvas_height= ???; 
  m_pAlgorithm->output_width = ???;
  m_pAlgorithm->output_height= ???; 
  m_pAlgorithm->x_offset= ???; 
  m_pAlgorithm->y_offset= ???; 
 
 
The problem is that I don't know if I am on my correct way and how these parameters must be initialized in order to accomplish it.
 
Thanks
Alex
 
 
 

Reply via email to