Exemplo n.º 1
0
        public static byte[] GetEmbeddedImage(string name)
        {
            byte[] imageBody = new EmbeddedResourceManager().GetBinaryResource(name);
            string mimeType  = "image/png";

            return(imageBody);
        }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                // Register and initialize once only, all other methods will use and share same objects/configs.

                // initializing AnnotationImageHandler object.
                annotator = UnityConfig.GetConfiguredContainer().Resolve <AnnotationImageHandler>();

                // initializing EmbeddedResourceManager object.
                _resourceManager = new EmbeddedResourceManager();

                //AnnotationHub.userGUID = "52ced024-26e0-4b59-a510-ca8f5368e315";
                // initializing AnnotationService object.
                _annotationSvc = UnityConfig.GetConfiguredContainer().Resolve <IAnnotationService>();

                //Here you should apply proper GroupDocs.Annotation license (in case you want to
                //use this sample without trial limits)
                License lic = new License();
                lic.SetLicense("E:/GroupDocs.Total.lic");
            }
        }
Exemplo n.º 3
0
        public static string GetCss(string name)
        {
            string css = new EmbeddedResourceManager().GetCss(name);

            return(css);
        }
Exemplo n.º 4
0
        public static string GetScript(string name)
        {
            string script = new EmbeddedResourceManager().GetScript(name);

            return(script);
        }