The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I have a rectangle with some predefine width and height.
I need to draw the rectangle in such a way that it occupies the entire viewable are of the diagram control. In other words it shoulb be zoomed in maintaining the aspect ratio.
For e.g., if the rectangle width is 100 and height is 100. Let the diagram control width is 500 and height is also 500.
Now my rectangle should occupy the entire width and height of the diagram control.
I cant directly set the height and width of the rectangle to diagram dimensions as there are numerous calculations are based on the rectangle dimensions.
In a simplified way my requirement is to zoom the rectangle to the diagram control dimensions without loosing the aspect ratio.