private Stream LoadDynamicImage(out ActionInfoWithDynamicImageMapCollection actionImageMaps, PageContext pageContext) { IDynamicImageInstance dynamicImageInstance = (IDynamicImageInstance)base.m_source.Instance; dynamicImageInstance.SetDpi(pageContext.DynamicImageDpiX, pageContext.DynamicImageDpiY); if (pageContext.IsInSelectiveRendering) { dynamicImageInstance.SetSize(pageContext.Common.Pagination.PhysicalPageWidth, pageContext.Common.Pagination.PhysicalPageHeight); } return(dynamicImageInstance.GetImage((DynamicImageInstance.ImageType)(pageContext.EMFDynamicImages ? 1 : 0), out actionImageMaps)); }
public Stream LoadDynamicImage(PageContext pageContext, ref string streamName, out ActionInfoWithDynamicImageMapCollection actionImageMaps, out System.Drawing.Rectangle offsets) { IDynamicImageInstance dynamicImageInstance = (IDynamicImageInstance)base.m_source.Instance; Stream result = null; if (pageContext.EmfDynamicImage) { dynamicImageInstance.SetDpi(96, 96); result = dynamicImageInstance.GetImage(DynamicImageInstance.ImageType.EMF, out actionImageMaps); this.Register(ref result, ref streamName, "emf", "image/emf", pageContext, out offsets); } else { result = dynamicImageInstance.GetImage(DynamicImageInstance.ImageType.PNG, out actionImageMaps); this.Register(ref result, ref streamName, "png", PageContext.PNG_MIME_TYPE, pageContext, out offsets); } return(result); }