Example #1
0
        string IBaseImage.GetTransparentImageProperties(out string mimeType, out byte[] imageData)
        {
            InternalImageInstance internalImageInstance = ImageInstance as InternalImageInstance;

            Global.Tracer.Assert(internalImageInstance != null, "GetTransparentImageProperties may only be called from the ODP engine.");
            return(internalImageInstance.LoadAndCacheTransparentImage(out mimeType, out imageData));
        }
Example #2
0
 internal override ReportItemInstance GetOrCreateInstance()
 {
     if (m_instance == null)
     {
         if (base.CriOwner != null)
         {
             m_instance = new CriImageInstance(this);
         }
         else if (base.IsOldSnapshot)
         {
             m_instance = new ShimImageInstance(this);
         }
         else
         {
             m_instance = new InternalImageInstance(this);
         }
     }
     return(m_instance);
 }