// ------------------------------------------------------------------------------------------------------------------------ public byte[] GetPageByHeightAsImage(int page, double height) { lock (cache) { byte[] bitmap = cache.Get(page, height); if (null == bitmap) { bitmap = SoraxPDFRendererDLLWrapper.GetPageByHeightAsImage(pdf_filename, pdf_owner_password, pdf_user_password, page, height); cache.Put(page, height, bitmap); } return(bitmap); } }
// ------------------------------------------------------------------------------------------------------------------------ public byte[] GetPageByHeightAsImage(int page, double height) { Utilities.LockPerfTimer l1_clk = Utilities.LockPerfChecker.Start(); lock (cache) { l1_clk.LockPerfTimerStop(); byte[] bitmap = cache.Get(page, height); if (null == bitmap) { bitmap = SoraxPDFRendererDLLWrapper.GetPageByHeightAsImage(pdf_filename, pdf_owner_password, pdf_user_password, page, height); cache.Put(page, height, bitmap); } return(bitmap); } }