Setting Container Scaling Values

Start with the project you created in Setting Container Offsets:

  1. Add the following code to the WndProc function, after the L_ContainerCreate( pContainer, hWnd ) ; function call in the WM_CREATE message:

    { // SET THE SCALING FACTOR 
       VECTORPOINT vptScalarNum, vptScalarDen; 
       vptScalarNum.x = nZoomFactor; 
       vptScalarDen.x = 100; 
       vptScalarNum.y = nZoomFactor; 
       vptScalarDen.y = 100; 
       vptScalarNum.z = 1; 
       vptScalarDen.z = 1; 
       L_ContainerSetScalar(pContainer, &vptScalarNum, &vptScalarDen); 
    } // SET THE SCALING FACTOR 
  2. Compile and run the project by selecting Build->Rebuild Solution from the menu, and then Debug->Start Without Debugging.

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Container and Automation C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.