protected override bool ExtractCachedExternalImagePropertiesIfValid(Microsoft.ReportingServices.ReportIntermediateFormat.ImageInfo imageInfo, out byte[] imageData, out string mimeType, out string streamName)
 {
     imageData  = imageInfo.GetCachedImageData();
     streamName = imageInfo.StreamName;
     mimeType   = imageInfo.MimeType;
     return(true);
 }
        public override bool TryGetEmbeddedImage(string value, Microsoft.ReportingServices.OnDemandReportRendering.Image.EmbeddingModes embeddingMode, OnDemandProcessingContext odpContext, out byte[] imageData, out string mimeType, out string streamName)
        {
            Global.Tracer.Assert(embeddingMode == Microsoft.ReportingServices.OnDemandReportRendering.Image.EmbeddingModes.Inline, "Invalid image embedding mode");
            Microsoft.ReportingServices.ReportIntermediateFormat.ImageInfo value2 = null;
            Dictionary <string, Microsoft.ReportingServices.ReportIntermediateFormat.ImageInfo> embeddedImages = odpContext.EmbeddedImages;

            if (embeddedImages == null || !embeddedImages.TryGetValue(value, out value2))
            {
                imageData  = null;
                mimeType   = null;
                streamName = null;
                return(false);
            }
            imageData  = value2.GetCachedImageData();
            streamName = value2.StreamName;
            mimeType   = value2.MimeType;
            return(true);
        }