Beispiel #1
0
        public BitmapViewer()
        {
            _browserImageFormat      = BrowserImageFormat.Auto;
            _browserJpegQuality      = 70;
            _firstBitmapAccess       = true;
            _imageLoadMode           = ImageLoadMode.AdaptiveTile;
            _previewImageResizeRatio = 8;
            _previewImageEnabled     = true;
            _tileSize    = 300;
            _postedState = BitmapViewerState.Empty;

            _fileCache = FileCache.GetInstance();

            if (!DesignMode)
            {
                _bitmapChanged = false;
            }

            ScriptFiles.Add("BitmapViewer");
            ScriptClassName = "Aurigma.GraphicsMill.BitmapViewer";
        }
Beispiel #2
0
 private string GetSourceFilename()
 {
     return(FileCache.GetInstance().GetAbsolutePrivateCachePath(_bitmapViewer.SourceCacheFilename));
 }