Message 1 of 7
Crop Rebar Shape Images
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi community, the FitToPage enumerate export images using to much white space. Is there any workaround to zoom a little bit more the image just like this:
so then Images can have a better visualization of those image in the rebar schedule.
string desktopPath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
ImageExportOptions img = new ImageExportOptions();
img.PixelSize = 1000;
img.ImageResolution = ImageResolution.DPI_600;
img.SetViewsAndSheets(new List<ElementId>{viewDetail.Id});
img.ExportRange=ExportRange.SetOfViews;
img.ZoomType = ZoomFitType.FitToPage;
img.FitDirection = FitDirectionType.Vertical;
img.HLRandWFViewsFileType=ImageFileType.PNG;
img.FilePath = Path.Combine(desktopPath,"image1");
img.ShadowViewsFileType = ImageFileType.PNG;
detailComponent.ExportImage(img);
#endregion
any recommendations tot the image name appropriately as I aimed t seo named the image as "image1" but it turns out to be "image1 - Floor Plan Ref Level"
Cheers
Developer Advocacy and Support +