Export area around set of entities to PNG
Dominik Egger
12/2/2013 11:40 AM
|
---|
So again a question.
I have a set of entities around which I would like to Export the drawing to PNG (with a "buffer of [x] units.
I am currently not getting the right coordinates - the buffers as well as width and height ar not diaplayed correctly.
I would Need a Resolution of at least 10 Pixels per Meter, or 5 times as good as the current view.
At the Moment I am calculating the bounds of the entities like this:
C# Code: var entities = _model. C# Code: const int margin = 2; C# Code: var c1trans = viewControl1. C# Code: return ImageExporter. |
rammi
12/2/2013 12:36 PM
|
---|
In your first code you are use boundsCalculator to calculate bounds, but use boundsCalculator2 (note the 2) to access the bounds. Please check.
Your following code looks overly complex to me, and there are various variable definitions missing which might help to understand what you are doing. But what you should do is:
Code: Matrix4D modelToImageTransform =
Transformation4D. |