static L_INT LFileSettings::GetViewport2D(pnWidth, pnHeight)
Gets the current viewport width and height used when loading 3D file formats.
Pointer to a variable to be updated with the current viewport width in pixels.
Pointer to a variable to be updated with the current viewport height in pixels.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
To set the viewport width and height in pixels, use LFileSettings::SetViewport2D.
When working with DXF files, you can use the Vector features, available in selected products, or you can use the Main C++ Class Library. If you use the Main C++ Class Library for loading (using the standard loading functions), you can modify the view port and view mode using the following functions:
This function may be used with the following Vector file formats: DXF, DWG, WMF, EMF, PCT, CGM, DRW, PLT, TIF (with a DXF saved internally) and Intergraph Vector. For more information on vector file formats and their availability, refer to LEADTOOLS Vector Formats.
Win32, x64.
For an example, refer to LFileSettings::SetViewMode2D.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document