Save to image
Moderators: SDS, support, admin
Save to image
Hello
I need to save a dwg file to image. In your demo you use the rasterSizeForm. But i need to save image directly to a file with the maximum recommended size.
How do you calculate this size ?
Thanks
I need to save a dwg file to image. In your demo you use the rasterSizeForm. But i need to save image directly to a file with the maximum recommended size.
How do you calculate this size ?
Thanks
Re: Save to image
Hello.
Maximum recommended size calculated heuristically. If I understand correctly, you want to save raster file without Size setting dialog, i.e. directly. To do such a thing you need to modify demo (for example Editor) code like it shown on screenshot: On screenshot maximum size set in integer values in pixels. You will need to write your method to calculate maximum recommended size, because you can't access our realization without rasterSizeForm.
Alexander.
Maximum recommended size calculated heuristically. If I understand correctly, you want to save raster file without Size setting dialog, i.e. directly. To do such a thing you need to modify demo (for example Editor) code like it shown on screenshot: On screenshot maximum size set in integer values in pixels. You will need to write your method to calculate maximum recommended size, because you can't access our realization without rasterSizeForm.
Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
Re: Save to image
Thank you for your reply.
You write that maximum recommended size is calculated heuristically. I understand but i think that this size is calculated with a function which depends a specific data, like cadPictBox.VirtualSize or else.
Is it right ?
Cyril
You write that maximum recommended size is calculated heuristically. I understand but i think that this size is calculated with a function which depends a specific data, like cadPictBox.VirtualSize or else.
Is it right ?
Cyril
Re: Save to image
Yes, maximum recommended size calculated with a function that uses some specific data. These data is not cadPictBox.VirtualSize and you can't access it from your application. Because of this you will need to write your method. But you can use in your method CADImage.AbsHeight and CADImage.AbsWidth properties. Using of CADPictureBox class is incorrect, because it represents advanced PictureBox object with the scroll bars.
Alexander.
Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support