public static byte[] GetEmbeddedImage(string name) { byte[] imageBody = new EmbeddedResourceManager().GetBinaryResource(name); string mimeType = "image/png"; return(imageBody); }
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"); } }
public static string GetCss(string name) { string css = new EmbeddedResourceManager().GetCss(name); return(css); }
public static string GetScript(string name) { string script = new EmbeddedResourceManager().GetScript(name); return(script); }